git://git.iain.cx/iain
/
readifood.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into uat
[readifood.git]
/
lib
/
admin.php
1
<?php
2
3
function check_admin($level, $complaint = null) {
4
global $admin_level;
5
if ($admin_level >= $level) return true;
6
if (isset($complaint)) echo "<p>Insufficient privileges to $complaint.</p>\n";
7
return false;
8
}
9
10
?>