sup niggz? anyways, i got this shitty coded avatarimage.php file :)
Coded in 20 mins, works for Rev, Uber, everything :)PHP Code:<?php
header("Content-Type: image/png");
?>
<?php
header("Content-Type: image/GIF");
?>
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$db = 'uber';
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($db);
$action = mysql_real_escape_string( strip_tags( $_GET["action"] ) );
$direction = mysql_real_escape_string( strip_tags( $_GET["direction"] ) );
$head_direction = mysql_real_escape_string( strip_tags( $_GET["head_direction"] ) );
$gesture = mysql_real_escape_string( strip_tags( $_GET["gesture"] ) );
$size = mysql_real_escape_string( strip_tags( $_GET["size"] ) );
$u = mysql_real_escape_string( strip_tags( $_GET["user"] ) );
$userq = mysql_query("SELECT * FROM users WHERE username = '$u' LIMIT 1");
$user = mysql_fetch_array($userq);
$looks = $user['look'];
$look = imagecreatefromgif("http://habbo.com/habbo-imaging/avatarimage?figure='.$looks.'&action=" . $action . "&direction=" . $direction . "&head_direction=" . $head_direction . "&gesture=" . $gesture . "&size=" . $size . "&img_format=gif");
ImageGif ($look);
// $result = mysql_query($query) or die('Query failed: ' . mysql_error()); //Okay
// if(mysql_num_rows($result)) { //thihi<3
// while($row = mysql_fetch_assoc($result)) { //resultat...
// echo "<img src=\"http://habbo.com/habbo-imaging/avatarimage?figure=".$row['look']."\" alt='".$row['username']."'>";
// }
// }
?>
Image:
Live Preview:
http://74.63.245.136/avatarimage.php...ser&action=wav
Users: hellokitty, someuser.
UPDATE: Now with action, gesture, and other stuff!
Not using <img src> function anymore, saving images!
Another, now saving in GIF.
Bye.



Reply With Quote


