%@ Language=VBScript %>
<% Option Explicit %>
<%
'-------------------------------------------------------------------------
' FTP_MasterSettings.asp: Set FTP Master Settings Values
'
' Copyright (c) Microsoft Corporation. All rights reserved.
'
' Date Description
' 08-11-2000 Created date
' 15-01-2001 Modified for new Framework
'-------------------------------------------------------------------------
%>
<%
'-------------------------------------------------------------------------
' Form Variables
'-------------------------------------------------------------------------
Dim F_FTPEnabled 'Whether FTP service is enabled (started) or not
Dim F_selectDirListStyle 'Directory Listing Style
Dim F_FTPMaxCon 'Maximum Connections
Dim F_FTPCon_Timeout 'Conection Time out
Dim FTPInstalled 'Holds a boolean value to check whether FTP
'service is installed
'-------------------------------------------------------------------------
' Global Variables
'-------------------------------------------------------------------------
Dim G_objService
Dim G_objSites
'-------------------------------------------------------------------------
' Start of localization content
'-------------------------------------------------------------------------
Dim L_FTPTASKTITLETEXT
Dim L_WEBROOTDIR
Dim L_ENABLEFTP
Dim L_DIRLISTINGSTYLE
Dim L_MAX_CONNECTIONSTEXT
Dim L_CON_TIMEOUT
Dim L_SECONDSTEXT
Dim L_NOT_NTFS_DRIVE_ERRORMESSAGE
Dim L_FAILED_CREATE_DIR_ERRORMESSAGE
Dim L_INVALID_DRIVE_ERRORMESSAGE
Dim L_UNABLE_TO_SETREGISTRY
Dim L_UNABLE_TO_SETMASTERSETTINGS
Dim L_CONLIMIT_ERRORMESSAGE
Dim L_CONTIMEOUT_ERRORMESSAGE
Dim L_UNABLETOCREATE_KEY_ERRORMESSAGE
Dim L_SET_WEBROOT_VAL_FAILED_ERRORMESSAGE
Dim L_FAIL_TO_GET_FTPSITEROOT_DIR
Dim L_INVALID_DIR_FORMAT_ERRORMESSAGE
Dim L_INVALID_DIR_ERRORMESSAGE
Dim L_DIRPATHEMPTY_ERRORMESSAGE
Dim L_FTPNOTINSTALLED_ERRORMESSAGE
Dim L_ENABLE_FTP_SERVICE
Dim L_ID_NOTEMPTY_ERROR_MESSAGE
Dim L_SITE_IDENTIFIER_EMPTY_TEXT
Dim L_CREATEADMINFTPSERVER_ERRORMESSAGE
L_FTPTASKTITLETEXT = GetLocString("GeneralSettings.dll", "4042001A", "")
L_WEBROOTDIR = GetLocString("GeneralSettings.dll", "4042001B", "")
L_ENABLEFTP = GetLocString("GeneralSettings.dll", "4042001D", "")
L_DIRLISTINGSTYLE = GetLocString("GeneralSettings.dll", "4042001F", "")
L_MAX_CONNECTIONSTEXT = GetLocString("GeneralSettings.dll", "40420008", "")
L_CON_TIMEOUT = GetLocString("GeneralSettings.dll", "40420021", "")
L_SECONDSTEXT = GetLocString("GeneralSettings.dll", "40420006", "")
L_NOT_NTFS_DRIVE_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000D", "")
L_FAILED_CREATE_DIR_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000E", "")
L_INVALID_DRIVE_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420022", "")
L_UNABLE_TO_SETREGISTRY = GetLocString("GeneralSettings.dll", "C0420055", "")
L_UNABLE_TO_SETMASTERSETTINGS = GetLocString("GeneralSettings.dll", "C0420054", "")
L_CONLIMIT_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000B", "")
L_CONTIMEOUT_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420053", "")
L_UNABLETOCREATE_KEY_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420018", "")
L_SET_WEBROOT_VAL_FAILED_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420019", "")
L_FAIL_TO_GET_FTPSITEROOT_DIR = GetLocString("GeneralSettings.dll", "C0420023", "")
L_INVALID_DIR_FORMAT_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "40420004", "")
L_INVALID_DIR_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042004B", "")
L_DIRPATHEMPTY_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042004C", "")
L_FTPNOTINSTALLED_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420058", "")
L_ENABLE_FTP_SERVICE = GetLocString("GeneralSettings.dll", "4042005B", "")
L_CREATEADMINFTPSERVER_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "4042005D", "")
'-------------------------------------------------------------------------
'END of localization content
'-------------------------------------------------------------------------
'Create property page
Dim rc
Dim page
rc=SA_CreatePage(L_FTPTASKTITLETEXT,"",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()
if FTPInstalled = false then
ServeFailurePage L_FTPNOTINSTALLED_ERRORMESSAGE ,sReturnURL
end if
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
%>
<% if bIsFTPEnabled then%> <% else %> <% end if %> <%=L_ENABLE_FTP_SERVICE%> | |
<%=L_DIRLISTINGSTYLE%> | |
<%=L_MAX_CONNECTIONSTEXT%> | |
<%=L_CON_TIMEOUT%> |