From c8ef6f06beafe500b85cdb252477217d9e017114 Mon Sep 17 00:00:00 2001 From: neoraider Date: Fri, 22 Sep 2006 13:05:04 +0000 Subject: Bugfix in messages.inc.php; Provisorischen base-Seitentyp hinzugef?gt. --- index.php | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index ae92eaf..cef78c6 100644 --- a/index.php +++ b/index.php @@ -4,40 +4,17 @@ require_once('core/modules.inc.php'); require_once('core/xmlparser.inc.php'); - Uses('message', 'util', 'pages', 'nav', 'links'); + Uses('util', 'pages', 'links'); header('Content-type: text/html;charset=UTF-8'); if($_GET['page']) $page = Unquote($_GET['page']); - else $page = $config['home']; + else $page = $GLOBALS['config']['home']; - if($_GET['mode'] == 'edit') $data = $pages->GetEditor($page, 'c', $GLOBALS['links']->GetNeonLink($page, null, false)); - else $data = $pages->Get($page, 'c'); + if($_GET['mode'] == 'edit') $data = $GLOBALS['pages']->GetEditor($page, 'c', $GLOBALS['links']->GetNeonLink($page, null, false)); + else $data = $GLOBALS['pages']->Get($page, 'c'); - echo ''; + $base = $pages->Get($GLOBALS['config']['default_base'], 'b'); + + echo $base['content']; ?> - - - - - <?PHP echo $config['title'] . $data['title']; ?> - - - - -
- HasWriteAccess($page, 'c') && $_GET['mode'] != 'edit') { - $backlink = $GLOBALS['links']->GetNeonLink($page); - - echo 'Bearbeiten'; - } - - echo $data['content']; - ?> -
- - -- cgit v1.2.3