mirror of
https://silica.codes/islehorse/HorseIsleWeb.git
synced 2025-05-22 02:56:31 +12:00
Add files via upload
This commit is contained in:
parent
9f01ea2606
commit
bbc3c09670
2 changed files with 45 additions and 14 deletions
|
@ -1,18 +1,5 @@
|
|||
<?php
|
||||
|
||||
function GenHmacMessage(string $data, string $channel)
|
||||
{
|
||||
include('config.php');
|
||||
if($hmac_secret === "!!NOTSET!!"){
|
||||
echo("<script>alert('Please set HMAC_SECRET !')</script>");
|
||||
echo("<h1>Set \$hmac_secret in config.php!</h1>");
|
||||
exit();
|
||||
}
|
||||
$secret = $hmac_secret.$channel.$_SERVER['REMOTE_ADDR'].date('mdy');
|
||||
$hmac = hash_hmac('sha256', $data, $secret);
|
||||
return $hmac;
|
||||
}
|
||||
|
||||
|
||||
function getPlayerList($database)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue