- qpscanner/Application.cfc
- v0.7.3.2
- 964 B
- 34
1<cfcomponent output="false">
2
3 <cfset This.Name = "qpscanner@#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 = "0.7.3"/>
11
12 <cfset Application.Cfcs.jre = createObject("component","cfcs.jre-utils").init()/>
13 <cfset Application.Cfcs.Settings = createObject("component","cfcs.settings").init
14 ( jre : Application.Cfcs.jre
15 , ConfigDirectory : expandPath('./config')
16 )/>
17 <cfset Application.Cfcs.Scanner = createObject("component","cfcs.qpscanner")/>
18
19 <cfreturn Result/>
20 </cffunction>
21
22
23 <cffunction name="onRequestStart" returntype="Boolean" output="false">
24 <cfset var Result = True/>
25
26 <!--- TODO: FIX: Implement as URL check once CFCs are stable. --->
27 <cfif True>
28 <cfset Result = Result AND onApplicationStart()/>
29 </cfif>
30
31 <cfreturn Result/>
32 </cffunction>
33
34
35</cfcomponent>