2015-08-26, 09:47 PM
Hello there 
I was wondering, can I totally fake my IP address by modifying the get_ip(); function in /inc/functions.php ? (the related file: https://github.com/mybb/mybb/blob/master....php#L3000 )
I tried to add this in the bottom of the get_ip(); function (just before the "return $ip;" )
where 3456 is my user identifiant, and 64.233.184.94 a fake IP address, I want to replace the real one only for me...
But it doesn't work... (of course I have added the line "global $db;" at the top of the function get_ip(); )
Can you help me please ?
Mybb 1.6.15

I was wondering, can I totally fake my IP address by modifying the get_ip(); function in /inc/functions.php ? (the related file: https://github.com/mybb/mybb/blob/master....php#L3000 )
I tried to add this in the bottom of the get_ip(); function (just before the "return $ip;" )
if($mybb->user['uid'] == '3456')
{
$ip = '64.233.184.94';
}
where 3456 is my user identifiant, and 64.233.184.94 a fake IP address, I want to replace the real one only for me...
But it doesn't work... (of course I have added the line "global $db;" at the top of the function get_ip(); )
Can you help me please ?

Mybb 1.6.15