2019-12-28 22:42:25 +01:00
|
|
|
<?php
|
2020-01-16 13:21:14 +01:00
|
|
|
require_once (__DIR__ . '/../internals/website.php');
|
|
|
|
|
|
|
|
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
|
|
|
|
/** @var URLRoute $ROUTE */ global $ROUTE;
|
|
|
|
/** @var Website $SITE */ global $SITE;
|
2019-12-28 22:42:25 +01:00
|
|
|
|
|
|
|
$ip = get_client_ip();
|
|
|
|
|
|
|
|
file_put_contents(__DIR__ . '/../dynamic/self_ip_address.auto.cfg', $ip);
|
|
|
|
|
|
|
|
system('add-trusted-ip "' . $ip . '"');
|
|
|
|
|
|
|
|
echo 'Ok.';
|