# # $Log: auto_prepend_file,v $ # Revision 1.5 2001/06/11 19:29:28 cvsroot # Update # # Revision 1.4 2001/06/05 19:43:35 cvsroot # Routine update # # Revision 1.3 2001/05/13 22:41:31 cvsroot # Initial prepend file # # # If the http_host does not equal the server name, redirect to the server name. # if (!stristr($_SERVER[REQUEST_URI], 'keystone')) { ### if ($_SERVER["HTTP_HOST"] != $_SERVER["SERVER_NAME"]) { ### header("Location: http://$_SERVER[SERVER_NAME]$_SERVER[REQUEST_URI]"); ### } # # If this is CivicServer, bail out. # ### if (stristr($_SERVER["SCRIPT_FILENAME"], 'CivicServer')) { ### return; ### } # # Determin base URL for web pages. # ### if (stristr($_SERVER[SERVER_NAME], 'test')) { ### $dri_base_url = 'test.directreflections.com'; ### } elseif (stristr($_SERVER[SERVER_NAME], 'doug')) { ### $dri_base_url = 'doug.infotopia.tv'; ### } else { ### $dri_base_url = 'infotopia.tv'; ### } # # Determin the site code # ### session_register("dri_prod_site"); ### if (stristr($_SERVER[SERVER_NAME], "medicus.$dri_base_url")) { ### $dri_prod_site = 1; ### } elseif (stristr($_SERVER[SERVER_NAME], "totaltiger.$dri_base_url")) { ### $dri_prod_site = 2; ### } elseif (stristr($_SERVER[SERVER_NAME], "bbj.$dri_base_url")) { ### $dri_prod_site = 3; ### } elseif (stristr($_SERVER[SERVER_NAME], "torsotiger.$dri_base_url")) { ### $dri_prod_site = 4; ### } elseif (stristr($_SERVER[SERVER_NAME], "promo.$dri_base_url")) { ### $dri_prod_site = 5; ### } else { ### $dri_prod_site = 0; ### } # # Preserve the last known non-secure.infotopia.tv URL. # ### if (!stristr($_SERVER[SERVER_NAME], 'secure')) { ### $dri_return_url = $_SERVER[SERVER_NAME]; ### session_register("dri_return_url"); ### } # # Get static session tar for URLs # $dri_static_session = session_name() . "=" . session_id(); # # Build the global variables # $dri_code_dir = str_replace('/htdocs', '/php', $_SERVER["DOCUMENT_ROOT"]); $dri_code_self = str_replace('/htdocs', '/php', $_SERVER["SCRIPT_FILENAME"]); $dri_lib_dir = str_replace('/htdocs', '/lib', $_SERVER["DOCUMENT_ROOT"]); # # Global constants # $dri_sql_server = "localhost"; $dri_sql_user = "root"; $dri_sql_pass = ""; $dri_sql_database = "Blattner"; # # Implement universal media tracking system. # if (isset($m)) { session_register("dri_msrc"); session_register("dri_m"); $dri_m = $m; $dri_msrc = "P0000M" . substr("0000$m", -4); } # # If the media code is not set, default it! # if (!isset($dri_msrc)) { $dri_msrc = "P0000M0000"; } # # Look-up the current session, if it does not exist... create it. # include("$dri_lib_dir/lib.inc"); # $sessionkey = session_id(); $res_sessions = dbQuery("SELECT * FROM sessions WHERE sessionkey=\"$sessionkey\""); if (dbNumRows($res_sessions) == 0) { $sessions[sessionkey] = $sessionkey; $sessions[msrc] = $dri_msrc; $sessions[prod_site] = $dri_prod_site; $sessions[firstts] = convertUTimetoSQLTime(time()); $sessions[ip_addr] = $_SERVER["REMOTE_ADDR"]; $sessions[referer] = $_SERVER["HTTP_REFERER"]; $ins = MakeInsertString( $sessions ); dbQuery("INSERT INTO sessions (" . $ins[fields] . ") VALUES (" . $ins[values] . ")"); # $res_sessions = dbQuery("SELECT * FROM sessions WHERE sid=LAST_INSERT_ID()"); unset($sessions); $sessions = dbResultArray($res_sessions, 0); } else { $sessions = dbResultArray($res_sessions, 0); } $dri_sid = $sessions["sid"]; # # Update the most current timestamp and page count. # $dri_ts = convertUTimetoSQLTime(time()); dbQuery("UPDATE sessions SET pages=pages+1, ts='$dri_ts' WHERE sid='$dri_sid'"); # # Update parrent (if supplied) # if (isset($p)) { $dri_parrent = icrypt($p, 'D'); dbQuery("UPDATE sessions SET parrent='$dri_parrent' WHERE sid='$dri_sid'"); } else { $dri_parrent = $sessions["parrent"]; } # # Get current member info. # if ($_COOKIE[C2BRref] != "") { $refering_member = $_COOKIE[C2BRref]; } # if ($refering_member != "") { $res = dbQuery("SELECT * FROM members WHERE username = '$refering_member'"); if (dbNumRows($res) == 0) { $res = dbQuery("SELECT * FROM members WHERE username = 'default'"); } } else { $res = dbQuery("SELECT * FROM members WHERE username = 'default'"); } # # Store the user ID. # $member = dbResultArray($res, 0); # # If accessing the members area, and NOT logged in, redirect to the login page.... # if (strpos($dri_code_self, 'members')) { if ($logged_in == '') { $redirect_uri = $_SERVER["REQUEST_URI"]; $error_message = "Please login before using the members area!!"; include(str_replace('/htdocs', '/php', $_SERVER["DOCUMENT_ROOT"]) . '/login.htm'); include($_SERVER["DOCUMENT_ROOT"] . '/login.htm'); exit; } } # # If the code file exists, include it first. # if (file_exists($dri_code_self)) { include($dri_code_self); } } ?>
Our clients are often concerned that internal resources won't be able to keep E business and IT operations up and running as threats from viruses, hackers and disaster continue to increase. Also, additional hardware costs can result in significant operational overhead. We help our clients drive down total cost of ownership with our strategic hosting options. Blattner consulting hosting services provide the total solution, allowing our clients to concentrate on your core mission. By having Blattner consulting set up, host, and support your applications on our highly reliable, secure infrastructure, you are free to focus your valuable resources directly on your business needs. Blattner consulting hosting services provide you with state of the art expertise. We know our lients applications better than anyone and we ensure that systems are always up-to-date and properly configured. We protect our clients assets through our investment in the best hosting technologies available, which allows for scaleable solutions. We make data readily available while ensuring its security and integrity and retain accountability for the whole system. Blattner consulting hosting can be selected to host all, or just a part of our clients global needs including:
Our industry-leading Automated Hosting Services infrastructure provides fully managed, fully scalable, highly secure services that deliver guaranteed performance for your business demands.
|