get('licensehash'); } if (!$storedHash) { // hash not yet stored $app->close(); } // recover hash sent by the server $serverHash = $app->input->getString('hash'); // the received hash must be equals to the stored one if (strcmp($serverHash, $storedHash)) { VBOHttpDocument::getInstance($app)->close(403, 'Hash mismatch.'); } // hash validated successfully $app->close(); } }