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'];
?>
If you have a ZK 8.0 (or even older) project, this question must have popped up a few times in your head. If you have never thought about it, it’s time — it’s been 5 YEARS since ZK 8.0 was released. Before answering this question, let’s look at WHAT has been changed in the meantime. […]