%@ Language=VBScript %> <% Option Explicit %> <% '------------------------------------------------------------------------- ' Web_MasterSettings.asp: Change the web master settings ' ' Copyright (c) Microsoft Corporation. All rights reserved. ' ' Date Description ' 25-10-2000 Created date ' 15-01-2001 Modified for new Framework '------------------------------------------------------------------------- %> <% '------------------------------------------------------------------------- ' Form Variables '------------------------------------------------------------------------- Dim F_bASPEnabled 'ASP enabled flag Dim F_strWebRootDir 'Root Dir for the form Dim F_strAspScriptTimeout 'Script timeout for the form Dim F_strIndexResource 'index resource for the form Dim F_strLimitedTo 'Limited connections Dim F_strMaxCon 'Max connections for the form '------------------------------------------------------------------------- ' Global Variables '------------------------------------------------------------------------- Dim G_objService 'to hold the connection Dim G_objSites '------------------------------------------------------------------------- ' Start of localization content '------------------------------------------------------------------------- Dim L_WEBTASKTITLETEXT Dim L_WEBROOTDIRTEXT Dim L_INVALID_DIR_FORMAT_ERRORMESSAGE Dim L_INVALID_DRIVE_ERRORMESSAGE Dim L_ASPSCRIPT_TIMEOUTTEXT Dim L_SECONDSTEXT Dim L_ENABLEFPSE_RESOURCETEXT Dim L_MAX_CONNECTIONSTEXT Dim L_UNLIMITEDTEXT Dim L_LIMITEDTOTEXT Dim L_CONLIMIT_ERRORMESSAGE Dim L_TIMEOUT_ERRORMESSAGE Dim L_FILEINFORMATION_ERRORMESSAGE Dim L_NOT_NTFS_DRIVE_ERRORMESSAGE Dim L_FAILED_CREATE_DIR_ERRORMESSAGE Dim L_INFORMATION_ERRORMESSAGE Dim L_UNABLETOSETMASTER_ERRORMESSAGE Dim L_UNABLETOSETROOTDIR_ERRORMESSAGE Dim L_DIR_ERRORMESSAGE Dim L_UNABLETOCREATE_KEY_ERRORMESSAGE Dim L_SET_WEBROOT_VAL_FAILED_ERRORMESSAGE Dim L_INVALID_DIR_ERRORMESSAGE Dim L_DIRPATHEMPTY_ERRORMESSAGE Dim L_ID_NOTEMPTY_ERROR_MESSAGE Dim L_SITE_IDENTIFIER_EMPTY_TEXT Dim L_ENABLE_ASP L_ENABLE_ASP = GetLocString("GeneralSettings.dll", "4042005C", "") L_WEBTASKTITLETEXT = GetLocString("GeneralSettings.dll", 40420001, "") L_WEBROOTDIRTEXT = GetLocString("GeneralSettings.dll", 40420002, "") L_INVALID_DIR_FORMAT_ERRORMESSAGE = GetLocString("GeneralSettings.dll", 40420004, "") L_INVALID_DRIVE_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420022", "") L_ASPSCRIPT_TIMEOUTTEXT = GetLocString("GeneralSettings.dll", 40420005, "") L_SECONDSTEXT = GetLocString("GeneralSettings.dll", 40420006, "") L_ENABLEFPSE_RESOURCETEXT = GetLocString("GeneralSettings.dll", 40420007, "") L_MAX_CONNECTIONSTEXT = GetLocString("GeneralSettings.dll", 40420008, "") L_UNLIMITEDTEXT = GetLocString("GeneralSettings.dll", 40420009, "") L_LIMITEDTOTEXT = GetLocString("GeneralSettings.dll", "4042000A", "") L_CONLIMIT_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000B", "") L_TIMEOUT_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420051", "") L_FILEINFORMATION_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000C", "") L_NOT_NTFS_DRIVE_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000D", "") L_FAILED_CREATE_DIR_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000E", "") L_INFORMATION_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000F", "") L_UNABLETOSETMASTER_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420010", "") L_UNABLETOSETROOTDIR_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420011", "") L_DIR_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420012", "") L_UNABLETOCREATE_KEY_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420018", "") L_SET_WEBROOT_VAL_FAILED_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420019", "") L_INVALID_DIR_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042004B", "") L_DIRPATHEMPTY_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042004C", "") '------------------------------------------------------------------------- 'END of localization content '------------------------------------------------------------------------- 'Create property page Dim rc Dim page rc=SA_CreatePage(L_WEBTASKTITLETEXT,"",PT_PROPERTY,page) 'Serve the page If(rc=0) then SA_ShowPage(Page) End if '------------------------------------------------------------------------- 'Function: OnInitPage() 'Description: Called to signal first time processing for this page. ' Use this method to do first time initialization tasks 'Input Variables: PageIn,EventArg 'Output Variables: None 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Public Function OnInitPage(ByRef PageIn,ByRef EventArg) InitObjects() SetVariablesFromSystem() OnInitPage = True End Function '------------------------------------------------------------------------- 'Function: OnServePropertyPage() 'Description: Called when the page needs to be served.Use this ' method to serve content 'Input Variables: PageIn,EventArg 'Output Variables: None 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Public Function OnServePropertyPage(ByRef PageIn,Byref EventArg) Call ServeCommonJavaScript() Call ServePage() OnServePropertyPage = True End Function '------------------------------------------------------------------------- 'Function: OnPostBackPage() 'Description: Called to signal that the page has been posted-back. 'Input Variables: PageIn,EventArg 'Output Variables: None 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Public Function OnPostBackPage(ByRef PageIn ,ByRef EventArg) OnPostBackPage = True End Function '------------------------------------------------------------------------- 'Function: OnSubmitPage() 'Description: Called when the page has been submitted for processing. ' Use this method to process the submit request. 'Input Variables: PageIn,EventArg 'Output Variables: None 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Public Function OnSubmitPage(ByRef PageIn ,ByRef EventArg) OnSubmitPage = ServeVariablesFromForm() End Function '------------------------------------------------------------------------- 'Function: OnClosePage() 'Description: Called when the page is about closed.Use this method ' to perform clean-up processing 'Input Variables: PageIn,EventArg 'Output Variables: None 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Public Function OnClosePage(ByRef PageIn ,ByRef EventArg) OnClosePage = TRUE End Function '------------------------------------------------------------------------- 'Function: ServeCommonJavaScript 'Description: Serves in initialiging the values,setting the form ' data and validating the form values 'Input Variables: None 'Output Variables: None 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Function ServeCommonJavaScript() %> <% End Function '------------------------------------------------------------------------- 'Function: ServePage() 'Description: For displaying outputs HTML to the user 'Input Variables: None 'Output Variables: None 'Returns: None 'Global Variables: L_DELETE_CONFIRM_TEXT '------------------------------------------------------------------------- Function ServePage %>
<%=L_WEBROOTDIRTEXT %> | |
<%=L_ASPSCRIPT_TIMEOUTTEXT%> | |
<% if F_strIndexResource = true then%> <% else %> <% end if %> <%=L_ENABLEFPSE_RESOURCETEXT%> | |
<%=L_MAX_CONNECTIONSTEXT%> | <% if F_strMaxCon = L_UNLIMITEDTEXT then %> <%=L_UNLIMITEDTEXT%> <%else%> <%=L_UNLIMITEDTEXT%> <%end if%> |
<% if F_strMaxCon = L_LIMITEDTOTEXT then %> <%=L_LIMITEDTOTEXT%> <%else%> <%=L_LIMITEDTOTEXT%> <%end if%> |