} unset($REQUIRED_PHP_VERSION); // well this should be defined in PHP.ini.. fallback, if you are lazy. date_default_timezone_set('Europe/Berlin'); $paths = array(realpath(dirname(__DIR__) . '/framework'), realpath(dirname(__DIR__) . '/application'), realpath(dirname(__DIR__)), realpath(__DIR__), realpath(__DIR__ . '/unittests')); #var_dump($paths); // attach original include paths set_include_path(implode($paths, PATH_SEPARATOR) . PATH_SEPARATOR . get_include_path()); unset($paths); // needed if, run from CLI if (empty($_SERVER['SERVER_NAME'])) { $_SERVER['SERVER_NAME'] = gethostname(); } // acquire clansuite path constants include dirname(__DIR__) . '/application/bootstrap.php'; \Clansuite\CMS::define_ConstantsAndPaths(); \Clansuite\CMS::initialize_Loader(); \Koch\Localization\Utf8::initialize(); /** * Constants * * Constants must be defined, after initialize_paths(), * because of the automatic apc constants cache in * define_ConstantsAndPaths(). */ define('REWRITE_ENGINE_ON', 1); define('TESTSUBJECT_DIR', dirname(__DIR__) . DIRECTORY_SEPARATOR); // /../tests (trunk) /** * We might need some debug utils, * when we are not in CLI mode.