summaryrefslogtreecommitdiffstats
path: root/code/user.inc.php
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-01-19 02:11:03 +0100
committerneoraider <devnull@localhost>2006-01-19 02:11:03 +0100
commit6185e517923e4bc2e64cfc6bcd39c6df4b455316 (patch)
tree16fbed1bb2fee5940ed08a91e69dd0604dc8bda3 /code/user.inc.php
parentc630a2d50349c57660cfc98eb13ec71444b27610 (diff)
downloadneon-6185e517923e4bc2e64cfc6bcd39c6df4b455316.tar
neon-6185e517923e4bc2e64cfc6bcd39c6df4b455316.zip
Cookie-Login aktiviert. Handler nochmal etwas ?berarbeitet. Seiten k?nnen jetzt bearbeitet werden.
Diffstat (limited to 'code/user.inc.php')
-rw-r--r--code/user.inc.php8
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() {