- qpscanner/Application.cfc
- v0.7.5
- 755 B
- 32
1<cfcomponent output="false">
2
3 <cfset This.Name = "qpscanner_v0.7.5@#CGI.SERVER_NAME#"/>
4 <cfset This.SessionManagement = true/>
5
6
7 <cffunction name="onApplicationStart" returntype="Boolean" output="false">
8 <cfset var Result = True/>
9
10 <cfset Application.Version = "v0.7.5"/>
11
12 <cfset Application.Cfcs =
13 { Settings = new cfcs.settings( ConfigDirectory : expandPath('./config') )
14 , Scanner = createObject("component","cfcs.qpscanner")
15 }
16 />
17
18 <cfreturn Result/>
19 </cffunction>
20
21
22 <cffunction name="onRequestStart" returntype="Boolean" output="false">
23 <cfset var Result = True/>
24
25 <cfif StructKeyExists(Url,'AppReload')>
26 <cfset Result = Result AND onApplicationStart()/>
27 </cfif>
28
29 <cfreturn Result/>
30 </cffunction>
31
32
33</cfcomponent>