Advertisement
Guest User

Untitled

a guest
Dec 26th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <?php
  2. header("Content-type: image/png");
  3. if (empty($_GET['action'])) {
  4. $action2 = '';
  5. }
  6. else {
  7. $action2 = $_GET['action'];
  8. }
  9. if (empty($_GET['user'])) {
  10. $user2 = '';
  11. }
  12. else {
  13. $username = "root";
  14. $password = "";
  15. $db = "1112";
  16. $host = "localhost";
  17. $PDO = new PDO('mysql:host='.$host.';dbname='.$db, $username, $password);
  18. $phb = $PDO->prepare('SELECT look FROM users where username = :username');
  19. $phb->bindParam(':username', $_GET['user']);
  20. $phb->execute();
  21. $figure = $phb->fetch();
  22. $avatar2 = $figure['look'];
  23. }
  24. if (empty($_GET['gesture'])) {
  25. $gesture2 = '';
  26. }
  27. else {
  28. $gesture2 = $_GET['gesture'];
  29. }
  30. if (empty($_GET['size'])) {
  31. $size2 = '';
  32. }
  33. else {
  34. $size2 = $_GET['size'];
  35. }
  36. if (empty($_GET['direction'])) {
  37. $direction2 = '';
  38. }
  39. else {
  40. $direction2 = $_GET['direction'];
  41. }
  42. if (empty($_GET['head_direction'])) {
  43. $head_direction2 = '';
  44. }
  45. else {
  46. $head_direction2 = $_GET['head_direction'];
  47. }
  48. if (empty($_GET['headonly'])) {
  49. $headonly2 = '';
  50. }
  51. else {
  52. $headonly2 = $_GET['headonly'];
  53. }
  54. if (empty($_GET['img_format'])) {
  55. $img_format2 = '';
  56. }
  57. else {
  58. $img_format2 = $_GET['img_format'];
  59. }
  60. 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");
  61. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement