* @package astat core * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id: index.php 100 2010-02-20 14:42:30Z genuineparts $ */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ERROR); $basepath=""; //require 'xhprof/external/header.php'; require_once 'core/init_core.inc.php'; $content = ""; $body = ""; $meta = ""; /** * PLUGIN HOOK index_start * */ $plugin->run_hook("index_start"); /** * If the Page is in Maintenance Mode we have to fetch the Userdata ourself. * */ if($config["maintenance"]==1){ $session->page_begin("Maintenance", FALSE); } /** * If the User is a Admin continue even if the Page is in Maintenance Mode * Else show a Maintenance Page * */ if($config["maintenance"]==1 && $session->userdata["is_admin"]!=1){ $core->message($lang->_('MAINTENANCE'),$lang->_('SITEINMAINTENANCE').':
'.$config["maintenance_message"],FALSE,"","",TRUE); }else{ if(isset($_GET["task"])){ $core->get_module($_GET["task"],$_GET["sub"]); }else{ $core->get_module($config["startmodule"],$config["startmodulesub"]); } } /** * PLUGIN HOOK index_end * */ $plugin->run_hook("index_end"); ?>