Advertisement
Guest User

Untitled

a guest
Jan 17th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <?php
  2. header("Content-Type: image/png");
  3. ?>
  4. <?php
  5. header("Content-Type: image/GIF");
  6. ?>
  7. <?php
  8. $dbhost = 'localhost';
  9. $dbuser = 'root';
  10. $dbpass = 'Grak5498';
  11. $db = 'Engelska';
  12.  
  13. mysql_connect($dbhost,$dbuser,$dbpass);
  14. mysql_select_db($db);
  15. $u = mysql_real_escape_string( strip_tags( $_GET["user"] ) );
  16. $userq = mysql_query("SELECT * FROM users WHERE username = '$u' LIMIT 1");
  17. $user = mysql_fetch_array($userq);
  18. $looks = $user['look'];
  19.  
  20. $habbo = imagecreatefromgif("http://habbo.fr/habbo-imaging/avatarimage?figure=$looks&headonly=1&img_format=gif&direction=2&head_direction=2&gesture=sml");
  21.  
  22. $area = imagecreatefromgif("http://Pixelwave.nu/avatarimage/images/areas/polar-area.gif");
  23.  
  24. $superman = imagecreatefromgif("http://Pixelwave.nu/avatarimage/images/accessories/superman.gif");
  25.  
  26. $white = imagecolorallocate($area, 255, 255, 255);
  27.  
  28. $purple = imagecolorallocate($area, 200, 255, 200);
  29.  
  30. imagefilledrectangle($area, 0, 0, 355, 355, $purple);
  31. imagecopy($area, $habbo, 35, 9, 3, 7, 118, 113); //head
  32. imagecopy($area, $superman, 0, 0, 0, 7, 118, 113);
  33.  
  34. imagecolortransparent($area, $purple);
  35.  
  36. header("Content-type: image/gif");
  37.  
  38. imagegif($area);
  39.  
  40.  
  41.  
  42.  
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement