From 61f7b4cc39a399a16298453acbe5a8f49ad0513d Mon Sep 17 00:00:00 2001 From: neoraider Date: Sat, 7 Jan 2006 01:30:00 +0000 Subject: Hmm... die Content-Handler sind jetzt ansatzweise implementiert. --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index b6a0a66..1167f1a 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,8 @@ include('config/config.inc.php'); include('code/message.inc.php'); - include('code/subst.inc.php'); + include('code/util.inc.php'); + include('code/content.inc.php'); header('Content-type: text/html;charset=UTF-8'); @@ -10,8 +11,9 @@ $template = 'default'; $title = $config['title']; $style = $config['default_style']; + $page = $config['home']; $template_data = join('', file('templates/' . $template)); - echo Subst($template_data, array('title' => $title, 'stylesheet' => 'styles/' . $style . '/style.css', 'content' => 'Inhalt')); + echo Subst($template_data, array('title' => $title, 'stylesheet' => 'styles/' . $style . '/style.css', 'content' => GetPage($page))); ?> -- cgit v1.2.3