Meap
Don't need glasses if you C#
pls doThat is just plain stupid. If you got a 100 user base, that will be a 100 curls within few seconds, instead of caching it / save the image in a folder, so you don't have to overkill the curl totally, and then automatically next time if the user has changed figure, you just delete the old one from the images folder.
If you're interested I can code this to 100% functionality once I get to work.
Avatar Retros is stupid it sometimes require authentication because of CF services.
Sent from my SM-G928F using Tapatalk
also fyi that doesn't work eitherThis will work:
PHP:<?php if(!isset($_GET["fig"]) || empty($_GET["fig"])) { echo "No fig request"; exit; } $fig = $_GET['fig']; $fig .= str_replace("_", ".", $fig); $ch = curl_init("http://www.habbo.com/habbo-imaging/avatarimage?figure=$fig&action=wlk&direction=2&head_direction=3&gesture=sml&size=l"); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", CURLOPT_AUTOREFERER => true, CURLOPT_SSL_VERIFYPEER => false )); $content = curl_exec($ch); $type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE); curl_close($ch); if(!isset($content) || empty($content) || strpos($content, 'Not Found') !== false) { echo "Not found!"; exit; } header("Content-Type: {$type}"); echo $content; ?>