Guest User

Untitled

a guest
Jan 24th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. //Javascript
  2. $(document).ready(function() {
  3. setInterval(evilCounter, 20000);
  4. });
  5.  
  6. function evilCounter() {
  7. $('div#counter').stop().animate({opacity: 0}, 100, function() {
  8. $.post('evilcounter.php', '', function(data) {
  9. $('div#counter').html(data).stop().animate({opacity: 1}, 100);
  10. });
  11. });
  12. }
  13.  
  14. //PHP "evilcounter.php"
  15.  
  16. <?php
  17. $current = @file_get_contents('evil.txt');
  18. $fp = @fopen('evil.txt', 'w');
  19. @fwrite($fp, ($current + 1));
  20. @fclose($fp);
  21. echo $current;
  22. ?>
Add Comment
Please, Sign In to add comment