public static function __import__() { $path = str_replace("\\", "/", Rhaco::def("core.Lib@path", Rhaco::work("extlib"))); self::$PATH = $path . (substr($path, -1) == "/" ? "" : "/"); Rhaco::add(self::$PATH); if (strpos(get_include_path(), self::$PATH) === false) { set_include_path(get_include_path() . PATH_SEPARATOR . self::$PATH); } $server = Rhaco::def("core.Lib@server"); if (!empty($server)) { if (is_array($server)) { foreach ($server as $s) { self::add($s); } } else { self::add($server); } } }