EOD; exit; } $files = array_merge(glob("core/*.php"), glob("core/*/*.php"), glob("ext/*/main.php")); foreach($files as $filename) { require_once $filename; } $database = new Database(); $database->db->fnExecute = '_count_execs'; $config = new Config($database); $_theme = $config->get_string("theme", "default"); require_once "themes/$_theme/page.class.php"; require_once "themes/$_theme/layout.class.php"; require_once "themes/$_theme/themelet.class.php"; $themelets = array_merge(glob("ext/*/theme.php"), glob("themes/$_theme/*.theme.php")); foreach($themelets as $filename) { require_once $filename; } $page = new Page(); $user = _get_user(); send_event(new InitExtEvent()); send_event(_get_page_request($page, $user)); $page->display(); ?>