./includes/common/auth.php

<?php

if ( !defined('IN_SITE') )
{
    
report ('hacking attempt, insite unset.', '');
}


//now look for a session login
$user = new User();
if($_SESSION['login']=="true")
{
    
$user->login($_SESSION['id']);
}

//see if they are an admin
if($_SESSION['admin']=="true")
{
    
$user->status = 'admin';
}

?>