/machii/index.cfm

http://github.com/mhenke/litepost · ColdFusion · 47 lines · 15 code · 3 blank · 29 comment · 0 complexity · 0f85ae709cb9951c93f8f03f3787dd04 MD5 · raw file

  1. <!---
  2. Copyright (c) 2006, Chris Scott, Matt Woodward, Adam Wayne Lehman, Dave Ross
  3. All rights reserved.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. $Id: $
  14. --->
  15. <cfprocessingdirective pageencoding="utf-8" />
  16. <cfset setEncoding("form", "utf-8") />
  17. <cfset setEncoding("url", "utf-8") />
  18. <!--- Set the path to the application's mach-ii.xml file. --->
  19. <cfset MACHII_CONFIG_PATH = ExpandPath("./config/mach-ii.xml") />
  20. <!--- Check if reloadApp via url --->
  21. <cfif StructKeyExists(URL, "init")>
  22. <cfset MACHII_CONFIG_MODE = 1 />
  23. <cfsetting requesttimeout="120" />
  24. <cfobjectcache action="CLEAR" />
  25. <cfelse>
  26. <!--- Set the configuration mode (when to reload): -1=never, 0=dynamic, 1=always --->
  27. <cfset MACHII_CONFIG_MODE = 0 />
  28. </cfif>
  29. <!--- Set the app key for sub-applications within a single cf-application. --->
  30. <cfset MACHII_APP_KEY = GetFileFromPath(ExpandPath(".")) />
  31. <!---
  32. Whether or not to validate the XML configuration file before parsing.
  33. Only works on CFMX7. Default to false.
  34. --->
  35. <cfset MACHII_VALIDATE_XML = false />
  36. <!--- Set the path to the Mach-II's DTD file. Default to ./config/mach-ii_1_1.dtd. --->
  37. <cfset MACHII_DTD_PATH = ExpandPath('./config/mach-ii_1_1.dtd') />
  38. <!--- Include the mach-ii.cfm file included with the core code. --->
  39. <cfinclude template="/MachII/mach-ii.cfm" />