} if (isset($config['phpErrorReporting']['errorLogFile'])) { if ($config['phpErrorReporting']['errorLogFile'] != '') { ini_set('error_log', $config['phpErrorReporting']['errorLogFile']); } } // Load and initialize the AutoLoader class require_once APPLICATION_ROOT . 'system/core/library/AutoLoader.php'; AutoLoader::init(); // Start the InvokeConfig mechanism InvokeConfig::init(); // Set the timezone if (function_exists("date_default_timezone_set")) { if (isset($config['timezone'])) { date_default_timezone_set($config['timezone']); } else { date_default_timezone_set('Europe/Berlin'); } } // Set up the FileUtils-library if (isset($config['fileUtils'])) { FileUtils::setChmodSettings($config['fileUtils']['useChmod'], $config['fileUtils']['directoryMode'], $config['fileUtils']['fileMode']); } // delete the global variable $config unset($config); // Inspect the request URI to determine if the front- or the backend was requested if (Request::isFrontend()) { require_once APPLICATION_ROOT . 'system/core/frontend/index.php'; } else { require_once APPLICATION_ROOT . 'system/core/backend/index.php'; }
public static function load() { if (Request::isFrontend()) { self::loadFrontend(); } else { self::loadBackend(); } }
protected function setCachedProperties($id, $properties) { if (Request::isFrontend()) { self::$properties_cache[$id] = $properties; return true; } else { return false; } }