mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-21 12:19:15 +12:00
no message
This commit is contained in:
parent
4362a8a294
commit
afd60531fe
8 changed files with 52 additions and 14 deletions
|
@ -2,11 +2,14 @@
|
|||
|
||||
function GenHmacMessage(string $data, string $channel)
|
||||
{
|
||||
include('config.php');
|
||||
if($hmac_secret === "!!NOTSET!!"){
|
||||
die("Please set HMAC_SECRET !");
|
||||
echo("<script>alert('Please set HMAC_SECRET !')</script>");
|
||||
echo("<h1>Set \$hmac_secret in config.php!</h1>");
|
||||
exit();
|
||||
}
|
||||
return $hmac = hash_hmac('sha256', $data, $hmac_secret.$channel.$_SERVER['REMOTE_ADDR'].date('mhdY'));
|
||||
$hmac = hash_hmac('sha256', $data, $hmac_secret.$channel.$_SERVER['REMOTE_ADDR'].date('mdYhi'));
|
||||
return $hmac;
|
||||
}
|
||||
|
||||
function getNoPlayersOnlineInServer($database)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue