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'];
?>
IntroductionMacro component is a useful technique to modularize complex ZUL pages. In most use cases, macro component consists of several fixed components. However, you may want to append more components inside a macro component based on some action. This blog will show how you can add additional components to a wired component inside a macro […]