. */ include("./include/include.php"); // Reset the session, except login info and layout $sess_uid=$_SESSION['sess_uid']; $sess_name=$_SESSION['sess_name']; $sess_access=$_SESSION['sess_access']; $layout=$_SESSION['layout']; $_SESSION=array(); $_SESSION['sess_uid']=$sess_uid; $_SESSION['sess_name']=$sess_name; $_SESSION['sess_access']=$sess_access; if( isset($_GET['layout']) ) $_SESSION['layout']=$layout; // Check if we should limit to displaying the requested thing if( isset($_GET['limit']) ) $limit="limit&"; else $limit=""; // See which page to display header("Cache-control: max-age=31536000"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i ") . " GMT"); // always modified header('Pragma: no-cache'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); if( isset($_GET['event']) ) header("Location: event.php?".$limit."event=".$_GET['event']); elseif( isset($_GET['body']) ) header("Location: event.php?limit&body=".$_GET['body']); else header("Location: home.php"); ?>