forked from jhfrench/Workstream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fusebox.init.cfm
45 lines (42 loc) · 1.44 KB
/
fusebox.init.cfm
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
39
40
41
42
43
44
45
<!-- sourcecode/fusebox.init.cfm
Author: Jeromy French-->
<!---
<fusedoc language="ColdFusion MX" specification="2.0" template="fusebox.init.cfm">
<responsibilities>
</responsibilities>
<properties>
<history email="[email protected]" author="Jeromy French" type="create" date="6/12/2007" role="FuseCoder" comments="Created File">
$Id:$
</history>
</properties>
<IO>
<in>
</in>
<passthrough>
</passthrough>
<out>
</out>
</IO>
</fusedoc>
--->
<cfif ( StructKeyExists(myFusebox.getApplication(), "fuseactionvariable") ) >
<cfset variables.fa2Check = attributes[myFusebox.getApplication().fuseactionvariable] />
<!--- check that the fuseaction is valid... --->
<cfif (ListLen(variables.fa2Check, ".") neq 2)
Or (
Not StructKeyExists(myFusebox.getApplication().circuits, ListFirst(variables.fa2Check, '.') )
)
Or (
Not StructKeyExists(myFusebox.getApplication().circuits[ListFirst(variables.fa2Check,'.')].fuseactions, ListLast(variables.fa2Check, '.') )
) >
<!---
fuseaction is invalid, could set it to the defaultFuseaction or leave it and allow
fb errortemplates to trap it...
I'm going to flag it as a 404 and show an custom page in my fusebox application
--->
<cfheader statuscode="404" statustext="Not Found" />
<cfset attributes[myFusebox.getApplication().fuseactionvariable] = "common_files.bad_fuseaction" />
</cfif>
<cfelse>
HERE2<cfabort>
</cfif>