<?php
define('BASE_DIR', $_SERVER['DOCUMENT_ROOT']);
define('TIME', time());
require_once(BASE_DIR.'/inc/init.php');
ob_start();
if (file_exists(BASE_DIR.'/page/'.$obEngine->page))
{
require(BASE_DIR.'/page/'.$obEngine->page);
}
else
{
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found', true);
require(BASE_DIR.'/page/404.php');
}
$content = ob_get_clean();
include(BASE_DIR.'/template.php');