diff options
author | neoraider <devnull@localhost> | 2006-09-22 15:05:04 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-09-22 15:05:04 +0200 |
commit | c8ef6f06beafe500b85cdb252477217d9e017114 (patch) | |
tree | 1a0c823073810509ad020c7d5716f06e48a2f399 /index.php | |
parent | d02a8a4f7f23bd63b8d541e3f4290b72c4e15ec0 (diff) | |
download | neon-c8ef6f06beafe500b85cdb252477217d9e017114.tar neon-c8ef6f06beafe500b85cdb252477217d9e017114.zip |
Bugfix in messages.inc.php;
Provisorischen base-Seitentyp hinzugef?gt.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 37 |
1 files changed, 7 insertions, 30 deletions
@@ -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 '<?xml version="1.0" encoding="UTF-8" ?>'; + $base = $pages->Get($GLOBALS['config']['default_base'], 'b'); + + echo $base['content']; ?> - -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <title><?PHP echo $config['title'] . $data['title']; ?></title> - <link rel="stylesheet" type="text/css" href="styles/<?PHP echo $config['default_style']; ?>/style.css" /> - </head> - <body> - <div id="nav"> - <?PHP echo $nav->ParseEntries(); ?> - </div> - <div id="content"> - <?PHP - if($pages->HasWriteAccess($page, 'c') && $_GET['mode'] != 'edit') { - $backlink = $GLOBALS['links']->GetNeonLink($page); - - echo '<a class="editlink" href="' . $GLOBALS['links']->GetNeonLink($page, 'mode=edit') . '">Bearbeiten</a>'; - } - - echo $data['content']; - ?> - </div> - </body> -</html> |