B

Member İp's Change method

  • Thread starter Thread starter BySoft
  • Start date Start date
B

BySoft

Guest

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:
Code:
        if ($this->remoteIp === null)
        {
            $ip = $this->getTrustedRealIp($this->getServer('REMOTE_ADDR'));
            $this->remoteIp = $this->getFilteredIp($ip);
        }

        return $this->remoteIp;
    }

Continue reading...
 
Similar threads Most view View more
Back
Top Bottom