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'];
?>
ZK Calendar is coming soon with a brand new look and feel and Java 8 date/time support. ZK Calendar is an enterprise calendar component providing intuitive scheduling functionality fully controllable in Java. It comes with 3 views: DAY, WEEK and MONTH and various attributes for controlling its date format, time zone, begin date, begin time […]
Last month I posted a Small Talk discussing the use of ZK Calendar with a database. Since then I have been working closely with ZK Calendar and thought I would share another way of achieving the same effect. The implementation hinges on the extending the AbstractCalendarModel which provides a more OO approach.