Page 1 of 1

Cant change a code

PostPosted: 07 Nov 2013, 11:29
by pilsner
Im trying to use this: [Snippet] IP-Logging ausschalten (de)

But i cant find the code: $this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars($_SERVER['REMOTE_ADDR']) : ''; in includes/session.php the closest i can find is: $this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? (string) $_SERVER['REMOTE_ADDR']

I was trying to typing the code $this->ip = '127.0.0.1'; under the first line and what i can se it works, but i dont know if something is wrong anyway?

If i change the second line: 'session_ip' => (string) $this->ip, to 'session_ip' => '127.0.0.1', Everything is just White...

whats wrong?

Re: Cant change a code

PostPosted: 03 Dec 2013, 00:56
by 4seven
pilsner wrote:If i change the second line: 'session_ip' => (string) $this->ip, to 'session_ip' => '127.0.0.1', Everything is just White...

whats wrong?


seems in newer phpbb version the string is casted via (string) ;)

so write 'session_ip' => (string) '127.0.0.1', instead of 'session_ip' => '127.0.0.1',