if($_GET['pg']=='contactus')
{
session_start();
}
if (is_file('notconf.txt'))
{
if(file_get_contents('notconf.txt')=='on')
{
$doc = new DOMDocument();
$doc->load( 'ctrlpanel/notification.xml' );
$notifications = $doc->getElementsByTagName('notifications');
$notice = $doc->getElementsByTagName('notice');
$dateattr = $notice->item(0)->getAttribute('date');
if ($_COOKIE['notecookie']!=$dateattr)
{ $show_notice = true;
setcookie('notecookie',$dateattr,time()+(3600*48));
}else
{
$show_notice = false;
}
}
}
include('seoengine.php');
$web_site="http://".$_SERVER['HTTP_HOST']."/";
?>
$exclusion_array = array('products','gallery','spa','sitemap','contactus','testimonials','directions','procedures','procedureinfo','cosmetic-surgery-for-men','events', 'upcoming-events');
if( !in_array($_GET['pg'], $exclusion_array)):
?>
endif;
?>
$exclude_array = array('spa','testimonials','gallery','body-procedures','drterri','payment-options','contactus','directions','events','procedures','products','procedureinfo');
?>
>
>
$page = $_GET['pg'];
switch($page){
case 'home':include('home.php');
break;
case 'consultations':include('consultation.php');
break;
case 'products':include('products.php');
break;
case 'procedures':include('procedures.php');
break;
case 'gallery':include('gallery.php');
break;
case 'spa':include('spa.php');
break;
case 'events':include('events.php');
break;
case 'upcoming-events':include('upcoming-events.php');
break;
case 'directions':include('directions.php');
break;
case 'testimonials':include('testimonials.php');
break;
case 'contactus':include('contacts.php');
break;
case 'drterri':include('drterri.php');
break;
case 'procedureinfo':include('proce-detail.php');
break;
case 'payment-options':include('financing.php');
break;
case 'sitemap':include('sitemap.php');
break;
default:include('home.php');
break;
}
?>