public static function userInit() { global $user, $config; MCRAuth::LoadSession(); if ($config['p_sync']) { self::start(); $id = self::userLoad(); if ($id) { $user = new User($id); if ($user->lvl() <= 0) { $user = false; } else { $user->login(randString(15), GetRealIp()); } } elseif (!empty($user)) { $user->logout(); $user = false; } } }
public static function userInit() { MCRAuth::LoadSession(); }