Share Pastebin
Guest
Public paste!

gfnhd

By: a guest | Jan 22nd, 2010 | Syntax: PHP | Size: 0.74 KB | Hits: 36 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. <?php
  2. //created and designed by ttyler333
  3. //Will be placed on http://nukewarz.com
  4. //Feel free to download those images also
  5. $percent = $_GET['x'];
  6. if($percent > 100){ $percent = "100";}
  7. $percent2 = $percent * 2;
  8. $image = "http://nukewarz.com/images/bgprogress.gif";
  9. $im = imagecreatefromgif($image);
  10. $src = imagecreatefromgif('http://nukewarz.com/images/progresspix.gif');
  11.  
  12. imagecopy($im, $src, 0, 0, 0, 0, $percent2, 25);
  13.  
  14. $red = ImageColorAllocate ($im, 255, 0, 0);
  15. $blue = ImageColorAllocate ($im, 0, 0, 255);
  16. $white = ImageColorAllocate ($im, 200, 200, 200);
  17. $blk = ImageColorAllocate ($im, 0, 0, 0);
  18.  
  19. ImageString($im, 4, 90, 4, $percent . "%", $white);
  20. header("Content-Type: image/gif");
  21. Imagegif($im,'',100);
  22. ?>