getRecaptchaEnabled() == "0") { require_once('include/recaptchalib.php'); $publickey = $settingObj->getRecaptchaPublicKey(); } //$publickey = $settingObj->getRecaptchaPublicKey(); if((!isset($_GET["calendar_id"]) || $_GET["calendar_id"] == 0) && (!isset($_GET["category_id"]) || $_GET["category_id"] == 0)) { //get default category and default calendar of the category $categoryObj->getDefaultCategory(); $calendarObj->getDefaultCalendar($categoryObj->getCategoryId()); } else if(isset($_GET["calendar_id"]) && $_GET["calendar_id"] > 0) { $calendarObj->setCalendar($_GET["calendar_id"]); $categoryObj->setCategory($calendarObj->getCalendarCategoryId()); } else if(isset($_GET["category_id"]) && $_GET["category_id"]>0) { $categoryObj->setCategory($_GET["category_id"]); $calendarObj->getDefaultCalendar($categoryObj->getCategoryId()); } /**************************/ /******** END SECTION 1 ***/ /**************************/ ?>