//This line gets the current time off the server $time = time () ; //This line formats it to display just the year $today= date("d-m-Y",$time) . ""; if (empty($_GET['date'])) $date = $today; else $date = str_replace("/","-", $_GET['date']); list($day, $month, $year) = explode('-', $date); $datelr = $year.'-'.$month.'-'.$day; if (empty($_GET['nights'])) $nights = 1; else $nights = $_GET['nights']; //formatted for search box $datef = str_replace("-","/", $date); //no dates //$all = 1; $all = ($_GET['all']); if ($all == 1) {$date = ""; $nights = "";} $kword = "Scotland"; ?>
require('_header-inner.php'); ?>