<% if (!isset($_SESSION['DOCUMENT_ROOT'])) { $_SESSION['DOCUMENT_ROOT'] = str_replace($_SERVER["SCRIPT_NAME"], "", str_replace("\\", "/", $_SERVER["SCRIPT_FILENAME"])); } require_once $_SESSION['DOCUMENT_ROOT'] . "/const.inc.php"; require_once $_SESSION['DOCUMENT_ROOT'] ."/tools/Functions.inc.php"; $UserID = null; //print ($_COOKIE['PHPSESSID']); if (isset ($_COOKIE['MOBILE']) && !isset($_SESSION['MOBILE'])) { $_SESSION['MOBILE'] = $_COOKIE['MOBILE']; } if (isset ($_COOKIE['UserID']) && !isset($_SESSION['UserID']) && isset($_COOKIE['Password'])) { $UserID = $_COOKIE['UserID']; $Password = $_COOKIE['Password']; include $_SESSION['DOCUMENT_ROOT'] . "/login/login.inc.php"; } %> <% include_once($_SESSION['DOCUMENT_ROOT'] . '/adodb/adodb.inc.php'); # Set the values for the connection $HostName = "sql5c45a.carrierzone.com"; $databaseUser = "trianglesc855562"; $databasePw = "Co7474dy!"; //$databaseUser = "steve"; //$databasePw = "iXVWCXq8"; //$databaseName = "spheradb_trianglescientific_com"; $databaseName = "trianglescientific_trianglescientific_com" ; # Connect to MySQL $conn = &ADONewConnection("mysql"); $conn->Connect($HostName, $databaseUser, $databasePw) or die ("Cannot connect to the host $HostName."); # Connect to the database $conn->SelectDB($databaseName) or die ("Cannot connect to the database $databaseName."); %>