Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!isset($_GET['id'])) exit;
- $conti = file_get_contents("http://www.humblebundle.com/?gift=".$_GET['id']);
- $im = imagecreate( 500, 20 );
- $white = ImageColorAllocate ($im, 255, 255, 255);
- $black = ImageColorAllocate ($im, 0, 0, 0);
- $red = ImageColorAllocate ($im, 255, 0, 0);
- if( strpos($conti,'Gift key already used!') === false ) imagestring( $im, 4, 0, 0, "http://www.humblebundle.com/?gift=".$_GET['id'], $black );
- else imagestring( $im, 4, 0, 0, "Key bereits benutzt", $red );
- imagesetthickness ( $im, 5 );
- header( "Content-type: image/png" );
- imagepng( $im );
- imagecolordeallocate( $white );
- imagecolordeallocate( $black );
- imagedestroy( $im );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement