From f4a3e6ef53b58b1b27a813e850897faa10849e62 Mon Sep 17 00:00:00 2001 From: Astrologies Date: Wed, 1 Dec 2021 04:30:06 -0500 Subject: [PATCH] webcontextmanager implementation 401 --- html/Game/AdminScript.php | 2 +- html/Game/ClientPresence.php | 4 ++-- html/Game/Join.ashx | 2 +- html/Game/KillServer.php | 2 +- html/Game/PlaceLauncher.ashx | 2 +- html/Game/RegisterServer.php | 2 +- html/Game/ServerPing.php | 2 +- html_api/RoleSets/PrivilegedSetUserRoleSetRank.php | 2 +- html_api/moderation/AbuseReport/InGameChatHandler.php | 2 +- html_api/user/avatar/updatesettings.php | 2 +- html_assetgame/Game/Badge/AwardBadge.php | 2 +- html_assetgame/Game/Badge/HasBadge.php | 2 +- html_assetgame/Game/Badge/IsBadgeDisabled.php | 2 +- html_assetgame/Game/BreakFriend.php | 2 +- html_assetgame/Game/CreateFriend.php | 2 +- html_gamepersistence/Persistence/set.php | 2 +- html_versioncompatibility/GetAllowedMD5Hashes.php | 2 +- html_versioncompatibility/GetAllowedSecurityKeys.php | 2 +- 18 files changed, 19 insertions(+), 19 deletions(-) diff --git a/html/Game/AdminScript.php b/html/Game/AdminScript.php index 3eb2a86..a8a2362 100644 --- a/html/Game/AdminScript.php +++ b/html/Game/AdminScript.php @@ -6,7 +6,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } /* diff --git a/html/Game/ClientPresence.php b/html/Game/ClientPresence.php index ff92f4e..9f1d035 100644 --- a/html/Game/ClientPresence.php +++ b/html/Game/ClientPresence.php @@ -6,7 +6,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $action = (string)$_GET['action']; @@ -17,7 +17,7 @@ $isteleport = (bool)$_GET['IsTeleport']; function BadRequest() { - die(http_response_code(400)); + die(http_response_code(401)); } if (!$action || !$userid || !$placeid) diff --git a/html/Game/Join.ashx b/html/Game/Join.ashx index 547b775..4c2fd1e 100644 --- a/html/Game/Join.ashx +++ b/html/Game/Join.ashx @@ -95,4 +95,4 @@ if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent res } } } -die(http_response_code(400)); \ No newline at end of file +die(http_response_code(401)); \ No newline at end of file diff --git a/html/Game/KillServer.php b/html/Game/KillServer.php index 49a6b39..01df59c 100644 --- a/html/Game/KillServer.php +++ b/html/Game/KillServer.php @@ -3,7 +3,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $jobID = (string)$_GET['jobid']; diff --git a/html/Game/PlaceLauncher.ashx b/html/Game/PlaceLauncher.ashx index 33222d4..bbaab10 100644 --- a/html/Game/PlaceLauncher.ashx +++ b/html/Game/PlaceLauncher.ashx @@ -42,7 +42,7 @@ function constructJson($jobid, $status, $joinscripturl, $authenticationurl, $aut if(!$requesttype || !$placeid || ($_SERVER['HTTP_USER_AGENT'] != $GLOBALS['clientUserAgent'])) { - die(http_response_code(400)); + die(http_response_code(401)); } function genToken($jobid) { diff --git a/html/Game/RegisterServer.php b/html/Game/RegisterServer.php index ba2a52e..fa5f798 100644 --- a/html/Game/RegisterServer.php +++ b/html/Game/RegisterServer.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $jobid = (string)$_GET['jobId']; diff --git a/html/Game/ServerPing.php b/html/Game/ServerPing.php index 73afcf7..a974cb2 100644 --- a/html/Game/ServerPing.php +++ b/html/Game/ServerPing.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $placeid = (int)$_GET['PlaceID']; diff --git a/html_api/RoleSets/PrivilegedSetUserRoleSetRank.php b/html_api/RoleSets/PrivilegedSetUserRoleSetRank.php index 803a8c8..4ac14d9 100644 --- a/html_api/RoleSets/PrivilegedSetUserRoleSetRank.php +++ b/html_api/RoleSets/PrivilegedSetUserRoleSetRank.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } /* diff --git a/html_api/moderation/AbuseReport/InGameChatHandler.php b/html_api/moderation/AbuseReport/InGameChatHandler.php index cd72277..6258493 100644 --- a/html_api/moderation/AbuseReport/InGameChatHandler.php +++ b/html_api/moderation/AbuseReport/InGameChatHandler.php @@ -9,7 +9,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $xml = file_get_contents('php://input'); diff --git a/html_api/user/avatar/updatesettings.php b/html_api/user/avatar/updatesettings.php index 234e2db..b35e00f 100644 --- a/html_api/user/avatar/updatesettings.php +++ b/html_api/user/avatar/updatesettings.php @@ -15,7 +15,7 @@ $angleLeft = (bool)$_GET['angleLeft']; if ($angleRight && $angleLeft) { - die(http_response_code(400)); + die(http_response_code(401)); } else { diff --git a/html_assetgame/Game/Badge/AwardBadge.php b/html_assetgame/Game/Badge/AwardBadge.php index aa2ba39..1fd8899 100644 --- a/html_assetgame/Game/Badge/AwardBadge.php +++ b/html_assetgame/Game/Badge/AwardBadge.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $userid = $_GET['UserID']; diff --git a/html_assetgame/Game/Badge/HasBadge.php b/html_assetgame/Game/Badge/HasBadge.php index 2a55325..9884abc 100644 --- a/html_assetgame/Game/Badge/HasBadge.php +++ b/html_assetgame/Game/Badge/HasBadge.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $userid = $_GET['UserID']; diff --git a/html_assetgame/Game/Badge/IsBadgeDisabled.php b/html_assetgame/Game/Badge/IsBadgeDisabled.php index b1b44f6..4f155b8 100644 --- a/html_assetgame/Game/Badge/IsBadgeDisabled.php +++ b/html_assetgame/Game/Badge/IsBadgeDisabled.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $badgeid = $_GET['BadgeID']; diff --git a/html_assetgame/Game/BreakFriend.php b/html_assetgame/Game/BreakFriend.php index e8897c2..8d58e1a 100644 --- a/html_assetgame/Game/BreakFriend.php +++ b/html_assetgame/Game/BreakFriend.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $firstuser = $_GET['firstUserId']; diff --git a/html_assetgame/Game/CreateFriend.php b/html_assetgame/Game/CreateFriend.php index a295634..b79a2cc 100644 --- a/html_assetgame/Game/CreateFriend.php +++ b/html_assetgame/Game/CreateFriend.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } $firstuser = $_GET['firstUserId']; diff --git a/html_gamepersistence/Persistence/set.php b/html_gamepersistence/Persistence/set.php index 5b4d009..850a857 100644 --- a/html_gamepersistence/Persistence/set.php +++ b/html_gamepersistence/Persistence/set.php @@ -5,7 +5,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } if(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) diff --git a/html_versioncompatibility/GetAllowedMD5Hashes.php b/html_versioncompatibility/GetAllowedMD5Hashes.php index 3f90673..25be55b 100644 --- a/html_versioncompatibility/GetAllowedMD5Hashes.php +++ b/html_versioncompatibility/GetAllowedMD5Hashes.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } header('Content-Type: application/json'); diff --git a/html_versioncompatibility/GetAllowedSecurityKeys.php b/html_versioncompatibility/GetAllowedSecurityKeys.php index 4d3ca6a..4d72faa 100644 --- a/html_versioncompatibility/GetAllowedSecurityKeys.php +++ b/html_versioncompatibility/GetAllowedSecurityKeys.php @@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager; if (!WebContextManager::VerifyAccessKeyHeader()) { - die(http_response_code(400)); + die(http_response_code(401)); } header('Content-Type: application/json');