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'];
?>
Originally, to activate the Data Binding Manager, users have to define the page initializer at the top of the page like this: <?init class=”org.zkoss.zkplus.databind.AnnotateDataBinderInit” ?> This set of code creates an AnnotateDataBinder instance and set the instance as a variable named “binder” of the component, and then calls loadAll() to initiate all UI components from […]
Anchorlayout is a component where the size of its children components can be made dependent on the size of the parent components. When the parent component’s size is changed, its child components will also re-size itself accordingly. Version:1.0.0 ZK Version: applicable to 5.0.0 later Usage: The anchor property of anchorchildren can be used to assign the […]