pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

PHP pastebin - collaborative debugging tool View Help


Posted by tyler on Wed 12 Aug 23:17 (modification of post by tyler view diff)
report abuse | View followups from Anonymous, Anonymous, Anonymous, dffd, yoooo, Anonymous, Anonymous, vj and gfnhd | download | new post

  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. ImageDestroy ($im);
  23. ?>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post