예제 #1
0
파일: ical.php 프로젝트: a2call/commsy
 if (!empty($_GET['hid'])) {
     $l_current_user_item = $hash_manager->getUserByICalHash($_GET['hid']);
     if (!empty($l_current_user_item)) {
         $environment->setCurrentUserItem($l_current_user_item);
     }
 }
 include_once 'classes/external_classes/ical/iCal.php';
 $iCal = new iCal('', 0);
 // (ProgrammID, Method [1 = Publish | 0 = Request])
 if (isset($_GET['mod'])) {
     $current_module = $_GET['mod'];
 } else {
     $current_module = CS_DATE_TYPE;
 }
 if ($current_module == CS_DATE_TYPE) {
     $dates_manager = $environment->getDatesManager();
     $dates_manager->setWithoutDateModeLimit();
     if (!$environment->inPrivateRoom()) {
         $dates_manager->setContextLimit($context_item->getItemID());
     } else {
         $context_item = $environment->getCurrentContextItem();
         $date_sel_status = $context_item->getRubrikSelection(CS_DATE_TYPE, 'status');
         if (!empty($date_sel_status)) {
             $dates_manager->setDateModeLimit($date_sel_status);
         }
         $date_sel_assignment = $context_item->getRubrikSelection(CS_DATE_TYPE, 'assignment');
         if (!empty($date_sel_assignment) and $date_sel_assignment != '2') {
             $current_user_item = $environment->getCurrentUserItem();
             $user_list = $current_user_item->getRelatedUserList();
             $user_item = $user_list->getFirst();
             $user_id_array = array();