Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Content-type: image/png");
- if (empty($_GET['action'])) {
- $action2 = '';
- }
- else {
- $action2 = $_GET['action'];
- }
- if (empty($_GET['user'])) {
- $user2 = '';
- }
- else {
- $username = "root";
- $password = "";
- $db = "1112";
- $host = "localhost";
- $PDO = new PDO('mysql:host='.$host.';dbname='.$db, $username, $password);
- $phb = $PDO->prepare('SELECT look FROM users where username = :username');
- $phb->bindParam(':username', $_GET['user']);
- $phb->execute();
- $figure = $phb->fetch();
- $avatar2 = $figure['look'];
- }
- if (empty($_GET['gesture'])) {
- $gesture2 = '';
- }
- else {
- $gesture2 = $_GET['gesture'];
- }
- if (empty($_GET['size'])) {
- $size2 = '';
- }
- else {
- $size2 = $_GET['size'];
- }
- if (empty($_GET['direction'])) {
- $direction2 = '';
- }
- else {
- $direction2 = $_GET['direction'];
- }
- if (empty($_GET['head_direction'])) {
- $head_direction2 = '';
- }
- else {
- $head_direction2 = $_GET['head_direction'];
- }
- if (empty($_GET['headonly'])) {
- $headonly2 = '';
- }
- else {
- $headonly2 = $_GET['headonly'];
- }
- if (empty($_GET['img_format'])) {
- $img_format2 = '';
- }
- else {
- $img_format2 = $_GET['img_format'];
- }
- echo file_get_contents("http://avatar-retro.com/habbo-imaging/avatarimage?figure=$avatar2&action=$action2&gesture=$gesture2&size=$size2&direction=$direction2&head_direction=$head_direction2&headonly=$headonly2&img_format=$img_format2");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement