Header and navbar consistent with Arch site redesign

-- Loui Chang
Change is_tu to check_user_privileges
Change div#archdev-navbar style

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Denis Kobozev 2010-06-25 10:12:29 -04:00 committed by Loui Chang
parent b5bc6ab742
commit b22f66b3ee
5 changed files with 82 additions and 36 deletions

View file

@ -422,6 +422,14 @@ function uid_from_email($email="")
return $row[0];
}
# check user privileges
#
function check_user_privileges()
{
$type = account_from_sid($_COOKIE['AURSID']);
return ($type == 'Trusted User' || $type == 'Developer');
}
/**
* Generate clean url with edited/added user values
*