// Pre includes are ready. $preincludes_time = microtime(true); // And start the core! Core\Utilities\Logger\write_debug('Loading core system'); //require_once(ROOT_PDIR . 'core/libs/core/InstallTask.class.php'); require_once(ROOT_PDIR . 'core/libs/core/Core.class.php'); //Core::Singleton(); // Configuration handler, for loading any config variable/constant from XML data or the database. Core\Utilities\Logger\write_debug('Loading configs'); require_once(ROOT_PDIR . "core/libs/core/ConfigHandler.class.php"); ConfigHandler::Singleton(); \Core\Utilities\Profiler\Profiler::GetDefaultProfiler()->record('Configuration loaded and available'); // Give me core settings! // This will do the defines for the site, and provide any core variables to get started. $core_settings = ConfigHandler::LoadConfigFile("configuration"); if (!$core_settings) { if(EXEC_MODE == 'WEB'){ $newURL = 'install/'; //header('HTTP/1.1 302 Moved Temporarily'); //header("Location:" . $newURL); // This is not just redirected automatically because many browsers remember the redirect and just insist on redirecting from / to /install! // The notice about needing to refresh the page is again, because browsers may cache the install message. die("Please <a href=\"{$newURL}\">install Core Plus.</a><br/><br/>(You may need to hard-refresh this page a time or two if you just installed)");