Your register_globals in the php.ini might be set to off.
Try:
# Collect the ip-adress from the client ##
if($_SERVER['HTTP_X_FORWARDED_FOR']) {
if(!eregi("unknown", $_SERVER['HTTP_X_FORWARDED_FOR'])) {
$thisip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$thisip = $_SERVER['REMOTE_ADDR'];
}
} else {
$thisip = $_SERVER['REMOTE_ADDR'];
}
global $thisip;
## User-agent ##
$usersw = $_SERVER['HTTP_USER_AGENT'];
global $usersw;
The script does a check of the HTTP_X_FORWARDED_FOR (proxy-ip) to see if it is "unknown", which often is the case.
knutm