Proximity
IDK?
- Feb 13, 2014
- 673
- 56
So I am trying to avatar cache for my radio it will grab the user name from the db and their look and show it
but I am getting that
here is the code
@Westyy maybe you can help me and yes I just removed the details
You must be registered for see links
but I am getting that
here is the code
Code:
<?php
if(isset($_GET['user'])) {
$host = "127.0.0.1";
$username = "root";
$password = "";
$dbname = "";
$connect = mysql_connect($host, $username, $password) or die(mysql_error());
mysql_select_db($dbname, $connect) or die("Could not connect to database, error: ".mysql_error());
$user = mysql_real_escape_string($_GET['user']);
$figure = "figure=".mysql_result(mysql_query("SELECT look FROM users WHERE username='".$user."' LIMIT 1"),0);
header('Content-Type: image/png');
exit(file_get_contents('http://habbo.com/habbo-imaging/avatarimage?'.$figure.http_build_query($_GET)));
}
else {
$url = 'http://habbo.com/habbo-imaging/avatarimage?figure='.http_build_query($_GET);
header('Content-Type: image/png');
exit(file_get_contents($url));
}
?>
@Westyy maybe you can help me and yes I just removed the details