From 8620e52a7ce8cfeae514140c975443297564cf18 Mon Sep 17 00:00:00 2001 From: Astrologies Date: Sun, 12 Dec 2021 04:18:28 -0500 Subject: [PATCH] webcontextmanager redirect dep --- html/Game/Tools/ThumbnailAsset.ashx | 14 ++++++++------ html_assetgame/Game/PlaceLauncher.ashx | 4 +++- html_assetgame/Game/Tools/InsertAsset.ashx | 4 +++- html_data/Data/AutoSave.ashx | 7 ++++++- 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/html/Game/Tools/ThumbnailAsset.ashx b/html/Game/Tools/ThumbnailAsset.ashx index 19e1212..72a9bec 100644 --- a/html/Game/Tools/ThumbnailAsset.ashx +++ b/html/Game/Tools/ThumbnailAsset.ashx @@ -1,5 +1,7 @@ rowCount() > 0) //asset exists on Alphaland //assuming its none of these asset types, redirect to ROBLOX if ($check->AssetTypeId == 4) //handle mesh asset, return default image for now (TODO: RENDER THESE) { - redirect("https://tcdn.alphaland.cc/" . $defaultidhash); + WebContextManager::Redirect("https://tcdn.alphaland.cc/" . $defaultidhash); } elseif ($check->AssetTypeId == 40) //handle MeshPart asset, return default image for now (TODO: RENDER THESE) { - redirect("https://tcdn.alphaland.cc/" . $defaultidhash); + WebContextManager::Redirect("https://tcdn.alphaland.cc/" . $defaultidhash); } elseif ($check->AssetTypeId == 10) //handle model asset, return default image for now (TODO: RENDER THESE) { @@ -59,17 +61,17 @@ if ($check->rowCount() > 0) //asset exists on Alphaland { $thumbhash = $check->ThumbHash; - redirect("https://trcdn.alphaland.cc/" . $thumbhash); + WebContextManager::Redirect("https://trcdn.alphaland.cc/" . $thumbhash); } - redirect("https://tcdn.alphaland.cc/" . $defaultidhash); + WebContextManager::Redirect("https://tcdn.alphaland.cc/" . $defaultidhash); } elseif ($check->AssetTypeId == 39) //handle SolidModel asset, return default image for now (TODO: RENDER THESE) { - redirect("https://tcdn.alphaland.cc/" . $defaultidhash); + WebContextManager::Redirect("https://tcdn.alphaland.cc/" . $defaultidhash); } } } else { - redirect(getRobloxAssetThumbnail($aid, $wd, $ht, $fmt)); + //WebContextManager::Redirect(getRobloxAssetThumbnail($aid, $wd, $ht, $fmt)); } \ No newline at end of file diff --git a/html_assetgame/Game/PlaceLauncher.ashx b/html_assetgame/Game/PlaceLauncher.ashx index 10a05bf..7d9b6be 100644 --- a/html_assetgame/Game/PlaceLauncher.ashx +++ b/html_assetgame/Game/PlaceLauncher.ashx @@ -1,8 +1,10 @@