Paste: index.cfm

Author: oxli
Mode: coldfusion
Date: Thu, 12 Feb 2009 20:15:39
Plain Text |
<cfscript>
// give friendly names to the MachII config modes
configMode = structNew();
configMode["never"]   = -1;
configMode["dynamic"] = 0;
configMode["always"]  = 1;
</cfscript>


<!--- Check to see if the app is being reinitialized --->
<cfif structKeyExists(url,"reinit") AND url.reinit EQ "framework">
    <cfset MACHII_CONFIG_MODE = configMode["always"] />
    <cfsetting requesttimeout= 120 />
    <cfobjectcache action = "CLEAR" />
<cfelse>    
    <cfset MACHII_CONFIG_MODE = configMode["never"] />
</cfif>


<cfset MACHII_CONFIG_PATH =ExpandPath('/config/mach-ii.xml.cfm') />


<cfinclude template="/MachII/mach-ii.cfm" />

New Annotation

Summary:
Author:
Mode:
Body: