From 0f6a6918c1111490d901b585f2e769a4ffb97c1f Mon Sep 17 00:00:00 2001 From: nolanwhy <69528856+nolanwhy@users.noreply.github.com> Date: Sat, 6 May 2023 12:08:59 +0200 Subject: [PATCH] k --- assets/renders/user/headshot.php | 56 +++++++++++++++++++++++++++++--- css/global.css | 54 +++++++++++++++++------------- 2 files changed, 83 insertions(+), 27 deletions(-) diff --git a/assets/renders/user/headshot.php b/assets/renders/user/headshot.php index 3dc9708..9453f99 100644 --- a/assets/renders/user/headshot.php +++ b/assets/renders/user/headshot.php @@ -1,5 +1,53 @@ \ No newline at end of file +// this file is entirely made by nolanwhy, no skid pls +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) { + global $RCCServiceSoap; + global $site; + // 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='.$id.'&placeId=0'; + $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["headshot"])) { + $new = renderUser($ruser["id"]); + $stmt = $con->prepare("UPDATE users SET headshot = :new WHERE id = :id"); + $stmt->bindParam(':id',$id,PDO::PARAM_INT); + $stmt->bindParam(':new',$new,PDO::PARAM_STR); + $stmt->execute(); + echo base64_decode($new); +} else { + echo base64_decode($ruser["headshot"]); +} diff --git a/css/global.css b/css/global.css index e4cd578..910a790 100644 --- a/css/global.css +++ b/css/global.css @@ -1,26 +1,34 @@ - /* da japan font, we wont use this but yes - @font-face { - font-family: newrodin; - src: url(../assets/font/NewRodin.otf); - } - * { - font-family: newrodin; - }*/ - - @font-face { - font-family: grufont; - src: url(../assets/font/GruFont.ttf); - } - .grufont { - font-family: grufont; - } - @font-face { - font-family: gotham; - src: url(../assets/font/GothamBlack.otf); - } - .gotham { - font-family: gotham; - } +/* da japan font, we wont use this but yes +@font-face { + font-family: newrodin; + src: url(../assets/font/NewRodin.otf); +} +* { +font-family: newrodin; +}*/ + +@font-face { + font-family: grufont; + src: url(../assets/font/GruFont.ttf); +} +.grufont { +font-family: grufont; +} +@font-face { + font-family: gotham; + src: url(../assets/font/GothamBlack.otf); +} +.gotham { +font-family: gotham; +} + +/* block shitty things omg */ +#wanteeedContainer, +#wanteeedTestMaker +{ + display:none; +} +/* end */ *:-moz-loading { pointer-events: none;