include "{$mod_path}/include/read_configs.php"; $cal->base_url = $mod_url; $cal->base_path = $mod_path; $cal->images_url = "{$mod_url}/images/{$skin_folder}"; $cal->images_path = "{$mod_path}/images/{$skin_folder}"; // データベース更新関係の処理(いずれも、Locationで飛ばす) if (isset($_POST['update'])) { // 更新 if (!$editable) { die(_MB_PICAL_ERR_NOPERMTOUPDATE); } // Ticket Check if (!$xoopsGTicket->check()) { redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors()); } $cal->update_schedule("{$admission_update_sql}", $whr_sql_append); } else { if (isset($_POST['insert']) || isset($_POST['saveas'])) { // saveas または 新規登録 if (!$insertable) { die(_MB_PICAL_ERR_NOPERMTOINSERT); } $_POST['event_id'] = ""; // 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'])) { // 削除