f/wp_contactform/IMContactForm.php
/**
         * Uses session to limit the sending to one per calendar day
         * @method limitTo24Hours
         * @return {Boolean}
         */
Uses session to limit the sending to one per calendar day
@method limitTo24Hours
@return {Boolean}
Uses session to limit the sending to one per calendar day @method limitTo24Hours @return { Boolean }
public function limitTo24Hours()
        {
            if (session_id() !== '') {
                $okay = true;
                $t = crypt(date('Y-M-D'), time());
                if ($_SESSION['cml'] === $t) {
                    $okay = false;
                }
                $_SESSION['cml'] = $t;
                return $okay;
            } else {
                return true;
            }
        }
public function limitTo24Hours ( ) { if ( session_id ( ) !== '' ) { $ okay = true ; $ t = crypt ( date ( 'Y-M-D' ) , time ( ) ) ; if ( $ _SESSION [ 'cml' ] === $ t ) { $ okay = false ; } $ _SESSION [ 'cml' ] = $ t ; return $ okay ; } else { return true ; } }
Uses session to limit the sending to one per calendar day
 @method limitTo24Hours
 @return {Boolean}
Uses session to limit the sending to one per calendar day @method limitTo24Hours @return { Boolean }