$current = "work-job"; $hiddenLogo = true; //include_once("./global/html-head.php"); include_once("includes/config.php"); include_once("includes/function.php"); include_once("./includes/Mobile_Detect.php"); //echo basename(__FILE__, '.php'); ; $title = basename($_SERVER["REQUEST_URI"], '.php'); /*echo "
"; 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"); } ?>