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'];
?>
This blog post is the first of a series which introduces more new features of ZK 6. To check out main features please click here.
ZK 6 has another brand new ZK component – “combobutton” which is effective in providing multi-function button enabling the developer to provide the user with one click actions as well as the ability to initiate further actions using the popup menu. The functionality brings desktop style functionality to the web.
The video provided below demonstrates how a “combobutton” works.
Demo
For more details, please refer to the ZK Component Reference. Stay tuned for more releases.
Download
To Download and try out the latest ZK 6.0 freshly, click here.
[…] Feature Highlight Part 1 Feature Highlight Part 2 var dzone_url = "http://blog.zkoss.org/index.php/2011/11/06/zk-6-0-new-feature-highlight-part-3-dateboxtimebox-input-shortcut/"; var dzone_title = "ZK 6.0 New Feature Highlight Part 3: Datebox/Timebox Input Shortcut"; If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader. […]