Advertisement
Guest User

Avatar

a guest
Jun 14th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. <?php
  2. @header('Content-type: image/gif;charset=UTF-8');
  3.  
  4. if(isset($_GET['size']))
  5. {
  6. $bild = imagecreatefromgif("http://www.habbo.de/habbo-imaging/avatarimage?img_format=gif&figure=".htmlspecialchars(str_replace('ch','au',@$_GET['figure']))."&direction=4&head_direction=3&gesture=sml&size=s");
  7. imagegif($bild);
  8. exit;
  9. }
  10. $bild = imagecreatefrompng("http://www.habbo.de/habbo-imaging/avatarimage?figure=".htmlspecialchars(str_replace('ch','au',@$_GET['figure']))."&direction=4&head_direction=3&gesture=sml&size=l");
  11. $bild_bg = imagecreatefrompng('./avatarimage_bg.png');
  12. $crop = imagecreatetruecolor(56,57);
  13. $bgclr = ImageColorAllocate ($crop, 153, 217, 234);
  14. imagecopy ($crop, $bild_bg, 0, 0, 0, 0, 359 ,56 ); //+25 +19
  15. imagecopy ($crop, $bild, 0, 0, 0, 0, 359 ,56 );
  16. imagecopy ($crop, $bild_bg, 0, 56, 0, 0, 27 ,10 );
  17. imagecopy ($crop, $bild_bg, 0, 55, 0, 0, 25 ,10 );
  18. imagecopy ($crop, $bild_bg, 0, 54, 0, 0, 24 ,10 );
  19. imagecopy ($crop, $bild_bg, 0, 53, 0, 0, 23 ,10 );
  20. imagecopy ($crop, $bild_bg, 0, 52, 0, 0, 22 ,10 );
  21. imagecopy ($crop, $bild_bg, 35, 56, 0, 0, 22 ,10 );
  22. imagecopy ($crop, $bild_bg, 37, 55, 0, 0, 22 ,10 );
  23. imagecopy ($crop, $bild_bg, 38, 54, 0, 0, 22 ,10 );
  24. imagecopy ($crop, $bild_bg, 39, 53, 0, 0, 22 ,10 );
  25. imagecopy ($crop, $bild_bg, 40, 52, 0, 0, 22 ,10 );
  26. imagecopy ($crop, $bild_bg, 41, 51, 0, 0, 22 ,10 );
  27. imagecopy ($crop, $bild_bg, 41, 50, 0, 0, 22 ,10 );
  28. if(str_replace("hr-500-","",@$_GET['figure'])==@$_GET['figure'])
  29. {
  30. imagecopy ($crop, $bild_bg, 41, 51, 0, 0, 22 ,10 );
  31. imagecopy ($crop, $bild_bg, 41, 50, 0, 0, 22 ,10 );
  32. imagecopy ($crop, $bild_bg, 42, 49, 0, 0, 22 ,5 );
  33. imagecopy ($crop, $bild_bg, 43, 48, 0, 0, 22 ,5 );
  34. imagecopy ($crop, $bild_bg, 42, 47, 0, 0, 22 ,5 );
  35. imagecopy ($crop, $bild_bg, 43, 46, 0, 0, 22 ,5);
  36. }
  37. $white=imagecolorallocate($crop,59,168,0);
  38. imagecolortransparent($crop,$white);
  39.  
  40. imagegif($crop);
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement