home *** CD-ROM | disk | FTP | other *** search
- <META NAME="Author" CONTENT="Copyright 1996 Allaire Corp. All rights reserved.">
- <META NAME="Version" CONTENT="$Revision: 26 $ $Modtime: 9/14/98 5:16p $">
-
- <!------------------------------------------------------------------------------
- Validate the logging threshold value.
- -------------------------------------------------------------------------------->
- <CFIF NOT ParameterExists( FORM.SlowPageCheckbox )>
- <!---- If the "Enable Slow Page Logging" checkbox is not checked, just discard the setting of the "Slow Page Threshold" by setting it to 0. --->
- <CFSET FORM.SlowPageThreshold = 0>
- <CFELSEIF isNumeric(FORM.SlowPageThreshold) IS "NO" OR FORM.SlowPageThreshold LT 0>
- <!--- Make sure it's a positive number --->
- <CFSET Error_Message = "You have enabled slow pages logging but the threshold value
- you entered is not a valid positive number.">
- <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
- <CFABORT>
- </CFIF>
-
-
- <CFIF ParameterExists(FORM.LogMessages) IS NOT "Yes">
- <CFSET LogMessages = 0>
- </CFIF>
-
- <CFIF ParameterExists(UpdateGenLogInfo)>
- <!----------------------------------------------------------------------------
- Update the general Logging information.
- ------------------------------------------------------------------------------>
- <CFNewInternalRegistry ACTION=SET
- BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- Type="STRING"
- ENTRY="AdminEMail"
- VALUE="#FORM.AdminEmail#">
-
- <CFNewInternalRegistry ACTION=SET
- BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- Type="STRING"
- ENTRY="LogFilePath"
- VALUE="#FORM.LogFilePath#">
-
- <CFNewInternalRegistry ACTION=SET
- BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- Type="STRING"
- ENTRY="SlowPageThreshold"
- VALUE="#FORM.SlowPageThreshold#">
-
- <CFIF ParameterExists( FORM.UseSysLogCheckbox )>
- <CFNewInternalRegistry ACTION=SET
- Branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- Entry="UseSysLog"
- Type="STRING"
- Value="1">
- <CFELSE>
- <CFNewInternalRegistry ACTION=SET
- Branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- Entry="UseSysLog"
- Type="STRING"
- Value="0">
- </CFIF>
-
- <!---- Tell the engine to refresh from the registry ---->
- <CFSET bSuccess = cfusion_settings_refresh()>
-
- <CFLOCATION URL="index.cfm">
-
- <CFELSEIF ParameterExists(Browse)>
- <!----------------------------------------------------------------------------
- Store necessary data and invoke the directory browsing module if the
- BROWSE button was pressed.
- ------------------------------------------------------------------------------>
- <CFSET Client.AdminEmail = #FORM.AdminEmail#>
- <CFSET Client.LogFilePath = #FORM.LogFilePath#>
- <CFSET Client.SlowPageThreshold = #FORM.SlowPageThreshold#>
- <CFIF ParameterExists( FORM.UseSysLogCheckbox) >
- <CFSET Client.bUseSysyLog = 1>
- <CFELSE>
- <CFSET Client.bUseSysLog = 0>
- </CFIF>
-
- <!---Redirect to the Browse module ---->
- <CFSET ReturnURL = "../logging/index.cfm?JustBrowsed=Yes">
- <CFLOCATION URL="../filedialog/index.cfm?DialogStyle=SelectDirectory&URLtarget=AdminSettings&ReturnURL=#URLEncodedFormat(ReturnURL)#&DefaultPath=#URLEncodedFormat(FORM.LogFilePath)#">
-
- <CFELSEIF ParameterExists(Cancel)>
- <CFLOCATION URL="index.cfm">
- </CFIF>
-