Sorcerer's IsleCode QueryParam Scanner / files

 1<cfcomponent output="false" extends="framework">
 2	<cfsetting showdebugoutput=false />
 3
 4	<cfset This.Name = "qpscanner_v0.8@#CGI.SERVER_NAME#_#hash(getCurrentTemplatePath())#"/>
 5	<cfset This.SessionManagement = true/>
 6
 7	<cfset Variables.Framework =
 8		{ DefaultSection   = 'start'
 9		, DefaultItem      = 'intro'
10		, ReloadApplicationOnEveryRequest = true
11		, CfcBase = ''
12		}/>
13
14	<!---
15		FW/1's default behaviour fails when the directory has a dot in it,
16		as is the case with GitHub's default download. Setting cfcbase to
17		blank should fix this, but the cfcFilePath function assumes blank
18		means webroot (instead of current directory), so that function has
19		been overridden here in order to change the behaviour.
20	--->
21	<cffunction name="cfcFilePath" returntype="string" output=false access="private">
22		<cfargument name="dottedPath" type="string" />
23		<cfreturn len(dottedPath)
24			? super.cfcFilePath(ArgumentCollection=Arguments)
25			: ''
26			/>
27	</cffunction>
28
29
30	<cffunction name="setupApplication" output="false">
31
32		<cfset Application.Version = "0.8"/>
33
34		<cfset Application.Cfcs =
35			{ Settings = new cfcs.settings( ConfigDirectory : expandPath('./config') )
36			, Scanner  = createObject("component","cfcs.qpscanner")
37			}/>
38	</cffunction>
39
40
41</cfcomponent>