blob: be663fe2317eb55e72f159956137b4dd02e39a5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?PHP
include('config/config.inc.php');
include('code/message.inc.php');
include('code/util.inc.php');
include('code/content.inc.php');
header('Content-type: text/html;charset=UTF-8');
// provisional
$template = 'default';
$title = $config['title'];
$style = $config['default_style'];
$page = $config['home'];
$template_data = join('', file('templates/' . $template));
$data = GetPage($page);
echo Subst($template_data, array('title' => $title . ' - ' . $data['title'], 'stylesheet' => 'styles/' . $style . '/style.css', 'content' => $data['content']));
?>
|