diff options
author | neoraider <devnull@localhost> | 2006-03-05 18:38:05 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-03-05 18:38:05 +0100 |
commit | 13644bec358f3e51a085337c75aaaa2b9704bfbe (patch) | |
tree | 7772d25df6c259043802fc3feebfe8ae853922b9 /code/user.inc.php | |
parent | b4e4ea85fff81c47a4aa5a3b46c17340e4192d08 (diff) | |
download | neon-13644bec358f3e51a085337c75aaaa2b9704bfbe.tar neon-13644bec358f3e51a085337c75aaaa2b9704bfbe.zip |
Seiten-Verwaltung intern ueberarbeitet.
Diffstat (limited to 'code/user.inc.php')
-rw-r--r-- | code/user.inc.php | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/code/user.inc.php b/code/user.inc.php index 5aa76d5..373c5e8 100644 --- a/code/user.inc.php +++ b/code/user.inc.php @@ -3,7 +3,7 @@ class User { var $uid = 0, $gid = 0; - var $key = '', $type = ''; + var $key = '', $login_type = ''; function User() { if($_COOKIE['login']) { @@ -29,7 +29,7 @@ $this->uid = $res->fields[0]; $this->gid = $res->fields[1]; - $this->type = 'url'; + $this->login_type = 'url'; $this->key = $_GET['login']; } } @@ -47,7 +47,7 @@ $this->uid = $id; $this->gid = $res->fields[1]; - $this->type = 'url'; + $this->login_type = 'url'; $this->key = $sid . $id; setcookie('login', $this->key); @@ -64,7 +64,7 @@ $this->uid = 0; $this->gid = 0; - $this->type = ''; + $this->login_type = ''; $this->key = ''; setcookie('login'); @@ -73,22 +73,6 @@ function IsAdmin() { return ($this->uid != 0 && $this->gid == 0); } - - function GetUid() { - return $this->uid; - } - - function GetGid() { - return $this->gid; - } - - function GetLoginType() { - return $this->type; - } - - function GetLoginKey() { - return $this->key; - } } $GLOBALS['user'] = new User; |