summary refs log tree commit diff stats
path: root/index.php
blob: 373802005e6ac1f18c06dcc4a6da1bb3eaa06453 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

include('includes/db.php');
include('includes/functions.php');

ob_start();

$filename = 'pages/' . basename($_GET['area']) . '.php';
if (!file_exists($filename))
{
	$filename = 'pages/comic.php';
}

include($filename);

$doc = ob_get_contents();

ob_end_clean();

include('includes/header.php');
echo($doc);
include('includes/footer.php');

?>