Advertisement
Venomshq

sfds

Jun 9th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. function curPageURL() {
  3. $pageURL = 'http';
  4. if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
  5. $pageURL .= "://";
  6. if ($_SERVER["SERVER_PORT"] != "80") {
  7. $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
  8. } else {
  9. $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
  10. }
  11. return $pageURL;
  12. }
  13. $Page=curPageURL();
  14. $Sentence=time()." :".$Page."<br/>";
  15. $user=file("users.txt");
  16. $file=file_get_contents("users.txt");
  17. foreach($user as $User){
  18. $Time=explode(":",$User);
  19. if(time()-$Time>60)
  20. $file=str_replace($User,"",$file);
  21. }
  22. $file_put_contents("users.txt",$file);
  23. //$UserFile=fopen("users.txt","a");
  24. //fwrite($UserFile,$Sentence);
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement