%@ Language=VBScript %> <% Option Explicit %> <% '------------------------------------------------------------------------- ' Ftp_LogSettings.asp: set the logs for FTP sites ' ' Copyright (c) Microsoft Corporation. All rights reserved. ' ' Date Description ' 06-11-2000 Created date '------------------------------------------------------------------------- %> <% '------------------------------------------------------------------------- ' Form Variables '------------------------------------------------------------------------- Dim F_strWebRoorDir 'Root Dir for the form Dim F_chkEnableLogging Dim F_selectActiveFormat Dim F_optLogPeriod Dim F_FileSize Dim F_LocalTime Dim F_LogFileDir Dim F_IISSites Dim F_selectTasks Dim L_FILE 'Dim F_SiteCriteria Dim G_objSites Dim FTPInstalled '------------------------------------------------------------------------- ' Global Variables '------------------------------------------------------------------------- Dim G_objService '------------------------------------------------------------------------- ' Start of localization content '------------------------------------------------------------------------- Dim L_INVALID_DIR_FORMAT_ERRORMESSAGE Dim L_INVALID_DIR_ERRORMESSAGE Dim L_DIRPATHEMPTY_ERRORMESSAGE Dim L_INFORMATION_ERRORMESSAGE Dim L_FILEINFORMATION_ERRORMESSAGE Dim L_FAILED_CREATE_DIR_ERRORMESSAGE Dim L_NOT_NTFS_DRIVE_ERRORMESSAGE Dim L_INVALID_DRIVE_ERRORMESSAGE Dim L_DIRQUOTAERRORMESSAGE Dim L_FAIL_TO_SET_LOGS Dim L_APPLYTOALLFTPTEXT Dim L_APPLYTOINHERITEDFTPTEXT Dim L_LOGFILEDIR Dim L_LOCALTIME Dim L_ENABLELOGGING Dim L_ACTIVELOGFORMAT Dim L_IISLOGFORMAT Dim L_COMMONLOGFORMAT Dim L_ODBCLOG Dim L_EXTENDEDLOGFILE Dim L_NEWLOGTIME Dim L_HOURLY Dim L_MONTHLY Dim L_DAILY Dim L_UNLIMITEDFILESIZE Dim L_WEEKLY Dim L_WHENFILESIZE Dim L_MB Dim L_FTPLOG_TEXT 'Dim L_FTPLOGSDIRHELP Dim L_FTPNOTINSTALLED_ERRORMESSAGE Dim L_ID_NOTEMPTY_ERROR_MESSAGE Dim L_SITE_IDENTIFIER_EMPTY_TEXT L_FTPLOG_TEXT = GetLocString("GeneralSettings.dll", "4042004E", "") 'L_FTPLOGSDIRHELP = GetLocString("GeneralSettings.dll", "40420050", "") L_ENABLELOGGING = GetLocString("GeneralSettings.dll", "40420039", "") L_ACTIVELOGFORMAT = GetLocString("GeneralSettings.dll", "4042003A", "") L_IISLOGFORMAT = GetLocString("GeneralSettings.dll", "4042003B", "") L_COMMONLOGFORMAT = GetLocString("GeneralSettings.dll", "4042003C", "") L_ODBCLOG = GetLocString("GeneralSettings.dll", "4042003D", "") L_EXTENDEDLOGFILE = GetLocString("GeneralSettings.dll", "4042003E", "") L_NEWLOGTIME = GetLocString("GeneralSettings.dll", "4042003F", "") L_HOURLY = GetLocString("GeneralSettings.dll", "40420040", "") L_MONTHLY = GetLocString("GeneralSettings.dll", "40420041", "") L_DAILY = GetLocString("GeneralSettings.dll", "40420042", "") L_UNLIMITEDFILESIZE = GetLocString("GeneralSettings.dll", "40420043", "") L_WEEKLY = GetLocString("GeneralSettings.dll", "40420044", "") L_WHENFILESIZE = GetLocString("GeneralSettings.dll", "40420045", "") L_MB = GetLocString("GeneralSettings.dll", "40420046", "") L_LOCALTIME = GetLocString("GeneralSettings.dll", "40420047", "") L_LOGFILEDIR = GetLocString("GeneralSettings.dll", "40420048", "") L_APPLYTOALLFTPTEXT = GetLocString("GeneralSettings.dll", "4042002B", "") L_APPLYTOINHERITEDFTPTEXT = GetLocString("GeneralSettings.dll", "4042002C", "") L_FAIL_TO_SET_LOGS = GetLocString("GeneralSettings.dll", "C0420049", "") L_INVALID_DRIVE_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420022", "") L_NOT_NTFS_DRIVE_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000D", "") L_FAILED_CREATE_DIR_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000E", "") L_FILEINFORMATION_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000C", "") L_INFORMATION_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C042000F", "") 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_FILE = GetLocString("GeneralSettings.dll", "4042004A", "") L_FTPNOTINSTALLED_ERRORMESSAGE = GetLocString("GeneralSettings.dll", "C0420058", "") '------------------------------------------------------------------------- 'END of localization content '------------------------------------------------------------------------- 'Create property page Dim rc Dim page rc=SA_CreatePage(L_FTPLOG_TEXT,"",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 F_chkEnableLogging = "true" then %> <%else%> <%end if%> | <%= L_ENABLELOGGING %> | ||||||||||
<%= L_ACTIVELOGFORMAT %> | |||||||||||
<%= L_NEWLOGTIME %> | <%if F_optLogPeriod = L_HOURLY then%> <%elseif F_selectActiveFormat = CONST_ODBCLOGFILE_FORMAT then %> <%else%> <%end if %> | <%= L_HOURLY %> | <%if F_optLogPeriod = L_MONTHLY and F_selectActiveFormat <> CONST_ODBCLOGFILE_FORMAT then%> <%elseif F_selectActiveFormat = CONST_ODBCLOGFILE_FORMAT then %> <%else%> <%end if %> | <%= L_MONTHLY %> | |||||||
<%if F_optLogPeriod = L_DAILY then%> <%elseif F_selectActiveFormat = CONST_ODBCLOGFILE_FORMAT then %> <% else %> <%end if%> | <%= L_DAILY %> | <%if F_optLogPeriod = L_UNLIMITEDFILESIZE and F_selectActiveFormat <> CONST_ODBCLOGFILE_FORMAT then%> <%elseif F_selectActiveFormat = CONST_ODBCLOGFILE_FORMAT then %> <%else%> <%end if %> | <%= L_UNLIMITEDFILESIZE %> | ||||||||
<%if F_optLogPeriod = L_WEEKLY then%> <%elseif F_selectActiveFormat = CONST_ODBCLOGFILE_FORMAT then %> <%else%> <%end if%> | <%= L_WEEKLY %> | ||||||||||
<%if F_optLogPeriod = L_FILE then%> | <%=L_WHENFILESIZE %> <%elseif F_selectActiveFormat = CONST_ODBCLOGFILE_FORMAT then %> | <%=L_WHENFILESIZE %> <%else%> | <%=L_WHENFILESIZE %> <%end if %> | ||||||||
<%if F_optLogPeriod = L_FILE or F_optLogPeriod = L_UNLIMITEDFILESIZE then%> <%else%> <%if F_selectActiveFormat = CONST_W3CEXLOGFILE_FORMAT and F_LocalTime=true then %> <%elseif F_selectActiveFormat = CONST_W3CEXLOGFILE_FORMAT and F_LocalTime=false then %> <%else%> <%end if%> <%end if%> <%= L_LOCALTIME %> | |||||||||||
<%= L_LOGFILEDIR %> <%if F_selectActiveFormat = CONST_ODBCLOGFILE_FORMAT then %> <%else%> <%end if%> |