Advertisement
Advertisement
| 07.13.2008 at 05:36PM PDT, ID: 23561453 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: |
<!---
Filename: Application.cfc
Created by: Raymond Camden (ray@camdenfamily.com)
Please Note Executes for every page request
--->
<cfcomponent output="false">
<!--- Name the application. --->
<cfset this.name="GuardianHelpSite">
<!--- Turn on session management. --->
<cfset this.sessionManagement=true>
<cffunction name="onApplicationStart" output="false" returnType="void">
<!--- Any variables set here can be used by all our pages --->
<cfset APPLICATION.dataSource = "ebwebwork">
<cfset APPLICATION.companyName = "Guardian Help">
</cffunction>
<cffunction name="onRequestStart" output="false" returnType="void">
<!--- If user isn't logged in, force them to now --->
<cfif not isDefined("SESSION.auth.isLoggedIn")>
<!--- If the user is now submitting "Login" form, --->
<!--- Include "Login Check" code to validate user --->
<cfif isDefined("FORM.UserLogin")>
<cfinclude template="LoginCheck.cfm">
</cfif>
<cfinclude template="LoginForm.cfm">
<cfabort>
</cfif>
</cffunction>
</cfcomponent>
|