diff options
author | neoraider <devnull@localhost> | 2006-03-05 03:37:00 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-03-05 03:37:00 +0100 |
commit | bbcca77d7022f9c10c35247102f5f0a0ed87e99c (patch) | |
tree | 8fadb935e68f1e99f4f597a8936e9f1dfa9c50de /code/links.inc.php | |
parent | 4517c2bbb2d34f81d0fb1e9ded118f98aaa08077 (diff) | |
download | neon-bbcca77d7022f9c10c35247102f5f0a0ed87e99c.tar neon-bbcca77d7022f9c10c35247102f5f0a0ed87e99c.zip |
Seiten- und Rechte-Verwaltungen koennen jetzt auch auf Nav- und Editor-Seiten zugreifen.
Diffstat (limited to 'code/links.inc.php')
-rw-r--r-- | code/links.inc.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/code/links.inc.php b/code/links.inc.php index e118160..9fbaae3 100644 --- a/code/links.inc.php +++ b/code/links.inc.php @@ -2,12 +2,17 @@ require_once('code/user.inc.php'); class Links { - function GetNeonLink($page) { + function GetNeonLink($page, $extra = '', $html = true) { if($GLOBALS['pages']->HasAccess($page, 'c')) { if($GLOBALS['user']->GetLoginType() == 'url') - return 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->GetLoginKey(); + $ret = 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->GetLoginKey() + . ($extra ? '&' . $extra : ''); - return 'index.php?page=' . $page; + else + $ret = 'index.php?page=' . $page . ($extra ? '&' . $extra : ''); + + if($html) return htmlspecialchars($ret); + else return $ret; } return ''; |