findRow("asset", ["AssetId" => $_GET['aid']], ["AssetId", "AssetTypeId"]); if ($find && $find->rowCount() > 0){ $find = $find->fetch(PDO::FETCH_OBJ); header('Content-Type: image/png'); $assetType = $find->AssetTypeId; if (file_exists($_SERVER['DOCUMENT_ROOT'].'/thumbnails/assets/'.$find->AssetId)) { if ($renderExclusions[$assetType]){ if ($imageRenders[$assetType]) { /*if (!file_exists($_SERVER['DOCUMENT_ROOT'].'/thumbnails/assets/'.$find->AssetId)) { file_put_contents($_SERVER['DOCUMENT_ROOT'].'/thumbnails/assets/'.$find->AssetId, file_get_contents('http://sitetest1.roblonium.com/Asset?id='.$find->AssetId)); //moves old content to a folder }*/ die(file_get_contents('http://sitetest1.roblonium.com/Asset?id='.$find->AssetId)); }elseif ($renderIcons[$assetType]) { die(file_get_contents($_SERVER["DOCUMENT_ROOT"] . $renderIcons[$assetType])); }else { die(file_get_contents($_SERVER["DOCUMENT_ROOT"] . '/Thumbs/unknown.png')); } } if (file_exists($_SERVER['DOCUMENT_ROOT'].'/thumbnails/assets/'.$find->AssetId)) { die(file_get_contents($_SERVER['DOCUMENT_ROOT'].'/thumbnails/assets/'.$find->AssetId)); }else { die(file_get_contents($_SERVER["DOCUMENT_ROOT"] . '/Thumbs/unknown.png')); } die(base64_decode($thumb)); }/*elseif ($renderExclusions[$assetType]){ if ($imageRenders[$assetType]) { if (!file_exists($_SERVER['DOCUMENT_ROOT'].'/thumbnails/assets/'.$find->AssetId)) { file_put_contents($_SERVER['DOCUMENT_ROOT'].'/thumbnails/assets/'.$find->AssetId, file_get_contents('http://sitetest1.roblonium.com/Asset?id='.$find->AssetId)); //moves old content to a folder } die(file_get_contents('http://sitetest1.roblonium.com/Asset?id='.$find->AssetId)); }else { die(file_get_contents($_SERVER["DOCUMENT_ROOT"] . '/Thumbs/unknown.png')); } }*/ elseif (isset($renderExclusions[$assetType]) /*or file_get_contents('http://'.$_SERVER['SERVER_NAME'].'/thumbnails/assets/'.$params[$i]['assetId']) == file_get_contents('http://'.$_SERVER['SERVER_NAME'].'/thumbs/invisible.png')*/){ //if the item shouldn't be rendered or didn't render properly, display its 2D counterpart if (isset($imageRenders[$assetType])) { die(file_get_contents('http://sitetest1.roblonium.com/Asset?id='.$find->AssetId)); }elseif (isset($renderIcons[$assetType])) { die(file_get_contents('http://sitetest1.roblonium.com/'.$renderIcons[$assetType])); }else { die(file_get_contents('http://sitetest1.roblonium.com/Thumbs/unknown.png')); } } } else { Redirect("http://roblox.com/Game/Tools/ThumbnailAsset.ashx?fmt=" . $_GET['fmt'] . "&wd=" . $_GET['wd'] . "&ht=" . $_GET['ht'] . "&aid=" . $_GET['aid']); } $result = renderAsset($find->AssetId, $assetType); if (!($result === FALSE)) { echo(file_get_contents($_SERVER["DOCUMENT_ROOT"] . '/Thumbs/ReviewPending.png')); }else { echo(file_get_contents($_SERVER["DOCUMENT_ROOT"] . '/Thumbs/defaultimage.png')); } /*ob_start(); ?> jobId 20 1 1 Script loadstring(game:HttpGetAsync("http://sitetest1.roblonium.com/game/assetrender.php"))() start("PNG", 420, 420, assetId)