<?php
session_start(); 
session_destroy();
    include ('includes/db1config.php');
    include ('includes/mysql_connect.php');
	include ('includes/admin-config.php');	//get site options	
	
	//get dynamic logo path for this site based on URL and root folder
	$qry = "select root_folder from storePrefs"; 
	$rs = mysql_query($qry);
	while($nt = mysql_fetch_array($rs)){
		$root_folder = $nt[root_folder];
	}
	if(stristr($_SERVER['HTTP_HOST'], "restaurant-online.biz")){
		$root_path = "http://www.restaurant-online.biz/".$root_folder."/";
	} elseif(stristr($_SERVER['HTTP_HOST'], "tastedisplay.com")){
		$root_path = "http://www.tastedisplay.com/".$root_folder."/";
	} else {
		$root_path="../";
	}
	
?> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<?php 
include('title.php'); 
echo'<link href="css/'.$stylesheet.'" rel="stylesheet" type="text/css" media="screen" />';	
echo'<link href="css/print_style.css" rel="stylesheet" type="text/css" media="print" />';
?>

<!--<link rel="stylesheet" type="text/css" href="css/cssverticalmenu.css" />


<script type="text/javascript" src="js/cssverticalmenu.js">
/***********************************************
* CSS Vertical List Menu- by JavaScript Kit (www.javascriptkit.com)
* Menu interface credits: http://www.dynamicdrive.com/style/csslibrary/item/glossy-vertical-menu/ 
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/
</script>-->


</head>
<body id="login">

<!--<div id="wrapper">-->
<div id="body-login-wrapper">
<!-- start header -->
<?php 
$logout = 1;
include('includes/header.inc.php');
?>
<!-- end header-->


<!-- start page -->
<!--<div id="page-container">-->
<div id="page-container-nobg">
<div id="page-bg-top">


<!-- start content -->
<!--<div id="content">-->
<!--<div id="main-content">-->
<div id="content-one-column">
   
		<div class="post">
		  <div class="entry">
          
<br />
<p><strong>Site Admin Page</strong> &bull; 
Login Required
</p>
<br />
<div id="login-logo"><img src="<?php echo $root_path;?>custom/images/header-logo.png" /></div>

				<h1 style="text-align:center;">Site Admin</h1>
<?php
	$my_referer = $_SERVER["HTTP_REFERER"];
	$my_returnto = "";
	$i = stripos($my_referer, "/cmsadmin/");
	if ($i && $i >= 0) {
		$my_returnto = "?return_to=" . substr($my_referer, $i);
	}
?>
<div align=center>You have logged out. <br><br>
<a href="./"><span id="save-button">Log in again</span> </a>
      </div>      

<br />
<br />
<br />
<br />
<br />
<br />

</div><!-- end entry-->

<br />

</div><!-- end post-->

</div><!-- end main-content-->

</div><!-- end content -->
    
<!-- start sidebar -->
<?php //include('includes/admin-sidebar.inc.php'); ?>
<!--sidebar-->


<div style="clear: both;">&nbsp;</div>
<div id="page-bg-btm">
</div><!-- end page-bg-btm div -->
</div><!-- end page-bg-top div -->
</div><!-- end page-container -->



</div><!-- end wrapper div-->

<!-- end page -->


<!--footer-->



</body>
</html>
