/** * Just get the auth file and load it in the $auth variable * * @return boolean success or not */ public static function reload() { $content = preg_replace('/^.+\\n/', '', self::read()); $array = json_decode($content, true); if (is_null($array)) { return false; } self::$auth = $array; return true; }