if (!empty($_SERVER['HTTP_CLIENT_IP']))
$ip=$_SERVER['HTTP_CLIENT_IP'];
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
else
$ip=$_SERVER['REMOTE_ADDR'];
?>
A big thank you to one of our German contributors named Stephan (terrytornado) as he located a thesis from the University of Hamburg in Germany regarding a port of CommSy, a webbased community system to support learning and working communities, into Java.