PHP Code:
Find ;
// fetch client IP address
$registry->ipaddress = $this->fetch_ip();
define('IPADDRESS', $registry->ipaddress);
// attempt to fetch IP address from behind proxies - useful, but don't rely on it...
$registry->alt_ip = $this->fetch_alt_ip();
define('ALT_IP', $registry->alt_ip);
Replace with ;
// Paul M - Fetch client IP address & Proxy server address if detected
$registry->ipaddress = $this->fetch_ip();
$registry->alt_ip = $this->fetch_alt_ip();
define('ALT_IP', $registry->ipaddress);
if ($registry->alt_ip == '')
{
define('PROXYIP', '');
define('IPADDRESS', $registry->ipaddress);
}
else
{
define('PROXYIP', $registry->ipaddress);
define('IPADDRESS', $registry->alt_ip);
}
isnt in the class_core.php for 3.5.4
neither is
PHP Code:
Find ;
// define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . $registry->alt_ip)); // this should *never* change during a session
define('SESSION_HOST', substr($registry->ipaddress, 0, 15));
Replace with ;
// Paul M - define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . IPADDRESS));
define('SESSION_HOST', substr(IPADDRESS, 0, 15));