Update fullbody.php

This commit is contained in:
nolanwhy 2023-05-05 23:05:04 +02:00 committed by GitHub
parent a0700e30b7
commit 82f8beb19b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 51 additions and 1 deletions

View File

@ -1 +1,51 @@
<?php header('location: https://media.discordapp.net/attachments/1055208765747630100/1071380932608663603/QQAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACgQSAMAKBBIAwAoEEgDACv8B6tN7PkQ0NjkAAAAASUVORK5CYII.png'); ?>
<?php
require_once 'core/classes.php';
require_once 'core/config.php';
$id = (int)$_GET["userId"] ?? 0;
$stmt = $con->prepare("SELECT * FROM users WHERE id = :id");
$stmt->bindParam(':id',$id,PDO::PARAM_INT);
$stmt->execute();
$ruser = $stmt->fetch();
if(!$ruser) {
exit;
}
function renderUser($id, $times = 1) {
// times is the like, if you rendered 2 times or shit.
$newtime = (int)$times + 1; // if rendered again, to retry.
$id = (int)$id;
$charapp = $site["url"].'/v1.1/avatar-fetch?userId='.$userId.'&placeId=0';
global $RCCServiceSoap;
$script = 'game:GetService("ContentProvider"):SetBaseUrl("'.$site["url"].'/")
game:GetService("ScriptContext").ScriptsDisabled = true
local plr = game.Players:CreateLocalPlayer(0)
plr.CharacterAppearance = "'.$charapp.'"
plr:LoadCharacter(false)
for i,v in pairs(plr.Character:GetChildren()) do
print(v)
if v:IsA("Tool") then
plr.Character.Torso["Right Shoulder"].CurrentAngle = math.pi / 2
end
end
local result = game:GetService("ThumbnailGenerator"):Click("PNG", 420, 420, true)
return result';
$joby = new Roblox\Grid\Rcc\Job("RENDER".rand(1,getrandmax()), 15);
$scripty = new Roblox\Grid\Rcc\ScriptExecution("Script", $script);
$result = $RCCServiceSoap->BatchJob($joby, $scripty);
if(empty($result)) {
if($times <= 1) {
return renderUser($id, $newtime);
}
}
}
if(empty($ruser["thumbnail"])) {
$new = renderUser($ruser["id"]);
$stmt = $con->prepare("UPDATE users SET thumbnail = :new WHERE id = :id");
$stmt->bindParam(':id',$id,PDO::PARAM_INT);
$stmt->bindParam(':new',$new,PDO::PARAM_STR);
$stmt->execute();
echo $new;
} else {
echo base64_decode($ruser["thumbnail"]);
}