Advertisement
nPhoenix

Anti-Flood na db //by drizer

Jul 4th, 2012
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. $tempo = 10; //tempo que vc quer q a vitima ou algo pode mandar algo para a db.
  2. session_start();
  3. if((time() - $_SESSION['flood']) > 0) {
  4.     unset($_SESSION['flood']);
  5. }
  6. isset($_SESSION['flood'])? die("Anti-Flood! // By Drizer!") : $_SESSION['flood'] = time() + $tempo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement