From a8c94b9b74d7f586ea4b8a5b09290c04b44df7fe Mon Sep 17 00:00:00 2001 From: neoraider Date: Sun, 5 Mar 2006 17:50:04 +0000 Subject: Kleinen Fehler mit den internen Links gefixt. --- code/links.inc.php | 2 +- 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'); } -- cgit v1.2.3