Esempio n. 1
0
// set up the templating system
$page = new PageBuilder();
register_shutdown_function(array($page, 'outputAll'));
// and now let's have some content!
ob_start('parsebbcode');
$page->addBodyClass('page-' . preg_replace('/[^a-zA-Z0-9\\s]/', '', $pid));
switch ($_GET['p']) {
    case 'logout':
        include $location['admin2'] . '/logout.php';
        break;
    case 'media':
        include $location['root'] . '/media.php';
        break;
    default:
        if ($j == 0) {
            $page->setTitle($txt['text_error']);
            echo $txt['noexist'];
        } else {
            $page->setTitle($curpgtitle);
            echo $pagecontent;
        }
        break;
}
ob_end_flush();
// we has a footer
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
$footer['copyright'] = '
	<!--
	powered by mintypublish - a project by a2h - http://a2h.uni.cc/
	page generated in ' . sprintf('%.3f', $totaltime) . ' seconds