is_admin == 0 || $user->is_acting_admin == 0) { $template = new standalonetemplate('_maintenance'); $template->output(); exit(); } else { echo '
The site is currently in maintenance mode.
'; } } // Initialize the theme subsystem if (!defined('SYS_THEME')) require_once(BASE.'subsystems/theme.php'); if (!DEVELOPMENT && @file_exists(BASE.'install/not_configured')) { header('Location: install/index.php?page=setlang'); exit('Redirecting to the Exponent Install Wizard'); } // Setting $page to an empty value, we do not want to get out // side params to be used when handling subsystems fail. $page = ''; // Handle sub themes $page = ($section && $section->subtheme != '' && is_readable(BASE.'themes/'.DISPLAY_THEME.'/subthemes/'.$section->subtheme.'.php') ? BASE.'themes/'.DISPLAY_THEME.'/subthemes/'.$section->subtheme.'.php' : BASE.'themes/'.DISPLAY_THEME.'/index.php' ); $base_i18n = exponent_lang_loadFile('index.php'); if (is_readable($page)) { include_once($page); } else { echo sprintf($base_i18n['not_readable'],$page); } $microtime_str = explode(' ',microtime()); $i_end = $microtime_str[0] + $microtime_str[1]; echo "\r\n'; while (ob_get_level() > 0) { ob_end_flush(); } ?>