From 543336aef16562369c01992817f58e17144c9cad Mon Sep 17 00:00:00 2001 From: neoraider Date: Thu, 14 Dec 2006 00:06:02 +0000 Subject: Base-Type durch Subst-Erweiterungen unnoetig gemacht; Type-Konzept entfernt. --- code/links.inc.php | 2 +- code/nav.inc.php | 6 ++- code/pages.inc.php | 155 ++++++++++++++++++++++++++++------------------------- code/subst.inc.php | 39 +++++++++++++- code/user.inc.php | 2 +- 5 files changed, 125 insertions(+), 79 deletions(-) (limited to 'code') diff --git a/code/links.inc.php b/code/links.inc.php index 6c6fcd8..54d1dd9 100644 --- a/code/links.inc.php +++ b/code/links.inc.php @@ -3,7 +3,7 @@ class Links { function GetNeonLink($page, $extra = '', $html = true) { - if($GLOBALS['pages']->HasReadAccess($page, 'c')) { + if($GLOBALS['pages']->HasReadAccess($page)) { if($GLOBALS['user']->login_type == 'url') $ret = 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->login_key . ($extra ? '&' . $extra : ''); diff --git a/code/nav.inc.php b/code/nav.inc.php index 940ced2..7d1e38b 100644 --- a/code/nav.inc.php +++ b/code/nav.inc.php @@ -1,5 +1,5 @@ entries[$entry->parent]->Add(&$this->entries[$key]); } - function ParseNav($gid, $name) { + function ParseNav($name, $gid = NULL) { + if($gid === NULL) $gid = $GLOBALS['user']->getGid(); + $ret = '