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'];
?>
Introduction HTML5 specification introduces new History API: history object can use pushState() to push given data onto the session history and change the URL to a given one, if provided. When history changes, browser will fire an onpopstate event to window.onpopstate. History management with HTML5 History API in ZK introduces how developers can use this […]
Introduction In the upcoming ZK 6.5, we will introduce a new component called ‘Cardlayout’ enabling end-users to switch components like switching cards. On tablet, this navigation operation is supported by simply swiping through components. Check out the demo below to see how it works exactly! Live Demo Implementation Like HBox or Hlyout, developers can add […]
Introduction The upcoming ZK 6.5 focuses on incorporating responsive design principles to afford developers the ability to create web applications which have an excellent user experience on desktops and tablet devices without writing separate applications. Designing for tablets The experience of tablets is different to that of desktops. Not only are their screens smaller, the […]
Introduction In upcoming ZK 6.5, we will introduce a new component ‘Dropupload’ which leverages HTML 5 technology, allowing users to upload by dragging files into the component whilst retaining original operating habits. In addition, compared to ZK’s traditional file uploading method, ‘Dropupload’ can get rid of the overhead of pooling server (in order to check […]