<?
/////////////////////////////////
//
// - check if user is author
// - if not, go to login or index
//
// - check if user is trying to access something they shouldn't be
//
/////////////////////////////////
/* if (!isset($numDirsDown))
$numDirsDown = 0;
$dir = "";
for ($i=0; $i<$numDirsDown; ++$i)
$dir .= "../";
include_once ($dir . "definitions.php");*/
include "definitions.php";
if (!isset($sess_level))
include $dir . "checkSession.php";
if (isset($sess_level) && $sess_level==GUEST)
header("Location: " . $dir . "../login/login.php");
if (isset($sess_level) && $sess_level!=AUTHOR)
{
//echo "jack is the";
header("Location: " . $dir . "../index.php");
}
?>