summaryrefslogtreecommitdiffstats
path: root/code/user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/user.inc.php')
-rw-r--r--code/user.inc.php24
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;