public static function checkPass($data) { global $bd_names, $bd_users, $config; if ($config['p_logic'] != 'usual') { return MCMSAuth::checkPass($data); } if ($data['pass_db'] == md5($data['pass'])) { return true; } else { return false; } }
public function logout() { global $bd_users, $config; if ($config['p_logic'] != 'usual' and $config['p_sync']) { MCMSAuth::logout(); } if (!isset($_SESSION)) { session_start(); } if (isset($_SESSION)) { session_destroy(); } $this->tmp = 0; $sql = "UPDATE `{$this->db}` SET `{$bd_users['tmp']}`='0' " . "WHERE `{$bd_users['id']}`='" . $this->id . "'"; getDB()->ask($sql); if (isset($_COOKIE['PRTCookie1'])) { setcookie("PRTCookie1", "", time() - 3600); } }