# # $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); } } ?>
All of our services our offered on a “vendor agnostic” basis and in addition to expertise with all major software vendors, our goal is to create a secure, scalable, high performance networks that advance our client's business strategy. Networking involves design, installation and support of desktop computers, fileservers, network electronics and peripherals. Our clients networks sustain the company’s infrastructure, everything that supports the flow and processing of information. Blattner consulting design, implement and support custom network infrastructure solutions which help our clients achieve dependable network performance. Our comprehensive expertise provides solutions which are tailored to our clients' diverse needs and we always strive to increase productivity and lower the total cost of ownership. Our methodology is simple — our knowledgeable and experienced consultants analyze your environment and your objectives, suggest the equipment & software that will be most productive, efficient and cost-effective for your business, provide you with a competitive quote and then install and configure it. Whether you’re looking for a turnkey network solution for your small business or a custom option tailored specifically to your company’s needs, Blattner consulting can provide guidance in the following areas:
With IT Consulting Services provided by Blattner consulting, your business acquires years of experience in building and managing networks without the costs associated with hiring in-house, IT staff.
|