diff options
author | neoraider <devnull@localhost> | 2006-12-04 01:11:05 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-12-04 01:11:05 +0100 |
commit | 3b7d2cb2fd40d744a2415a470b4e323d13dd1b63 (patch) | |
tree | 45dc49f5501c13d0e967e41bafb54e9f0dfad0a9 /code/user.inc.php | |
parent | a55cccfbc9ba53fb4b4b28586cfeb9e5e035a6a7 (diff) | |
download | neon-3b7d2cb2fd40d744a2415a470b4e323d13dd1b63.tar neon-3b7d2cb2fd40d744a2415a470b4e323d13dd1b63.zip |
Nav-Seiten durch Inserts ersetzt; Editor-Seiten jetzt in Templates.
Diffstat (limited to 'code/user.inc.php')
-rw-r--r-- | code/user.inc.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/code/user.inc.php b/code/user.inc.php index 7c9b907..cc04268 100644 --- a/code/user.inc.php +++ b/code/user.inc.php @@ -73,13 +73,18 @@ } function IsAdmin($id = -1) { - if($id < 0) return ($this->uid != 0 && $this->gid == 0); + if($id < 0) return ($this->gid == -1); - return ($id != 0 && $this->GetGid($id) == 0); + return ($this->GetGid($id) == -1); + } + + function GetUid() { + return $this->uid; } function GetGid($id = -1) { if($id < 0) return $this->gid; + if($id == 0) return 0; $res = $GLOBALS['db']->Execute('SELECT gid FROM users WHERE id = ?', $id); |