function verifyNonce( $timestamp, $md5 ) {

		// Within range of 5 minutes?
		$within_range = time() - $timestamp;
		if ( $within_range > ( MINUTE_IN_SECONDS * 5 ) ) {
			return false;
		}

		// Correct md5?
		if ( md5( NONCE_KEY . $timestamp ) !== $md5 ) {
			return false;
		}

		return true;
	}
function verifyNonce( $timestamp, $md5 ) {

		// Within range of 5 minutes?
		$within_range = time() - $timestamp;
		if ( $within_range > ( MINUTE_IN_SECONDS * 5 ) ) {
			return false;
		}

		// Correct md5?
		if ( md5( NONCE_KEY . $timestamp ) !== $md5 ) {
			return false;
		}

		return true;
	}
function verifyNonce ( $ timestamp , $ md5 ) { // Within range of 5 minutes? $ within_range = time ( ) - $ timestamp ; if ( $ within_range > ( MINUTE_IN_SECONDS * 5 ) ) { return false ; } // Correct md5? if ( md5 ( NONCE_KEY . $ timestamp ) !== $ md5 ) { return false ; } return true ; }
Verify that a NONCE was created within a range of 5 minutes and is valid.

@see nonce

@param string $timestamp unix timestamp
@param string $md5

@return bool
Verify that a NONCE was created within a range of 5 minutes and is valid .