From 646aea736ec9cc274be9b2973f5220d303374cc0 Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 13 Nov 2021 05:47:52 -0500 Subject: [PATCH] cleanup --- globals/functions.php | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/globals/functions.php b/globals/functions.php index a2dadda..61d3978 100644 --- a/globals/functions.php +++ b/globals/functions.php @@ -1458,7 +1458,7 @@ function updateGeneralConfig($groupid, $description, $approval, $base64emblem) / $autoincrement = $b->rowCount() + 1; //initial auto increment value //add texture to assets - $assetname = $name . " Emblem"; + $assetname = getGroupName($groupid) . " Emblem"; $x = $GLOBALS['pdo']->prepare("INSERT INTO `assets`(`id`, `AssetTypeId`, `Name`, `Description`, `Created`, `Updated`, `CreatorId`, `TargetId`, `PriceInAlphabux`, `Sales`, `IsNew`, `IsForSale`, `IsPublicDomain`, `IsLimited`, `IsLimitedUnique`, `IsApproved`, `Remaining`, `MinimumMembershipLevel`, `ContentRatingTypeId`, `Favorited`, `Visited`, `MaxPlayers`, `UpVotes`, `DownVotes`, `Hash`) VALUES (:aid,22,:aname,'Group Emblem',UNIX_TIMESTAMP(),UNIX_TIMESTAMP(),:oid,:aid2,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,:hash)"); $x->bindParam(":aid", $autoincrement, PDO::PARAM_INT); $x->bindParam(":aname", $assetname, PDO::PARAM_STR); @@ -3645,28 +3645,6 @@ function setAssetApproved($id) $approve->execute(); } -function alphalandAssetGetTexture($assetid) -{ - $assetinfo = getAssetInfo($id); - $assetData = file_get_contents($assetscdn . $assetinfo->Hash); - - $validXML = true; - try - { - $ParsedXML = new SimpleXMLElement($assetData); - } - catch (Exception $e) - { - $validXML = false; - } - - if ($validXML) - { - - } - -} - function approveAsset($id) //currently supports t-shirts, shirts and pants { //the logic behind this is it uses the asset id of the item, then + 1 to get to the texture. We need a way to be sure the texture is always next, or a new way to detect a situation where the texture isn't next (a queue system for uploading assets?)