/** * Check if the given cnonce+hnonce is correct. * * @param string $cnonce * @param string $hnonce * * @return boolean */ public function checkNonce($cnonce, $hnonce) { global $mudoco_conf; require_once "MuDoCo/Client.php"; if ($nonce = $this->getNonceStorage()->get($cnonce, $mudoco_conf['MUDOCO_SERVER_CHECK_FINGERPRINT'] ? MuDoCo_Client::get_finger_print() : null)) { return md5($cnonce . $nonce) == $hnonce; } return false; }