2015-03-08 18:02:59 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
|
|
|
|
// Boot rules
|
|
|
|
include(PATH_RULES.'70.build_posts.php');
|
|
|
|
include(PATH_RULES.'70.build_pages.php');
|
|
|
|
include(PATH_RULES.'80.plugins.php');
|
2015-03-27 02:00:01 +01:00
|
|
|
include(PATH_RULES.'99.header.php');
|
2015-05-05 03:00:01 +02:00
|
|
|
|
|
|
|
if($Url->notFound())
|
|
|
|
{
|
|
|
|
$Url->setWhereAmI('page');
|
|
|
|
$Page = new Page('error');
|
|
|
|
}
|
|
|
|
|
|
|
|
// Theme init.php
|
|
|
|
if( Sanitize::pathFile(PATH_THEMES, $Site->theme().'/init.php') )
|
|
|
|
include(PATH_THEMES.$Site->theme().'/init.php');
|
|
|
|
|
|
|
|
// Theme HTML
|
|
|
|
if( Sanitize::pathFile(PATH_THEMES, $Site->theme().'/index.php') )
|
|
|
|
include(PATH_THEMES.$Site->theme().'/index.php');
|