//ob_start( 'ob_gzhandler' ); include('files/layout.php'); include('includes/functions.php'); $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; $site = $_SERVER['HTTP_HOST']; $sections = preg_split('!/!', $_GET['page']); $count = count($sections); $page = preg_replace('!\.htm|\.php!','',$sections[($count - 1)]); $section = $sections[($count - 2)]; $remote_url = @file_get_contents('remote-url-v2.txt');//this is used for articles, ad rotators and any other variable that uses an include to display data /*================================-RESERVED PAGES==============================*/ /*- These pages require some PHP scripting and cannot be done through the CMS -*/ /*=============================================================================*/ //Home Page //echo 'http://'.$remote_url.'/articles/show-article.php?site='.$site.'&homepage=1'; //exit(); if ($_GET['page'] == '' || $_GET['page'] == 'index.htm') { $head_data = preg_split('!SPL1TSPL1T!', curler('http://'.$remote_url.'/articles/show-article.php?site='.$site.'&homepage=1&voted='.$_SESSION['voted'])); if ($head_data[2] != '') $title = $head_data[2]; else $title = 'Limo Hire'; // ($title, $metakeywords, $metadescription, $top_ad) top($title, $head_data[0], $head_data[1], $head_data[4]); echo $head_data[6]; /*$mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $totaltime = ($endtime - $starttime); */ // ($menu, $side_ad, $top_ad) bottom($head_data[3], $head_data[5], $head_data[4]); exit(); } //Contact Us Pages //Email Script elseif (strstr($_GET['page'], 'pages/contact-us/contact-us-email.htm')) { session_start(); if (!session_is_registered("VALID")) { echo 'Invalid data submission. Your IP address has been recorded and our administrators will investigate the matter.'; exit(); } $head_data = preg_split('!SPL1TSPL1T!', @curler('http://'.$remote_url.'/articles/show-article.php?site='.$site.'&blank=1')); $title = 'Contact Us'; inner_top($title, $head_data[0], $head_data[1], $head_data[4]); $data = "subject=".urlencode('Contact Us From: '.$_SERVER['HTTP_HOST'])."&contactname=".urlencode($_POST['contactname'])."&email=".urlencode($_POST['email'])."&enquiry=".urlencode($_POST['enquiry'])."&site=".urlencode($_SERVER['HTTP_HOST']); $url = 'http://'.$remote_url.'/contact-us/standard-contact-us-email.php'; $result = post_it($data, $url); echo $result[(count($result) - 1)]; //echo $head_data[6]; inner_bottom($head_data[3], $head_data[5], $head_data[4]); exit(); } //Agent Email Script elseif (strstr($_GET['page'], 'pages/contact-us/comp-contact-us')) { session_start(); if (!session_is_registered("VALID")) { echo 'Invalid data submission. Your IP address has been recorded and our administrators will investigate the matter.'; exit(); } $head_data = preg_split('!SPL1TSPL1T!', curler('http://'.$remote_url.'/articles/show-article.php?old=1&url='.($site.'/'.$_GET['page']).'&site='.$site)); $title = 'Agency Contact Us'; inner_top($title, $head_data[0], $head_data[1], $head_data[4]); $data = "subject=".urlencode('Agency Enquiry: '.$_SERVER['HTTP_HOST'])."&contactname=".urlencode($_POST['name'])."&email=".urlencode($_POST['email'])."&companyname=".urlencode($_POST['companyname'])."&telnum=".urlencode($_POST['telnum'])."&message=".urlencode($_POST['message'])."&location=".urlencode($_POST['location'])."&mobile=".urlencode($_POST['mobile'])."&referrer=".urlencode($_POST['referrer'])."&coverage=".urlencode($_POST['coverage'])."&marketing=".urlencode($_POST['marketing'])."&numvehicles=".urlencode($_POST['numvehicles'])."&fleetdetails=".urlencode($_POST['fleetdetails'])."&site=".urlencode($_SERVER['HTTP_HOST']); $url = 'http://'.$remote_url.'/contact-us/comp-contact-email.php'; $result = post_it($data, $url); echo $result[(count($result) - 1)]; //echo $head_data[6]; inner_bottom($head_data[3], $head_data[5], $head_data[4]); exit(); } elseif (strstr($_GET['page'], 'newsletter/newsletter-confirm.htm')) { session_start(); $head_data = preg_split('!SPL1TSPL1T!', curler('http://'.$remote_url.'/articles/show-article.php?old=1&url='.urlencode('http://'.$site.'/'.$_GET['page']).'&site='.$site)); if ($head_data[2] != '') $title = $head_data[2]; else $title = 'News Letter'; inner_top($title, $head_data[0], $head_data[1], $head_data[4]); $data = "personname=".urlencode($_POST['personname'])."&email=".urlencode($_POST['email'])."&site=".urlencode($_SERVER['HTTP_HOST']); $url = 'http://'.$remote_url.'/newsletter/newsletter-adder.php'; $result = post_it($data, $url); echo $result[(count($result) - 1)]; echo $head_data[6]; inner_bottom($head_data[3], $head_data[5], $head_data[4]); exit(); } //Link Page Listings elseif (strstr($_GET['page'], '/links-')) { $send = explode('/', str_replace('.htm', '',$_GET['page'])); $arr_count = count($send); $send = explode('-', $send[($arr_count-1)]); for($i=1; $i < (count($send)-1); $i++) $cat .= $send[$i].' '; $cat = urlencode(trim($cat)); $pnum = $send[(count($send)-1)]; // echo 'http://'.$remote_url.'links/links-pages/multi-page.php?cat='.$cat.'&pnum='.$pnum.'&site='.$site.'&url='.($site.'/'.$_GET['page']); // exit(); $head_data = preg_split('!SPL1TSPL1T!', @curler('http://'.$remote_url.'/links/links-pages/multi-page.php?cat='.$cat.'&pnum='.$pnum.'&site='.$site.'&url='.($site.'/'.$_GET['page']))); inner_top(str_replace('+', ' ', $cat).' Links', $head_data[0], $head_data[1], $head_data[4]); echo $head_data[6]; inner_bottom($head_data[3], $head_data[5], $head_data[4]); } //Quote System= //Quote processing elseif (strstr($_GET['page'], 'pages/limo-hire-quote.htm')) { $head_data = preg_split('!SPL1TSPL1T!', @curler('http://'.$remote_url.'/articles/show-article.php?site='.$site.'&blank=1')); include("quote-processor.php"); exit(); } /*========================================================================== ==========================================================================*/ else { //Old page, old section or just an article $sections = preg_split('!/!', $_GET['page']); $count = count($sections); $page = preg_replace('!\.htm|\.php!','',$sections[($count - 1)]); $section = $sections[($count - 2)]; // echo 'http://'.$remote_url.'/articles/show-article.php?old=1&url='.($site.'/'.$_GET['page']).'&site='.$site; $head_data = preg_split('!SPL1TSPL1T!', curler('http://'.$remote_url.'/articles/show-article.php?old=1&url='.($site.'/'.$_GET['page']).'&voted='.$_SESSION['voted'].'&site='.$site)); /* foreach($head_data as $test) echo $test.'