Ray, Apparently putting the contents inline and sending from my email client isn't working, so I'll try through the web interface. Here are the contents (note the last two functions are commented out as I haven't implemented them yet:
<cfcomponent displayname="Application" output="true" hint="Handle the application."> <!--- Set up the application. ---> <cfset THIS.Name = "cccsd_tracker" /> <cfset THIS.ApplicationTimeout = CreateTimeSpan( 1, 0, 0, 0 ) /> <cfset THIS.SessionManagement = true /> <cfset THIS.SessionTimeout = CreateTimeSpan(0, 2, 0, 0) /> <cfset THIS.SetClientCookies = false /> <cfset THIS.ClientManagement = false /> <!--- Define the page request properties. ---> <cfsetting requesttimeout="20" showdebugoutput="true" enablecfoutputonly="false" /> <cffunction name="OnApplicationStart" access="public" returntype="boolean" output="false" hint="Fires when the application is first created."> <cfscript> // Datasources structure application.DS = StructNew(); application.DS.GeoMediaRW = "GeoMediaRW"; application.DS.ESGTracking = "ESGTracking"; // AsBuilts paths structure application.AsBuiltsPath = StructNew(); application.AsBuiltsPath.URL = "\\\\esg-snap\\As_Builts\\"; application.AsBuiltsPath.File = "\\esg-snap\As_Builts\"; // Temporary upload folder for as-built scans if (LCase(CGI.SERVER_NAME) EQ "localhost") application.uploadTemp_Folder = "C:\Temp\uploads\"; else application.uploadTemp_Folder = "D:\uploads\"; // mainURL is the correct http prefix for the web site. This variable // resolves having to change hard-coded http addresses on pages when switching // between development workstation and production server if (LCase(CGI.SERVER_NAME) EQ "localhost") application.mainURL = "http://localhost/bd7/esgtracking/"; else application.mainURL = "http://esgtracking/"; // Track number of open sessions application.sessions = 0; </cfscript> <!--- Return out. ---> <cfreturn true /> </cffunction> <cffunction name="OnSessionStart" access="public" returntype="void" output="false" hint="Fires when the session is first created."> <!--- Instantiate the RecordDrawings.cfc into session.rd variable ---> <cfset session.rd = createObject("component","cfc.RecordDrawings").init(application.DS.ESGTracking)> <!--- Increment the number of open sessions ---> <cflock scope="application" timeout="5" type="exclusive"> <cfset application.sessions = application.sessions + 1> </cflock> </cffunction> <cffunction name="OnRequestStart" access="public" returntype="boolean" output="false" hint="Fires at first part of page processing."> <!--- Define arguments. ---> <cfargument name="TargetPage" type="string" required="true" /> <!--- If URL parameter "restart=true" is passed, reinitialize application and session variables ---> <cfif (UCase(Right(CGI.SCRIPT_NAME,3)) EQ "CFM") AND (UCase(CGI.SCRIPT_NAME) DOES NOT CONTAIN "/TESTING/") AND FindNoCase("restart=true",CGI.QUERY_STRING)> <cfset OnApplicationStart()> <cfset OnSessionStart()> </cfif> <!--- If the TargetPage is a CFC, its a web service request and the request scope must be removed in order for the web service to properly return data to the requestor ---> <cfif LCase(Right(ARGUMENTS.TargetPage,3)) EQ "CFC"> <cfset StructDelete(THIS,"OnRequest")> </cfif> <!--- Return out. ---> <cfreturn true /> </cffunction> <cffunction name="OnRequest" access="public" returntype="void" output="true" hint="Fires after pre page processing is complete."> <!--- Define arguments. ---> <cfargument name="TargetPage" type="string" required="true" /> <cfset var templ=""> <!--- Run security check everytime someone accesses a page unless accessing a CFC directly ---> <cfif (UCase(Right(CGI.SCRIPT_NAME,3)) NEQ "CFC") AND (UCase(CGI.SCRIPT_NAME) DOES NOT CONTAIN "/TESTING/")> <cfinclude template="application_security.cfm"> </cfif> <!--- Include some user-defined functions ---> <cfif UCase(Right(CGI.SCRIPT_NAME,3)) EQ "CFM"> <cfinclude template="application_cfmns/esgtracker_functions.cfm"> </cfif> <!--- Include the requested page. ---> <cfif LCase(CGI.SERVER_NAME) EQ "localhost"> <cfset templ = listRest(ARGUMENTS.TargetPage,"/")> <cfelse> <cfset templ = ARGUMENTS.TargetPage> </cfif> <cfinclude template="#templ#" /> <!--- Return out. ---> <cfreturn /> </cffunction> <!--- <cffunction name="OnRequestEnd" access="public" returntype="void" output="true" hint="Fires after the page processing is complete."> <!--- Return out. ---> <cfreturn /> </cffunction> ---> <cffunction name="OnSessionEnd" access="public" returntype="void" output="false" hint="Fires when the session is terminated."> <!--- Define arguments. ---> <cfargument name="SessionScope" type="struct" required="true" /> <cfargument name="ApplicationScope" type="struct" required="false" default="#StructNew()#" /> <!--- Clear session variables ---> <cfscript> StructDelete(Arguments.SessionScope, "hometemp"); StructDelete(Arguments.SessionScope, "rd"); StructDelete(Arguments.SessionScope, "rd"); </cfscript> <!--- Decrement the count of open sessions ---> <cflock name="AppLock" timeout="5" type="exclusive"> <cfset Arguments.ApplicationScope.sessions = Arguments.ApplicationScope.sessions - 1> </cflock> <!--- Return out. ---> <cfreturn /> </cffunction> <!--- <cffunction name="OnApplicationEnd" access="public" returntype="void" output="false" hint="Fires when the application is terminated."> <!--- Define arguments. ---> <cfargument name="ApplicationScope" type="struct" required="false" default="#StructNew()#" /> <!--- Return out. ---> <cfreturn /> </cffunction> ---> <!--- <cffunction name="OnError" access="public" returntype="void" output="true" hint="Fires when an exception occures that is not caught by a try/catch."> <!--- Define arguments. ---> <cfargument name="Exception" type="any" required="true" /> <cfargument name="EventName" type="string" required="false" default="" /> <!--- Return out. ---> <cfreturn /> </cffunction> ---> </cfcomponent> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306176 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4