diff --git a/api/isBanned.php b/api/isBanned.php index 2b16eda..5a99753 100644 --- a/api/isBanned.php +++ b/api/isBanned.php @@ -10,7 +10,7 @@ $db = new Database; $clientIp = getClientIp(); -$hashedIp = $db->escapeStrings(hash("sha256", $clientIp . HASH_SECRET)); +$hashedIp = $db->escapeStrings(hash("sha256", $clientIp /*. HASH_SECRET*/)); $bannRecords = $db->select("SELECT * FROM gargameleaks_bann WHERE IP = '$hashedIp'"); diff --git a/api/newComment.php b/api/newComment.php index 1d79d04..74695b4 100644 --- a/api/newComment.php +++ b/api/newComment.php @@ -15,7 +15,7 @@ $smurfsId = $db->escapeStrings($_POST['smurfsId']); $clientIp = getClientIp(); -$hashedIp = $db->escapeStrings(hash("sha256", $clientIp . HASH_SECRET)); +$hashedIp = $db->escapeStrings(hash("sha256", $clientIp /*. HASH_SECRET*/)); $bannRecords = $db->select("SELECT * FROM gargameleaks_bann WHERE IP = '$hashedIp'"); diff --git a/api/newRating.php b/api/newRating.php index a4d1f48..3bd3b3c 100644 --- a/api/newRating.php +++ b/api/newRating.php @@ -1,7 +1,7 @@ escapeStrings($_POST["smurfsId"]); $clientIp = getClientIp(); -$hashedIp = $db->escapeStrings(hash("sha256", $clientIp . HASH_SECRET)); +$hashedIp = $db->escapeStrings(hash("sha256", $clientIp /*. HASH_SECRET*/)); if ( $intelligenceRating > 10 || $intelligenceRating <= 0 ||