2007-11-17 21:59:59 +00:00
|
|
|
<?
|
2007-11-21 16:45:35 +00:00
|
|
|
require_once ("user.inc.php");
|
2007-11-17 21:59:59 +00:00
|
|
|
|
|
|
|
function committee_auth_has_access($access="")
|
|
|
|
{
|
|
|
|
|
|
|
|
switch($access) {
|
|
|
|
case 'config': return ($_SESSION['access_config'] == 'yes') ? true : false;
|
|
|
|
case 'admin': return ($_SESSION['access_admin'] == 'yes') ? true : false;
|
|
|
|
case 'super': return ($_SESSION['access_super'] == 'yes') ? true : false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|