header("Location: ../home/index.php"); exit; ob_start(); session_start(); if($loginvar==1) { // $pathprefix = "../"; $pathprefix = ""; } else { // $pathprefix = ""; $pathprefix = "../"; } include_once($pathprefix."includes/MySQLfunctions.class.php"); include_once($pathprefix."banner.php"); function showerror($message) { print(' '); } require_once($pathprefix."includes/session.inc.php"); require_once($hashurl); if($_SESSION["utype"]!="yellowpage"){ $ip = $_SERVER['REMOTE_ADDR']; $sess_id = MD5($ip.$hash); } /*Start Adding for yellowpages 11/09/2004*/ if($_SESSION["utype_yp"]=="yellowpage" && ($_SESSION["ustatus"]=="2" || $_SESSION["ustatus"]=="3")) { } /*End Adding for yellowpages 11/09/2004*/ elseif($_SESSION["utype"]=="investor" && $_SESSION["ustatus"]=="2") { }elseif ($_SESSION["sess_id"] != $sess_id) { header("location:".$pathprefix."login.php?id=1"); } if(!empty($_SESSION["uid"])&& $_SESSION["utype"]=="serviceprovider"){ $file=$normalurl."serviceprovider/sp_account.php"; header("location:$file"); exit; } if ($action=="logout") { while (list ($key, $val) = each ($_SESSION)) { session_unregister($key); } header("location:".$pathprefix."index.php"); } $mySQLsession=new MySQLfunctions(); $connection=$mySQLsession->connect($dbhost, $dblogin, $dbpassword, $database); $db_query = mysql_query("select * from managers where manager_id = '" . $_SESSION["uid"] . "'"); $db_result = mysql_fetch_object($db_query); $manager_name = $db_result->man_firstname . " " . $db_result->man_lastname; $invokePopUp=" onunload=\"javascript:if (document.all){RorC('".$normalurl."delonline.php?id=".$_SESSION["sess_onlineid"]."')} else {var top=window.outerWidth;if (top==0) {RorC('".$normalurl."delonline.php')}}\""; ?>