getUser();
include ("sessions.php");
$admin=$_GET['admin'];
if(!isset($admin)){
$admin=$_POST['admin'];
}
if ($admin=="1"){ //admin section
include("admin_header.php");
include("userbar.php");
include("admin.php");
include("admin_footer.php");
} else { //public site section
include("site_header.php");
include("site.php");
include("site_footer.php");
}
?>