امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
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;
}
