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