summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-03-05 18:50:04 +0100
committerneoraider <devnull@localhost>2006-03-05 18:50:04 +0100
commita8c94b9b74d7f586ea4b8a5b09290c04b44df7fe (patch)
tree10c4d6335e384f5865c97147d1ac20f3e1a17430
parent13644bec358f3e51a085337c75aaaa2b9704bfbe (diff)
downloadneon-a8c94b9b74d7f586ea4b8a5b09290c04b44df7fe.tar
neon-a8c94b9b74d7f586ea4b8a5b09290c04b44df7fe.zip
Kleinen Fehler mit den internen Links gefixt.
-rw-r--r--code/links.inc.php2
-rw-r--r--code/user.inc.php12
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');
}