1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
includes/session.php
look for :
Code: Select all
$this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars((string) $_SERVER['REMOTE_ADDR']) : '';
Code: Select all
$this->ip = '';
now, i have tried the following code, but its not affecting
Code: Select all
if ($user->data['group_id'] != 5)
{
$this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars((string) $_SERVER['REMOTE_ADDR']) : '';
}
else
{
$this->ip = '';
}
i've also tried this :
Code: Select all
if (!$user->data['acp'])
{
$this->ip = '';
}
else
{
$this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars((string) $_SERVER['REMOTE_ADDR']) : '';
}
and this too
Code: Select all
if ($user->data['username'] == "Anonymous" || $user->data['username']== "Guest")
{
$this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars((string) $_SERVER['REMOTE_ADDR']) : '';
}
else
{
$this->ip = '';
}