Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- @header('Content-type: image/gif;charset=UTF-8');
- if(isset($_GET['size']))
- {
- $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");
- imagegif($bild);
- exit;
- }
- $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");
- $bild_bg = imagecreatefrompng('./avatarimage_bg.png');
- $crop = imagecreatetruecolor(56,57);
- $bgclr = ImageColorAllocate ($crop, 153, 217, 234);
- imagecopy ($crop, $bild_bg, 0, 0, 0, 0, 359 ,56 ); //+25 +19
- imagecopy ($crop, $bild, 0, 0, 0, 0, 359 ,56 );
- imagecopy ($crop, $bild_bg, 0, 56, 0, 0, 27 ,10 );
- imagecopy ($crop, $bild_bg, 0, 55, 0, 0, 25 ,10 );
- imagecopy ($crop, $bild_bg, 0, 54, 0, 0, 24 ,10 );
- imagecopy ($crop, $bild_bg, 0, 53, 0, 0, 23 ,10 );
- imagecopy ($crop, $bild_bg, 0, 52, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 35, 56, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 37, 55, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 38, 54, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 39, 53, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 40, 52, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 41, 51, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 41, 50, 0, 0, 22 ,10 );
- if(str_replace("hr-500-","",@$_GET['figure'])==@$_GET['figure'])
- {
- imagecopy ($crop, $bild_bg, 41, 51, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 41, 50, 0, 0, 22 ,10 );
- imagecopy ($crop, $bild_bg, 42, 49, 0, 0, 22 ,5 );
- imagecopy ($crop, $bild_bg, 43, 48, 0, 0, 22 ,5 );
- imagecopy ($crop, $bild_bg, 42, 47, 0, 0, 22 ,5 );
- imagecopy ($crop, $bild_bg, 43, 46, 0, 0, 22 ,5);
- }
- $white=imagecolorallocate($crop,59,168,0);
- imagecolortransparent($crop,$white);
- imagegif($crop);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement