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 […]