diff --git a/Horse Isle Server/HorseIsleServer/Server/GameServer.cs b/Horse Isle Server/HorseIsleServer/Server/GameServer.cs index 8bf17e5..998fda2 100755 --- a/Horse Isle Server/HorseIsleServer/Server/GameServer.cs +++ b/Horse Isle Server/HorseIsleServer/Server/GameServer.cs @@ -7115,7 +7115,7 @@ namespace HISP.Server } else { - Logger.WarnPrint(sender.RemoteIp + " Attempted to login to: " + username + " with incorrect password " + password); + Logger.WarnPrint(sender.RemoteIp + " Attempted to login to: " + username + " with incorrect password "); byte[] ResponsePacket = PacketBuilder.CreateLoginPacket(false); sender.SendPacket(ResponsePacket); } diff --git a/WebInterface/game-site/account.php b/WebInterface/game-site/account.php index 0fb79d7..8ef3148 100755 --- a/WebInterface/game-site/account.php +++ b/WebInterface/game-site/account.php @@ -1,106 +1,73 @@ - -HORSE ISLE - Online Multiplayer Horse Game - - - - - - - - - - - - - - - - -
Welcome to Horse Isle 
- +if(isset($_GET["SLID"], $_GET["C"])) +{ + $id = $_GET['SLID']; + $code = $_GET['C']; + + $hmac = GenHmacMessage((string)$playerId, "CrossSiteLogin"); + $hmacSent = base64_decode(bin2hex($hmac)); + if(hash_equals($hmacSent,$hmac)) + { + $_SESSION['LOGGED_IN'] = "YES"; + $_SESSION['PLAYER_ID'] = $id; + $_SESSION['USERNAME'] = get_username($id); + $_SESSION['SEX'] = get_sex($id); + $_SESSION['ADMIN'] = get_admin($id); + $_SESSION['MOD'] = get_mod($id); + $_SESSION['PASSWORD_HASH'] = get_password_hash($id); + $_SESSION['SALT'] = get_salt($id); + } + else + { + $login_error = "Error in Automatic Login Authentication!"; + } +} +if(!is_logged_in()) +{ + include("web/header.php"); + echo(" + Username or Password is not valid or your account has timed out. Please Log in again.

"); + $_SESSION['LOGGED_IN'] = "NO"; + include("web/footer.php"); + exit(); +} -
PINTO.HORSEISLE.COM
Logged in as: SilicaAndPina





- - - - -  - - -
+include("web/header.php"); +?> @@ -363,26 +330,5 @@ Select: