projects
/
infodrom.org
/
www.zeitungsliste.de
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39fe183
)
Simple is_admin()
author
Joey Schulze
<joey@infodrom.org>
Fri, 8 Aug 2008 14:57:03 +0000
(14:57 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 8 Aug 2008 14:57:03 +0000
(14:57 +0000)
lib/core.inc
patch
|
blob
|
history
diff --git
a/lib/core.inc
b/lib/core.inc
index
fd3dd8d
..
c7dbbf2
100644
(file)
--- a/
lib/core.inc
+++ b/
lib/core.inc
@@
-157,6
+157,17
@@
function is_spider()
return false;
}
+function is_admin()
+{
+ global $_SESSION;
+
+ if (!array_key_exists('nickname', $_SESSION))
+ return false;
+
+ error_log( $_SESSION['nickname'] === 'Joey');
+ return $_SESSION['nickname'] === 'Joey';
+}
+
function format_info_bookmarks()
{
global $_SESSION;