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'];
?>
Data-Attribute Handler is one of ZK 8’s key features. By simply using Data-handler API, any ZK Components integrated with third-party JavaScript libraries can be modularized and reusable. Developers no longer have to wait for new releases, as by combining our Data-handler with Client-binding, they will be able to incorporate any 3rd party JavaScript library efficiently […]