MrPaan

image.php

Jan 5th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2.  
  3. //jangan bekerja untuk sara kerajaan,bekerjalah untuk sara keluarga dan diri
  4. header("Content-type: image/png");
  5.  
  6. $max_gambar = 5;
  7. $start = 1;
  8.  
  9. if(!isset($_COOKIE['gambar_paan'])) {
  10. setcookie("gambar_paan", $start);
  11. } elseif(isset($_COOKIE['gambar_paan']) and $_COOKIE['gambar_paan'] >= $max_gambar) {
  12. setcookie("gambar_paan", $start);
  13. } else {
  14. $start = $_COOKIE['gambar_paan'];
  15. }
  16.  
  17. $pilih = $start + 1;
  18. setcookie("gambar_paan", $pilih);
  19. switch( $pilih ) {
  20. case 1:
  21. readfile("http://files.softicons.com/download/web-icons/alphabet-icons-by-supratim-nayak/png/128/p_black.png");
  22. break;
  23.  
  24. case 2:
  25. readfile("http://files.softicons.com/download/web-icons/alphabet-icons-by-supratim-nayak/png/128/p_black.png");
  26. break;
  27.  
  28. case 3:
  29. readfile("http://upload.wikimedia.org/wikipedia/commons/d/db/Crystal_Clear_app_applixware.png");
  30. break;
  31.  
  32. case 4:
  33. readfile("http://shallowsky.com/linux/quickmask/final.png");
  34. break;
  35.  
  36. case 5:
  37. readfile("http://icongal.com/gallery/image/194527/letter_n.png");
  38. break;
  39. }
  40.  
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment