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'];
?>
The official release of ZK 5 marks the launch of ZK’s “Developer-Centric” paradigm. At the core are the Server+client Fusion and Ajax-as-a-Service architectural innovations. The integration of jQuery and Java EE 6 CDI, as well as additional enterprise level functionalities, is among the main advancements in ZK 5.