diff --git a/IsAliveCheck.php b/IsAliveCheck.php index 9a0a81a..4b4b3d8 100644 --- a/IsAliveCheck.php +++ b/IsAliveCheck.php @@ -5,6 +5,9 @@ Alphaland 2021 */ //vars + +use Alphaland\Web\WebContextManager; + $thumbalive = false; $gamealive = false; @@ -12,7 +15,7 @@ $gamealive = false; function checkThumb($override) { //thumbnailer check - if (httpGetPing($GLOBALS['thumbnailArbiter'], 5000)) //thumb arbiter online + if (WebContextManager::HttpGetPing($GLOBALS['thumbnailArbiter'], 5000)) //thumb arbiter online { if (!$GLOBALS['thumbalive'] or $override) //to prevent flooding mysql calls { @@ -35,7 +38,7 @@ function checkThumb($override) function checkGame($override) { //gameserver check - if (httpGetPing($GLOBALS['gamesArbiter'], 5000)) //gameserver arbiter online + if (WebContextManager::HttpGetPing($GLOBALS['gamesArbiter'], 5000)) //gameserver arbiter online { if (!$GLOBALS['gamealive'] or $override) //to prevent flooding mysql calls { diff --git a/globals/Dependencies/Moderation/UserModerationManager.php b/globals/Dependencies/Moderation/UserModerationManager.php index 0699067..890b1b2 100644 --- a/globals/Dependencies/Moderation/UserModerationManager.php +++ b/globals/Dependencies/Moderation/UserModerationManager.php @@ -2,6 +2,7 @@ namespace Alphaland\Moderation { + use Alphaland\Web\WebContextManager; use PDO; class UserModerationManager @@ -62,7 +63,7 @@ namespace Alphaland\Moderation { $discordid->execute(); if ($discordid->rowCount() > 0) { $discordid = $discordid->fetch(PDO::FETCH_OBJ)->discordid; - httpGetPing("http://localhost:4098/?type=ban&id=".$discordid."&reason=".urlencode($reason), 5000); + WebContextManager::HttpGetPing("http://localhost:4098/?type=ban&id=".$discordid."&reason=".urlencode($reason), 5000); } } return true; diff --git a/globals/functions.php b/globals/functions.php index 3278417..0d5373f 100644 --- a/globals/functions.php +++ b/globals/functions.php @@ -3506,7 +3506,7 @@ function submitRobloxAssetWorker($requestedassetid, $assettypeid, $assetname, $a //discord bot api if ($onsale) { - httpGetPing("localhost:4098/?type=itemrelease&assetid=".$newassetid."&name=".urlencode($assetname)."&description=".urlencode($assetdescription)."&price=".$price."&image=".$GLOBALS['renderCDN']."/".getAssetInfo($newassetid)->ThumbHash, 8000); + WebContextManager::HttpGetPing("localhost:4098/?type=itemrelease&assetid=".$newassetid."&name=".urlencode($assetname)."&description=".urlencode($assetdescription)."&price=".$price."&image=".$GLOBALS['renderCDN']."/".getAssetInfo($newassetid)->ThumbHash, 8000); } return true; diff --git a/html_admin/create-asset.php b/html_admin/create-asset.php index a9644e5..3d4db94 100644 --- a/html_admin/create-asset.php +++ b/html_admin/create-asset.php @@ -167,7 +167,7 @@ $alert = ''; $alert = "