Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. <cfsetting enablecfoutputonly="Yes" showdebugoutput="Yes">
  2. <cfapplication name="ASA"
  3. sessionmanagement="Yes"
  4. applicationtimeout="#createTimeSpan(1,0,0,0)#"
  5. sessiontimeout="#createTimeSpan(0,8,0,0)#">
  6. <!---
  7. Component List:
  8. 1. app.cfc - application cfcs
  9. 2. events.cfc - event functions
  10. 3. fields.cfc form generation
  11. 4. user.cfc - user functions
  12. --->
  13. <cfscript>
  14. // app version
  15. request.version = "6";
  16. app = createObject("component","common.components.#request.version#.app");
  17. app2 = createObject("component","common.components.app2");
  18. users = createObject("component","common.components.#request.version#.user");
  19. forms = createObject("component","common.components.#request.version#.fields");
  20. events = createObject("component","common.components.#request.version#.events");
  21. ops = createObject("component","common.components.#request.version#.operations");
  22. exhib = createObject("component","common.components.#request.version#.exhibs");
  23. cfp = createObject("component","common.components.#request.version#.cfp");
  24. regs = createObject("component","common.components.#request.version#.regs");
  25. speakers = createObject("component","common.components.speakers");
  26. pay = createObject("component","common.components.#request.version#.pay");
  27. badge = createObject("component","common.components.#request.version#.badge");
  28. mobi_list = "Windows CE,AvantGo,Mazingo,Mobile,T68,Syncalot,Blazer";
  29. </cfscript>
  30. <cfif NOT isDefined("application.DSN") OR isDefined("flush")>
  31. <cflock scope="SERVER" type="EXCLUSIVE" timeout="10">
  32. <cfscript>
  33. getAppVars = app.AppVarQry("ASA");
  34. getAppImages = app.AppImageQry("Common");
  35. effect = "class=""button_up"" onMouseDown=""this.className='button_press'"" onMouseOut=""this.className='button_up'"" onMouseUp=""this.className='button_up'""";
  36. for(i=1; i lte getAppVars.recordcount; i=i+1) {
  37. "application.#getAppVars.Var_Name[i]#" = #getAppVars.Var_Value[i]#;
  38. }
  39. for(j=1; j lte getAppImages.recordcount; j=j+1) {
  40. "application.#getAppImages.Var_Name[j]#_on" = "<img src=""/common/images/menu/#getAppImages.image_file[j]#"" border=0 align=""absmiddle"" #effect#>";
  41. "application.#getAppImages.Var_Name[j]#_off" = "<img src=""/common/images/menu/#getAppImages.image_file[j]#"" border=0 align=""absmiddle"" style=""filter:alpha(opacity=30)"">";
  42. }
  43. application.self = "index.cfm";
  44. application.webroot = replaceNoCase(PATH_INFO,"/#application.self#","");
  45. application.dir_root = "/#application.dir#";
  46. application.dataroot = replaceNoCase(CF_TEMPLATE_PATH,"\#application.self#","");
  47. application.fileroot = replaceNoCase(CF_TEMPLATE_PATH,"\#application.self#","");
  48. application.query = "#application.dir_root#/query";
  49. sub_url_list = application.sub_dir_list;
  50. for(u=1; u lte listLen(sub_url_list); u=u+1) {
  51. rem_val = listGetAt(sub_url_list,u);
  52. application.webroot = replaceNoCase(application.webroot,"/#rem_val#","");
  53. application.dataroot = replaceNoCase(application.dataroot,"\#rem_val#","");
  54. application.fileroot = replaceNoCase(application.fileroot,"\#rem_val#","");
  55. }
  56. </cfscript>
  57. </cflock>
  58. </cfif>
  59. <cfscript>
  60. LIVE_SERVER = (Server_Name EQ application.live_server);
  61. request.hide_url_strings = application.HIDE_URL_STRINGS;
  62. request.self = "index.cfm";
  63. request.webroot = replaceNoCase(PATH_INFO,"/#request.self#","");
  64. request.encryptid = "EIS023";
  65. app.encrypt_init(request.encryptid,"360ENC");
  66. if (NOT isDefined("session.mobi_chk")) {
  67. session.mobi_chk = 0;
  68. For (z=1;z LTE ListLen(mobi_list); z=z+1) {
  69. if (cgi.HTTP_USER_AGENT CONTAINS listGetAt(mobi_list, z)) {
  70. session.mobi_chk = 1;
  71. }
  72. }
  73.  
  74. }
  75. if (LIVE_SERVER) {
  76. request.serverroot = live_server;
  77. if (cgi.https EQ "off") {
  78. app.redir("#application.serverroot_secure#/index.cfm?#cgi.query_string#");
  79. }
  80. CC_TEST_MODE = "false";
  81. } else {
  82. request.serverroot = application.DEV_SERVER;
  83. CC_TEST_MODE = "true";
  84. }
  85. </cfscript>
  86. <cfinclude template="/Common/resources/functions.cfm">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement