"; if($_GET['url'] == $sArr_l1[$i]['region_url']){ $page = 1; $page_inc = '/region.php'; } if($_GET['url'] == $sArr_l1[$i]['region_url'].'/accommodaties'){ $page = 1; $page_inc = '/region_accom.php'; } if($_GET['url'] == 'landen-info/'.$sArr_l1[$i]['region_url']){ $page = 1; $page_inc = '/region_info.php'; } } } //------------------------------------Dynamic Pages---------------------------------// if($page == '0'){ $sArr_l1 = db_custom('SELECT accom_id, accom_url FROM accom WHERE accom_status = 1'); for($i = 0; $i < count($sArr_l1); $i++){ //echo $_REQUEST['url'] ."==". $sArr_l1[$i]['accom_url']."
"; if($_GET['url'] == $sArr_l1[$i]['accom_url']){ // echo "1"; $page = 1; $page_inc = '/accom.php'; } } } //------------------------------------Dynamic Pages---------------------------------// if($page == '0'){ $sArr_l1 = db_custom('SELECT vehicle_id, vehicle_url FROM vehicle WHERE vehicle_status = 1'); for($i = 0; $i < count($sArr_l1); $i++){ // echo $_REQUEST['url'] ."==". $sArr_l1[$i]['vehicle_url']."
"; if($_GET['url'] == $sArr_l1[$i]['vehicle_url']){ // echo "1"; $page = 1; $page_inc = '/car_details.php'; } } } //------------------------------------Dynamic Pages---------------------------------// if($page == '0'){ $sArr_l1 = db_custom('SELECT tour_id, tour_url FROM tour WHERE tour_status = 1'); for($i = 0; $i < count($sArr_l1); $i++){ //echo $_REQUEST['url'] ."==". $sArr_l1[$i]['content_url']."
"; if($_GET['url'] == $sArr_l1[$i]['tour_url']){ $page = 1; $page_inc = '/tour.php'; } } } //------------------------------------Dynamic Pages---------------------------------// if($page == '0'){ $sArr_l1 = db_custom('SELECT feedback_id FROM feedback WHERE feedback_status = 1'); for($i = 0; $i < count($sArr_l1); $i++){ //echo $_REQUEST['url'] ."==". $sArr_l1[$i]['content_url']."
"; if($_GET['url'] == "gastenboek/".$sArr_l1[$i]['feedback_id'].""){ $page = 1; $page_inc = '/feedback.php'; } } } //------------------------------------Dynamic Pages---------------------------------// if($page == '0'){ $sArr_l1 = db_custom('SELECT content_url, content_type_id FROM content WHERE content_status = 1'); for($i = 0; $i < count($sArr_l1); $i++){ //echo $_REQUEST['url'] ."==". $sArr_l1[$i]['content_url']."
"; if($_REQUEST['url'] == $sArr_l1[$i]['content_url'] && ($sArr_l1[$i]['content_type_id'] == '11' || $sArr_l1[$i]['content_type_id'] == '21')){ $page = 1; $page_inc = '/content.php'; } if($_REQUEST['url'] == $sArr_l1[$i]['content_url'] && $sArr_l1[$i]['content_type_id'] == '12'){ $page = 1; $page_inc = '/listing.php'; } if($_REQUEST['url'] == $sArr_l1[$i]['content_url'] && $sArr_l1[$i]['content_type_id'] == '13'){ $page = 1; $page_inc = '/car-listing.php'; } if($_REQUEST['url'] == $sArr_l1[$i]['content_url'] && $sArr_l1[$i]['content_type_id'] == '14'){ $page = 1; $page_inc = '/4x4-listing.php'; } if($_REQUEST['url'] == $sArr_l1[$i]['content_url'] && $sArr_l1[$i]['content_type_id'] == '15'){ $page = 1; $page_inc = '/camper-listing.php'; } if($_REQUEST['url'] == $sArr_l1[$i]['content_url'] && $sArr_l1[$i]['content_type_id'] == '16'){ $page = 1; $page_inc = '/flight-ticket.php'; } if($_REQUEST['url'] == $sArr_l1[$i]['content_url'] && $sArr_l1[$i]['content_type_id'] == '17'){ $page = 1; $page_inc = '/accom-listing.php'; } } } //------------------------------------ Final Include ------------------------------// if($page == '0'){ include("404.php"); }else{ //echo $_SERVER['DOCUMENT_ROOT'].$page_inc; include($_SERVER['DOCUMENT_ROOT'].$page_inc); } ?>