43 lines
998 B
PHP
43 lines
998 B
PHP
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
// // Start session if the cookie is defined
|
|
// if (Cookie::get('BLUDIT-KEY')) {
|
|
// if (!Session::started()) {
|
|
// Session::start();
|
|
// }
|
|
// }
|
|
|
|
// Load plugins rules
|
|
include(PATH_RULES.'60.plugins.php');
|
|
|
|
// Plugins before all
|
|
Theme::plugins('beforeAll');
|
|
|
|
// Load rules
|
|
include(PATH_RULES.'69.pages.php');
|
|
include(PATH_RULES.'99.header.php');
|
|
include(PATH_RULES.'99.paginator.php');
|
|
include(PATH_RULES.'99.themes.php');
|
|
|
|
// Plugins before site loaded
|
|
Theme::plugins('beforeSiteLoad');
|
|
|
|
// Theme init.php
|
|
if (Sanitize::pathFile(PATH_THEMES, $site->theme().DS.'init.php')) {
|
|
include(PATH_THEMES.$site->theme().DS.'init.php');
|
|
}
|
|
|
|
// Theme HTML
|
|
if (Sanitize::pathFile(PATH_THEMES, $site->theme().DS.'index.php')) {
|
|
include(PATH_THEMES.$site->theme().DS.'index.php');
|
|
} else {
|
|
$Language->p('Please check your theme configuration');
|
|
}
|
|
|
|
// Plugins after site loaded
|
|
Theme::plugins('afterSiteLoad');
|
|
|
|
// Plugins after all
|
|
Theme::plugins('afterAll');
|
|
|