summaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-03-05 03:37:00 +0100
committerneoraider <devnull@localhost>2006-03-05 03:37:00 +0100
commitbbcca77d7022f9c10c35247102f5f0a0ed87e99c (patch)
tree8fadb935e68f1e99f4f597a8936e9f1dfa9c50de /code
parent4517c2bbb2d34f81d0fb1e9ded118f98aaa08077 (diff)
downloadneon-bbcca77d7022f9c10c35247102f5f0a0ed87e99c.tar
neon-bbcca77d7022f9c10c35247102f5f0a0ed87e99c.zip
Seiten- und Rechte-Verwaltungen koennen jetzt auch auf Nav- und Editor-Seiten zugreifen.
Diffstat (limited to 'code')
-rw-r--r--code/links.inc.php11
-rw-r--r--code/pages.inc.php1
2 files changed, 9 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 '';
diff --git a/code/pages.inc.php b/code/pages.inc.php
index ca0dbc1..09cd525 100644
--- a/code/pages.inc.php
+++ b/code/pages.inc.php
@@ -39,6 +39,7 @@
$data = array_map('Unquote', $data);
$data['_id'] = $res->fields[0];
$data['_page'] = $name;
+ $data['_type'] = $type;
return $this->Get($res->fields[1], 'e', array('_data' => $data));
}