diff options
-rw-r--r-- | code/links.inc.php | 2 | ||||
-rw-r--r-- | code/user.inc.php | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/code/links.inc.php b/code/links.inc.php index 5c48f54..7895197 100644 --- a/code/links.inc.php +++ b/code/links.inc.php @@ -5,7 +5,7 @@ function GetNeonLink($page, $extra = '', $html = true) { if($GLOBALS['pages']->HasAccess($page, 'c')) { if($GLOBALS['user']->login_type == 'url') - $ret = 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->GetLoginKey() + $ret = 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->login_key . ($extra ? '&' . $extra : ''); else 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'); } |