static function init() { self::$rootDir = str_replace('\\', '/', $_SERVER['DOCUMENT_ROOT']); $scriptDir = str_replace('\\', '/', $_SERVER['SCRIPT_FILENAME']); self::$scriptDir = substr($scriptDir, 0, strrpos($scriptDir, '/')); }