2007-11-17 21:59:59 +00:00
|
|
|
<?
|
|
|
|
|
2024-12-13 15:38:18 +00:00
|
|
|
include_once("helper.inc.php");
|
|
|
|
|
2007-11-17 21:59:59 +00:00
|
|
|
function committee_auth_has_access($access="")
|
|
|
|
{
|
|
|
|
|
|
|
|
switch($access) {
|
2024-12-13 15:38:18 +00:00
|
|
|
case 'config': return (get_value_from_array($_SESSION, 'access_config') == 'yes') ? true : false;
|
|
|
|
case 'admin': return (get_value_from_array($_SESSION, 'access_admin') == 'yes') ? true : false;
|
|
|
|
case 'super': return (get_value_from_array($_SESSION, 'access_super') == 'yes') ? true : false;
|
2007-11-17 21:59:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2009-12-03 23:19:06 +00:00
|
|
|
function committee_status_update(&$u)
|
|
|
|
{
|
|
|
|
global $config;
|
|
|
|
|
|
|
|
if( user_personal_info_status($u) == 'complete')
|
|
|
|
$u['committee_complete'] = 'yes';
|
|
|
|
else
|
|
|
|
$u['committee_complete'] = 'no';
|
|
|
|
|
|
|
|
return ($u['committee_complete'] == 'yes') ? 'complete' : 'incomplete';
|
|
|
|
}
|
|
|
|
|
2007-11-17 21:59:59 +00:00
|
|
|
|
|
|
|
?>
|