require $VIEW . "location" . DIRECTORY_SEPARATOR . "File.php"; require $UTIL . "HashList.php"; require $UTIL . "VariableCache.php"; require $SABEL . "request" . DIRECTORY_SEPARATOR . "Object.php"; require $SABEL . "controller" . DIRECTORY_SEPARATOR . "Page.php"; require $SABEL . "exception" . DIRECTORY_SEPARATOR . "Runtime.php"; require $SABEL . "logger" . DIRECTORY_SEPARATOR . "Interface.php"; } public static function init() { $path = "sabel" . DIRECTORY_SEPARATOR . "Sabel"; $cache = Sabel_Util_VariableCache::create($path); if ($files = $cache->read("readableFiles")) { self::$readableFiles = $files; self::$readableFilesNum = count($files); } } public static function shutdown() { if (self::$readableFilesNum !== count(self::$readableFiles)) { $path = "sabel" . DIRECTORY_SEPARATOR . "Sabel"; $cache = Sabel_Util_VariableCache::create($path); $cache->write("readableFiles", self::$readableFiles); $cache->save(); } } } /* register autoload method */ spl_autoload_register(array("Sabel", "autoload")); Sabel::main();