='2005081000')) { // this is an install $module="install"; } elseif ( (isset($_REQUEST["module"]) && $_REQUEST["module"]=="upgrade") || $PHORUM['internal_version'] < PHORUM_SCHEMA_VERSION || !isset($PHORUM['internal_patchlevel']) || $PHORUM['internal_patchlevel'] < PHORUM_SCHEMA_PATCHLEVEL ) { // this is an upgrade $module="upgrade"; } else { // Try to restore an admin session. phorum_api_user_session_restore(PHORUM_ADMIN_SESSION); if(!isset($GLOBALS["PHORUM"]["user"]) || !$GLOBALS["PHORUM"]["user"]["admin"]){ // if not an admin unset($GLOBALS["PHORUM"]["user"]); $module="login"; } else { // load the default module if none is specified if(!empty($_REQUEST["module"]) && is_string($_REQUEST["module"])){ $module = @basename($_REQUEST["module"]); } else { $module = "default"; } } } $module = phorum_hook( "admin_pre", $module ); ob_start(); if($module!="help") include_once "./include/admin/header.php"; include_once "./include/admin/$module.php"; if($module!="help") include_once "./include/admin/footer.php"; ob_end_flush(); ?>