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.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/code/user.inc.php b/code/user.inc.php
index 373c5e8..7459e33 100644
--- a/code/user.inc.php
+++ b/code/user.inc.php
@@ -3,7 +3,7 @@
class User {
var $uid = 0, $gid = 0;
- var $key = '', $login_type = '';
+ var $login_key = '', $login_type = '';
function User() {
if($_COOKIE['login']) {
@@ -16,7 +16,7 @@
$this->gid = $res->fields[1];
$this->type = 'cookie';
- $this->key = $_COOKIE['login'];
+ $this->login_key = $_COOKIE['login'];
}
}
@@ -30,7 +30,7 @@
$this->gid = $res->fields[1];
$this->login_type = 'url';
- $this->key = $_GET['login'];
+ $this->login_key = $_GET['login'];
}
}
}
@@ -48,9 +48,9 @@
$this->gid = $res->fields[1];
$this->login_type = 'url';
- $this->key = $sid . $id;
+ $this->login_key = $sid . $id;
- setcookie('login', $this->key);
+ setcookie('login', $this->login_key);
return $id;
}
@@ -65,7 +65,7 @@
$this->gid = 0;
$this->login_type = '';
- $this->key = '';
+ $this->login_key = '';
setcookie('login');
}