home *** CD-ROM | disk | FTP | other *** search
- <!--- Initialization/declarations --->
- <CFPARAM NAME="lDescription" DEFAULT="System Registry">
-
- <!--- Make sure the main registry key exists --->
- <CFNewInternalRegistry ACTION=SET ENTRY="Server" BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion" TYPE="KEY">
-
- <CFIF Method IS "DisplayEntryForm">
- <!--- Get the settings from ClientStores branch ---->
-
- <!----
- <CFSET lDoPurge = "1">
- <CFSET lDisableGlobals = "0">
- <CFSET lTimeout = "10">
-
- <CFNewInternalRegistry ACTION=GET VARIABLE="lTimeout"
- ENTRY="Timeout"
- TYPE="STRING"
- BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\ClientStores\#Name#">
-
- <CFNewInternalRegistry ACTION=GET VARIABLE="lDoPurge"
- ENTRY="DoPurge"
- TYPE="STRING"
- BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\ClientStores\#Name#">
-
- <CFNewInternalRegistry ACTION=GET VARIABLE="lDisableGlobals"
- ENTRY="DisableGlobals"
- TYPE="STRING"
- BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\ClientStores\#Name#">
- ---->
-
- <!--- Get the current settings. --->
- <CFNewInternalRegistry ACTION=GET Branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Clients"
- VARIABLE="ClientTimeout"
- Entry="Timeout"
- Type="STRING">
-
- <CFNewInternalRegistry ACTION=SET Branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion"
- Entry="Clients"
- Type="KEY">
-
-
- <!--- Display the values in the page --->
- <CFOUTPUT>
-
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
- <TR>
- <TD>
- <FONT SIZE="#Evaluate(2 + FONTSIZE)#" FACE="#FONTFACE#"><B>Client Variables</B></FONT>
- <BR><BR>
-
- <!-- Client vairables timeout. -->
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Purge data for clients that remain unvisited for </B>
- <INPUT Name="ClientTimeout" Type="TEXT" Value="#ClientTimeout#" Size=3 MaxLength=10 onFocus="select()">
- <B>days</B>
- <BR>
- The ColdFusion executive will scan the client data
- (stored via use of the CFAPPLICATION tag's CLIENTMANAGEMENT attribute)
- periodically for entries that have not been accessed in a specified number of days.
- All the associated client data will be removed.
- </FONT>
- <BR>
- <BR>
- </TD>
- </TR>
- </TABLE>
- </CFOUTPUT>
-
- </CFIF>
-
-
- <!------------------------ UPDATE_DATASOURCE Method -------------------------
- Processes the creation of a new backing store in the registry. This routine
- is used both when creating a new or updating an old backing store.
- ------------------------------------------------------------------------------>
-
- <CFIF Method IS "UpdateBackingStore">
-
- <CFNewInternalRegistry ACTION=SET Branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Clients"
- Entry="Timeout"
- Type="STRING"
- Value="#ClientTimeout#">
-
- <!---- Tell the engine to refresh from the registry ---->
- <CFSET bSuccess = cfusion_settings_refresh()>
-
- </CFIF>
-
-
- <!------------------------ VALIDATE_FORM_DATA Method -------------------------
- Validates the form fields coming from a Create\Edit data source form.
- Any validation errors are communicated to the calling module in :
-
- VFD_bErrorMessage - The text of the validation error message.
- ------------------------------------------------------------------------------>
-
- <CFIF Method IS "ValidateFormData">
- <CFSET VFD_bErrorMessage = "">
-
- <!--- Validation of form fields. --->
- <CFIF isNumeric(ClientTimeout) IS "NO" OR ClientTimeout LT 0>
- <CFSET VFD_bErrorMessage = "The client timeout must be set to zero or more days.">
- </CFIF>
-
- </CFIF>
-