public static function Req($LibName, $Arguments = '') { if (!is_array(self::$IncludedLibs)) { self::$IncludedLibs = array(); } if (in_array($LibName, self::$IncludedLibs)) { return; } if (file_exists("lib/{$LibName}.php")) { include "lib/{$LibName}.php"; self::$IncludedLibs[] = $LibName; if (is_string($Arguments)) { $Arguments = array($Arguments); } $GLOBALS[$LibName] = new $LibName($Arguments); return true; } else { return false; } }