Add support for 'use-player-login-ip', 'require-player-login-ip' - map player login IP addresses to web chat addresses
This commit is contained in:
parent
09fbf312ac
commit
e009aefb18
7 changed files with 187 additions and 12 deletions
|
|
@ -11,6 +11,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST' && $_SESSION['lastchat'] < time())
|
|||
|
||||
$data = json_decode(trim(file_get_contents('php://input')));
|
||||
$data->timestamp = $timestamp;
|
||||
$data->ip = $_SERVER['REMOTE_ADDR'];
|
||||
$old_messages = json_decode(file_get_contents('dynmap_webchat.json'), true);
|
||||
if(!empty($old_messages))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue