"; print_r($_SERVER);*/ $requesturi = $_SERVER['REQUEST_URI']; $urlinitial = explode("?",$requesturi); //echo $requesturi = $urlinitial[0]; $sql = "select * from url where title = '$title' "; $row = $DB_CONNECT->query_first($sql); $title = $row['title']; //$location = $row['url'] ."?".$row['param']; $location = $row['url'] ; //echo $location = basename( $location); if($location) { $pos = strpos($location, "?"); $cid = $_SESSION['CID']; $sid = $_SESSION['SID']; if ($pos){ // $fullPath = "http://beta1.3up-design.com/clients/onezebra/".$location."&getContent=1"; $fullPath = WEBSITE.$location."&getContent=1&sid=$sid&cid=$cid"; }else{ $fullPath = WEBSITE.$location."?getContent=1&sid=$sid&cid=$cid"; } $context = stream_context_create(array( 'http'=>array( 'user_agent' => $_SERVER['HTTP_USER_AGENT'] ) )); echo file_get_contents( $fullPath,false,$context); //include($location); }else{ include("404page.php"); } ?>