This commit is contained in:
Austin 2021-11-13 05:47:52 -05:00
parent c13fa32eef
commit 646aea736e
1 changed files with 1 additions and 23 deletions

View File

@ -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?)