SHARE
TWEET

Untitled

a guest Oct 24th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
Top