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. --- index.php | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 0da673f..e933274 100644 --- a/index.php +++ b/index.php @@ -11,10 +11,28 @@ if($_GET['page']) $page = Unquote($_GET['page']); else $page = $GLOBALS['config']['home']; - if($_GET['mode'] == 'edit') $data = $GLOBALS['pages']->GetEditor($page, 'c', $GLOBALS['links']->GetNeonLink($page, null, false)); - else $data = $GLOBALS['pages']->Get($page, 'c'); + $res = $GLOBALS['db']->Execute('SELECT code FROM base ORDER BY id'); - $base = $pages->Get($GLOBALS['config']['default_base'], 'b'); + $base = ''; + while(!$res->EOF) { + $base .= $res->fields[0]; + $res->MoveNext(); + } - echo $base['content']; + $env = array('current_page' => $page); + if($_GET['mode'] == 'edit') $env['current_page'] = '$editor:' . $page; + + $content = Subst($base, $env); + + echo ''; ?> + + + + + + + -- cgit v1.2.3