diff options
Diffstat (limited to 'code/user.inc.php')
-rw-r--r-- | code/user.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/code/user.inc.php b/code/user.inc.php index 34b12f2..4899612 100644 --- a/code/user.inc.php +++ b/code/user.inc.php @@ -53,6 +53,8 @@ $this->type = 'url'; $this->key = $sid . $id; + setcookie('login', $this->key); + return $id; } @@ -67,6 +69,12 @@ $this->type = ''; $this->key = ''; + + setcookie('login'); + } + + function IsAdmin() { + return ($this->uid != 0 && $this->gid == 0); } function GetUid() { |