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'];
?>
Coming from a legacy ZK version? Just took over an existing ZK project but new to ZK? Hoping to turn your current ZK app responsive? No worries, we can help you with our Migration Program! Why Upgrade If you have ZK 5, 6 or 7 projects, we recommended you to upgrade immediately and stay up-to-date, […]