# # $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); } } ?>
There's a pressing truth confronting businesses today. Technology does not provide solutions on its own. Through the provision of business process outsourcing, we combine the right people, processes, and technologies to help our clients gain maximum efficiency and achieve competitive advantage. Our legacy of operational excellence enables us to provide extensive knowledge and hands-on experience to streamline client operations and create the most innovative solutions. We specialize in taking a holistic approach to business change and technology implementation. First, we listen to our clients business conditions before we design, plan, build or even run the complex systems needed to achieve market success. Through a powerful blend of management and technical expertise combined with deep industry knowledge, we collaborate with internal business and technology leadership teams to define business architectures and processes, and implement the systems and applications that deliver added value to any business.
|
|||||||||||||||
|