Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. if(!checkTimer()){
  2. exit();
  3. }
  4.  
  5. function checkTimer(){
  6. if(isset($_SESSION['posttimer']) && $_SESSION['posttimer'] != null ){
  7. if ( (time() - $_SESSION['posttimer']) <= 4){
  8. return false;
  9. }
  10. } else {
  11. $_SESSION['posttimer'] = time();
  12. return true;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement