I am assuming Step 1 has an misatke in the read me?
Read me contains below.
Code:
Step 1.
In class_core.php ;
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 - Get ip addresses.
$registry->ipaddress = $this->fetch_ip();
$registry->alt_ip = $this->fetch_alt_ip();
// Check that alt_ip is valid address, reset to original if not.
if (preg_match("#\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}#", $registry->alt_ip, $iplist))
{
$registry->alt_ip = $iplist[0];
}
else
{
$registry->alt_ip = $registry->ipaddress;
}
// Set ip constants.
if ($registry->ipaddress == $registry->alt_ip)
{
define('PROXYIP','');
define('ALT_IP',$registry->alt_ip);
define('IPADDRESS',$registry->ipaddress);
}
else
{
define('ALT_IP',$registry->alt_ip);
define('IPADDRESS',$registry->alt_ip);
define('PROXYIP',$registry->ipaddress);
$registry->ipaddress = $registry->alt_ip;
}
Closing curly bracket is not supposed to be there? Well it errored for me unless i removed it.