how i can modify ? this code is correct ?
$visitor = \XF::visitor();
if($visitor->user_id == '1'){
$_SERVER['REMOTE_ADDR'] = '99.99.99.99';
}
i want modify here for change my ip adress.
sc/XF/Http/Request.php
PHP:
Читать далее...
$visitor = \XF::visitor();
if($visitor->user_id == '1'){
$_SERVER['REMOTE_ADDR'] = '99.99.99.99';
}
i want modify here for change my ip adress.
sc/XF/Http/Request.php
PHP:
Код:
if ($this->remoteIp === null)
{
$ip = $this->getTrustedRealIp($this->getServer('REMOTE_ADDR'));
$this->remoteIp = $this->getFilteredIp($ip);
}
return $this->remoteIp;
}
Читать далее...