Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfsetting enablecfoutputonly="Yes" showdebugoutput="Yes">
- <cfapplication name="ASA"
- sessionmanagement="Yes"
- applicationtimeout="#createTimeSpan(1,0,0,0)#"
- sessiontimeout="#createTimeSpan(0,8,0,0)#">
- <!---
- Component List:
- 1. app.cfc - application cfcs
- 2. events.cfc - event functions
- 3. fields.cfc form generation
- 4. user.cfc - user functions
- --->
- <cfscript>
- // app version
- request.version = "6";
- app = createObject("component","common.components.#request.version#.app");
- app2 = createObject("component","common.components.app2");
- users = createObject("component","common.components.#request.version#.user");
- forms = createObject("component","common.components.#request.version#.fields");
- events = createObject("component","common.components.#request.version#.events");
- ops = createObject("component","common.components.#request.version#.operations");
- exhib = createObject("component","common.components.#request.version#.exhibs");
- cfp = createObject("component","common.components.#request.version#.cfp");
- regs = createObject("component","common.components.#request.version#.regs");
- speakers = createObject("component","common.components.speakers");
- pay = createObject("component","common.components.#request.version#.pay");
- badge = createObject("component","common.components.#request.version#.badge");
- mobi_list = "Windows CE,AvantGo,Mazingo,Mobile,T68,Syncalot,Blazer";
- </cfscript>
- <cfif NOT isDefined("application.DSN") OR isDefined("flush")>
- <cflock scope="SERVER" type="EXCLUSIVE" timeout="10">
- <cfscript>
- getAppVars = app.AppVarQry("ASA");
- getAppImages = app.AppImageQry("Common");
- effect = "class=""button_up"" onMouseDown=""this.className='button_press'"" onMouseOut=""this.className='button_up'"" onMouseUp=""this.className='button_up'""";
- for(i=1; i lte getAppVars.recordcount; i=i+1) {
- "application.#getAppVars.Var_Name[i]#" = #getAppVars.Var_Value[i]#;
- }
- for(j=1; j lte getAppImages.recordcount; j=j+1) {
- "application.#getAppImages.Var_Name[j]#_on" = "<img src=""/common/images/menu/#getAppImages.image_file[j]#"" border=0 align=""absmiddle"" #effect#>";
- "application.#getAppImages.Var_Name[j]#_off" = "<img src=""/common/images/menu/#getAppImages.image_file[j]#"" border=0 align=""absmiddle"" style=""filter:alpha(opacity=30)"">";
- }
- application.self = "index.cfm";
- application.webroot = replaceNoCase(PATH_INFO,"/#application.self#","");
- application.dir_root = "/#application.dir#";
- application.dataroot = replaceNoCase(CF_TEMPLATE_PATH,"\#application.self#","");
- application.fileroot = replaceNoCase(CF_TEMPLATE_PATH,"\#application.self#","");
- application.query = "#application.dir_root#/query";
- sub_url_list = application.sub_dir_list;
- for(u=1; u lte listLen(sub_url_list); u=u+1) {
- rem_val = listGetAt(sub_url_list,u);
- application.webroot = replaceNoCase(application.webroot,"/#rem_val#","");
- application.dataroot = replaceNoCase(application.dataroot,"\#rem_val#","");
- application.fileroot = replaceNoCase(application.fileroot,"\#rem_val#","");
- }
- </cfscript>
- </cflock>
- </cfif>
- <cfscript>
- LIVE_SERVER = (Server_Name EQ application.live_server);
- request.hide_url_strings = application.HIDE_URL_STRINGS;
- request.self = "index.cfm";
- request.webroot = replaceNoCase(PATH_INFO,"/#request.self#","");
- request.encryptid = "EIS023";
- app.encrypt_init(request.encryptid,"360ENC");
- if (NOT isDefined("session.mobi_chk")) {
- session.mobi_chk = 0;
- For (z=1;z LTE ListLen(mobi_list); z=z+1) {
- if (cgi.HTTP_USER_AGENT CONTAINS listGetAt(mobi_list, z)) {
- session.mobi_chk = 1;
- }
- }
- }
- if (LIVE_SERVER) {
- request.serverroot = live_server;
- if (cgi.https EQ "off") {
- app.redir("#application.serverroot_secure#/index.cfm?#cgi.query_string#");
- }
- CC_TEST_MODE = "false";
- } else {
- request.serverroot = application.DEV_SERVER;
- CC_TEST_MODE = "true";
- }
- </cfscript>
- <cfinclude template="/Common/resources/functions.cfm">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement