rendered paste body<?php require('config.php');
session_start();
require("inc/db.inc.php");
require("inc/functions.inc.php");
$dbfunctions = new dbfunctions();
$generalfunctions = new generalfunctions();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<link rel="stylesheet" href="./style.css" type="text/css" />
<title><?php $dbfunctions->getname(); echo $name; ?> :: <?php echo $pagename; ?></title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
</head>
<body>
<div>
<a href="index.php"><img src="images/logo.png" alt=""/></a><br />
<div style="text-align: center"><b>Main Menu:</b> <a href="index.php">Home</a> - <a href="admin.php">Administration</a></div><br />
<?php
if (isset($_GET['page']) && file_exists('pages/' . $_GET['page'] . '.php'))
$page = $_GET['page'];
else
$page = $config['default_page'];
include('pages/' . $page . '.php');
?>
</div>
</body>
</html>