Exemplo n.º 1
0
     // Ticket Check
     if (!$xoopsGTicket->check()) {
         redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
     }
     $cal->update_schedule(",uid='{$user_id}' {$admission_insert_sql}", '', 'notify_new_event');
 } else {
     if (!empty($_POST['delete'])) {
         // 削除
         if (!$deletable) {
             die(_MB_PICAL_ERR_NOPERMTODELETE);
         }
         // Ticket Check
         if (!$xoopsGTicket->check()) {
             redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
         }
         $cal->delete_schedule($whr_sql_append, 'global $xoopsModule; xoops_comment_delete($xoopsModule->mid(),$id);');
     } else {
         if (!empty($_POST['delete_one'])) {
             // 一件削除
             if (!$deletable) {
                 die(_MB_PICAL_ERR_NOPERMTODELETE);
             }
             // Ticket Check
             if (!$xoopsGTicket->check()) {
                 redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
             }
             $cal->delete_schedule_one($whr_sql_append);
         } else {
             if (!empty($_GET['output_ics'])) {
                 // output ics
                 $cal->output_ics();