This is a small and easy script that you can use in news forums anywhere :}
To use go to
file.php?user=User
Please dont flame its only a small and easy code.
Stand.png file:
SNIE:
PHP:
<?php
header("Content-Type: image/PNG");
?>
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'Password';
$db = 'Database';
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($db);
$u = $_GET["user"];
$userq = mysql_query("SELECT * FROM users WHERE username = '$u' LIMIT 1");
$user = mysql_fetch_array($userq);
$image = ImageCreateFromPNG("stand.png");
$looks = $user['look'];
$look =
ImageCreateFromPNG("http://www.habbo.com/habbo-imaging/avatarimage?figure='.$looks.''&action=wav&direction=2&head_direction=3
&gesture=sml&size=l&img_format=png");
imagecopy($image, $look, 9, 10, 6, 13, 49, 94);
ImagePng ($image);
imagedestroy($image);
?>
file.php?user=User
Please dont flame its only a small and easy code.
Stand.png file:
You must be registered for see links
SNIE: