protected function isCodeExpired($creation_time)
    {
        $expired = true;

        if (!is_numeric($this->expiry_time) || $this->expiry_time < 1) {
            $expired = false;
        } else if (time() - $creation_time < $this->expiry_time) {
            $expired = false;
        }

        return $expired;
    }
protected function isCodeExpired($creation_time)
    {
        $expired = true;

        if (!is_numeric($this->expiry_time) || $this->expiry_time < 1) {
            $expired = false;
        } else if (time() - $creation_time < $this->expiry_time) {
            $expired = false;
        }

        return $expired;
    }
protected function isCodeExpired ( $ creation_time ) { $ expired = true ; if ( ! is_numeric ( $ this -> expiry_time ) || $ this -> expiry_time < 1 ) { $ expired = false ; } else if ( time ( ) - $ creation_time < $ this -> expiry_time ) { $ expired = false ; } return $ expired ; }
Checks to see if the captcha code has expired and can no longer be used.

@see Securimage::$expiry_time expiry_time
@param int $creation_time  The Unix timestamp of when the captcha code was created
@return bool true if the code is expired, false if it is still valid
Checks to see if the captcha code has expired and can no longer be used .