public static function checkHoneypot($name = null, $delay = 3)
	{
		$name = $name ?: \Hubzero\Spam\Honeypot::getName();

		if ($honey = self::getVar($name, array(), 'post'))
		{
			if (!\Hubzero\Spam\Honeypot::isValid($honey['p'], $honey['t'], $delay))
			{
				if (\App::has('log'))
				{
					$fallback = 'option=' . self::getCmd('option') . '&controller=' . self::getCmd('controller') . '&task=' . self::getCmd('task');
					$from = self::getVar('REQUEST_URI', $fallback, 'server');
					$from = $from ?: $fallback;

					\App::get('log')->logger('spam')->info('spam honeypot ' . self::ip() . ' ' . \User::get('id') . ' ' . \User::get('username') . ' ' . $from);
				}

				return false;
			}
		}

		return true;
	}
public static function checkHoneypot($name = null, $delay = 3)
	{
		$name = $name ?: \Hubzero\Spam\Honeypot::getName();

		if ($honey = self::getVar($name, array(), 'post'))
		{
			if (!\Hubzero\Spam\Honeypot::isValid($honey['p'], $honey['t'], $delay))
			{
				if (\App::has('log'))
				{
					$fallback = 'option=' . self::getCmd('option') . '&controller=' . self::getCmd('controller') . '&task=' . self::getCmd('task');
					$from = self::getVar('REQUEST_URI', $fallback, 'server');
					$from = $from ?: $fallback;

					\App::get('log')->logger('spam')->info('spam honeypot ' . self::ip() . ' ' . \User::get('id') . ' ' . \User::get('username') . ' ' . $from);
				}

				return false;
			}
		}

		return true;
	}
public static function checkHoneypot ( $ name = null , $ delay = 3 ) { $ name = $ name ? : \ Hubzero \ Spam \ Honeypot :: getName ( ) ; if ( $ honey = self :: getVar ( $ name , array ( ) , 'post' ) ) { if ( ! \ Hubzero \ Spam \ Honeypot :: isValid ( $ honey [ 'p' ] , $ honey [ 't' ] , $ delay ) ) { if ( \ App :: has ( 'log' ) ) { $ fallback = 'option=' . self :: getCmd ( 'option' ) . '&controller=' . self :: getCmd ( 'controller' ) . '&task=' . self :: getCmd ( 'task' ) ; $ from = self :: getVar ( 'REQUEST_URI' , $ fallback , 'server' ) ; $ from = $ from ? : $ fallback ; \ App :: get ( 'log' ) -> logger ( 'spam' ) -> info ( 'spam honeypot ' . self :: ip ( ) . ' ' . \ User :: get ( 'id' ) . ' ' . \ User :: get ( 'username' ) . ' ' . $ from ) ; } return false ; } } return true ; }
Checks for a honeypot in the request

@param   string   $name
@param   integer  $delay
@return  boolean  True if found and valid, false otherwise.
Checks for a honeypot in the request