[Mydatabasepilot-cvs] MyDatabasePilot Application.cfm,1.1.1.1,1.2
Status: Alpha
Brought to you by:
nanoface
From: <nan...@us...> - 2003-04-06 05:48:22
|
Update of /cvsroot/mydatabasepilot/MyDatabasePilot In directory sc8-pr-cvs1:/tmp/cvs-serv22571 Modified Files: Application.cfm Log Message: Corrected Comment Index: Application.cfm =================================================================== RCS file: /cvsroot/mydatabasepilot/MyDatabasePilot/Application.cfm,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Application.cfm 23 Mar 2003 03:44:20 -0000 1.1.1.1 --- Application.cfm 6 Apr 2003 05:48:19 -0000 1.2 *************** *** 1,56 **** ! <!---******************************************************************************************* ! * Copyright: MyDatabase Pilot is distributed under the terms of the GNU GPL license * ! * Template: Application.cfm * ! * Purpose: Creates Client variables for connecting to database * ! * Todo: Set up custom global error handling pages * ! * Include User-Defined Functions Used on Most Pages * ! * Known Issues/Bugs: * ! ********************************************************************************************---> ! ! <!---||| Set application name and enable sesson variables and enable client variables in the form of cookies |||---> ! <cfapplication name="MyDatabasePilot" clientmanagement="yes" sessionmanagement="yes" setclientcookies="yes" setdomaincookies="no" sessiontimeout="#CreateTimeSpan(0,0,15,0)#"> ! ! <!---||| Used in Debugging |||---> ! <!---<cfsetting showdebugoutput="No"> Specifies whether to show debugging output---> ! <!---<cfsetting enablecfoutputonly="yes"> Disables output of text that is not included inside cfoutput tags---> ! <!---<cfsetting requestTimeOut = "value in seconds"> You can use this setting to increase the page time-out if your application or page frequently accesses external resources that might be particularly slow---> ! ! <!---||| Set custom global error handling pages |||---> ! <!--- This is on the ToDo list ! <cferror type="exception" template="ErrorHandling/ExceptionErr.cfm"> ! <cferror type="monitor" template="ErrorHandling/MonitorErr.cfm"> ! <cferror type="request" template="ErrorHandling/RequestErr.cfm"> ! <cferror type="validation" template="ErrorHandling/ValidationErr.cfm"> ! ---> ! ! <!---||| Iniialize Client Variables |||---> ! <!---Add Client Variables here if any---> ! ! <!---||| Initialize Session Variables |||---> ! <!--- Note for Server Clusters: ! Since Session Variables can not be used in server clusters except those that support sticky sessions, ! this section (and anything that is dependent on Session Variables) may need to be rewritten as Client ! Variables for server clusters (We will see how many users actually run server cluster before spending ! to much time on this.)---> ! <!--- Lock code that uses session variables to ensure data integrity ---> ! <cflock timeout = "30" throwontimeout="no" type = "exclusive" scope = "session"> ! <!--- Initialize variables used by queries to connect to the database ---> ! <!--- You must set these variables to an actual database that you have complete access to ---> ! <cfif NOT IsDefined("session.dataSource")><cfset session.dataSource = ""></cfif> <!---Enter default Data Source ---> ! <cfif NOT IsDefined("session.userName")><cfset session.userName = ""></cfif> <!--- Enter default User Name ---> ! <cfif NOT IsDefined("session.password")><cfset session.password = ""></cfif> <!--- Enter default password ---> ! </cflock> ! ! <!---||| Set Application-specific Variables scope variables |||---> ! <cfset applicationName = "MyDatabase Pilot"> ! <cfset applicationVersion = "v0.7.0(Alpha)"> ! <cfset applicationReleaseDate = "17th Mar 2003"> ! <cfset mainpage = "MyDatabasePilot.cfm"> ! <cfset currentPath = "#cgi.path_info#"> ! <cfset currentQueryString = "#cgi.query_string#"> ! <cfset currentPage = "#currentPath#?#currentQueryString#"> ! ! <!---||| Include User-Defined Functions Used on Most Pages |||---> ! <!--- A need for this has not yet been determined ! <cfinclude template="Functions/SomeFunction.cfm"> ---> --- 1,56 ---- ! <!---******************************************************************************************* ! * Copyright: MyDatabase Pilot is distributed under the terms of the GNU GPL license * ! * Template: Application.cfm * ! * Purpose: Creates Client variables for connecting to database * ! * Todo: Set up custom global error handling pages * ! * Include User-Defined Functions Used on Most Pages * ! * Known Issues/Bugs: * ! ********************************************************************************************---> ! ! <!---||| Set application name and enable sesson variables and enable client variables in the form of cookies |||---> ! <cfapplication name="MyDatabasePilot" clientmanagement="yes" sessionmanagement="yes" setclientcookies="yes" setdomaincookies="no" sessiontimeout="#CreateTimeSpan(0,0,15,0)#"> ! ! <!---||| Used in Debugging |||---> ! <!---<cfsetting showdebugoutput="No"> Specifies whether to show debugging output---> ! <!---<cfsetting enablecfoutputonly="yes"> Disables output of text that is not included inside cfoutput tags---> ! <!---<cfsetting requestTimeOut = "value in seconds"> You can use this setting to increase the page time-out if your application or page frequently accesses external resources that might be particularly slow---> ! ! <!---||| Set custom global error handling pages |||---> ! <!--- This is on the ToDo list ! <cferror type="exception" template="ErrorHandling/ExceptionErr.cfm"> ! <cferror type="monitor" template="ErrorHandling/MonitorErr.cfm"> ! <cferror type="request" template="ErrorHandling/RequestErr.cfm"> ! <cferror type="validation" template="ErrorHandling/ValidationErr.cfm"> ! ---> ! ! <!---||| Iniialize Client Variables |||---> ! <!---Add Client Variables here if any---> ! ! <!---||| Initialize Session Variables |||---> ! <!--- Note for Server Clusters: ! Since Session Variables can not be used in server clusters except those that support sticky sessions, ! this section (and anything that is dependent on Session Variables) may need to be rewritten as Client ! Variables for server clusters (We will see how many users actually run server cluster before spending ! to much time on this.)---> ! <!--- Lock code that uses session variables to ensure data integrity ---> ! <cflock timeout = "30" throwontimeout="no" type = "exclusive" scope = "session"> ! <!--- Initialize variables used by queries to connect to the database ---> ! <!--- You must set these variables to an actual database that you have complete access to ---> ! <cfif NOT IsDefined("session.dataSource")><cfset session.dataSource = ""></cfif> <!---Enter default Data Source ---> ! <cfif NOT IsDefined("session.userName")><cfset session.userName = ""></cfif> <!--- Enter default User Name ---> ! <cfif NOT IsDefined("session.password")><cfset session.password = ""></cfif> <!--- Enter default password ---> ! </cflock> ! ! <!---||| Set Application-Wide Local scope variables |||---> ! <cfset applicationName = "MyDatabase Pilot"> ! <cfset applicationVersion = "v0.7.0(Alpha)"> ! <cfset applicationReleaseDate = "17th Mar 2003"> ! <cfset mainpage = "MyDatabasePilot.cfm"> ! <cfset currentPath = "#cgi.path_info#"> ! <cfset currentQueryString = "#cgi.query_string#"> ! <cfset currentPage = "#currentPath#?#currentQueryString#"> ! ! <!---||| Include User-Defined Functions Used on Most Pages |||---> ! <!--- A need for this has not yet been determined ! <cfinclude template="Functions/SomeFunction.cfm"> ---> |