|
|
Current User :
$userid = $session_hive['userid'];
if(!ctype_digit($userid))
{
//guest is active
echo "Visitor";
}else {
//user
echo $session_hive['full_name'];
echo " : Account Type : ";
$login_type = $session_hive['account_type'];
if($acc_type =='root')
{
echo "General/Root Administrator";
}elseif($acc_type =='institute')
{
$tag = $session_hive['target_institute_data_id'];
$row2 = query_asso(get_query("SELECT `name` from `institute_registry` where `id` = '$tag'"));
echo $row2['name'];
}elseif($acc_type =='readonly')
{
echo "Supervisory Rights : All Institutes";
}
}
?>
|
|
|
|
|
|
|
|
Copyright December © 2011 Integrated Teacher Database |
|