break; case 'exportexec': // エキスポート実行 $display = fncexportexec(); if ($display == "") { exit; } break; case 'changeset': // 属性セット変更 $information['pagetitle'] = $LANG_USERBOX_ADMIN['piname'] . $LANG_USERBOX_ADMIN['new']; $display .= fncChangeSet(); break; case 'save': // 保存 $retval = fncSave($edt_flg, $navbarMenu, $menuno); $information['pagetitle'] = $retval['title']; $display .= $retval['display']; break; case 'delete': // 削除 $retval = fncdelete(); $information['pagetitle'] = $retval['title']; $display .= $retval['display']; break; case 'edit': // 編集 if (!empty($id)) { $information['pagetitle'] = $LANG_USERBOX_ADMIN['piname'] . $LANG_USERBOX_ADMIN['edit']; $display .= fncEdit($id, $edt_flg, $msg, "", $mode); }
$display .= fncNew($template); break; } case 'newedit': // 新規登録 $fieldset_id = COM_applyFilter($_POST['fieldset'], true); case 'newedit_type': // 新規登録 if ($_DATABOX_CONF['allow_data_insert'] or SEC_hasRights('databox.submit')) { $information['pagetitle'] = $LANG_DATABOX_ADMIN['piname'] . $LANG_DATABOX_ADMIN['new']; $display .= fncEdit("", $edt_flg, $msg, "", "new", $fieldset_id, $template); break; } case 'save': // 保存 $retval = fncSave($edt_flg, $navbarMenu, $menuno, $template); $information['pagetitle'] = $retval['title']; $display .= $retval['display']; break; case 'delete': // 削除 $display .= fncdelete($template); break; case 'copy': //コピー if ($_DATABOX_CONF['allow_data_insert'] or SEC_hasRights('databox.submit')) { } else { $id = ""; $display .= $rt; } case 'edit':
} $display .= fncEdit($message, $wkymlmguserflg); break; case 'test': // test送信 $message .= fncSave($mode); if ($message === $LANG_ASSIST_ADMIN['mail_save_ok']) { $message = fncsendmail("test"); } $display .= fncEdit($message, $wkymlmguserflg); break; // hiroron start 2010/07/13 // hiroron start 2010/07/13 case 'reserv': // 送信予約 $message .= fncSave($mode); $display .= fncEdit($message, $wkymlmguserflg); break; // hiroron end 2010/07/13 // hiroron start 2010/07/15 // hiroron end 2010/07/13 // hiroron start 2010/07/15 case 'reservcancel': // 予約送信キャンセル $message .= fncReservDelete(); // hiroron end 2010/07/15 // hiroron end 2010/07/15 default: // 初期表示、一覧表示 $page_title = $LANG_ASSIST_ADMIN['piname']; $display .= fncEdit("", $wkymlmguserflg);
COM_accessLog("User {$_USER['username']} tried to illegally and failed CSRF checks."); echo COM_refresh($_CONF['site_admin_url'] . '/index.php'); exit; } } // $menuno = 2; $display = ""; //echo "mode=".$mode."<br>"; switch ($mode) { case 'delete': // 削除 $display .= fncdelete(); break; case 'save': // 保存 $display .= fncSave($edt_flg, $navbarMenu, $menuno); break; default: // 初期表示、一覧表示 if (!empty($id)) { $page_title = $LANG_USERBOX_ADMIN['piname'] . $LANG_USERBOX_ADMIN['edit']; $display .= DATABOX_siteHeader($pi_name, '_admin', $page_title); if ($edt_flg == FALSE) { $display .= ppNavbarjp($navbarMenu, $LANG_USERBOX_user_menu[$menuno]); } $display .= fncEdit($id, $edt_flg, $msg, "", $mode); $display .= DATABOX_siteFooter($pi_name, '_admin'); } } echo $display;
//echo "mode=".$mode."<br>"; if ($mode == "" or $mode == "edit" or $mode == "new" or $mode == "drafton" or $mode == "draftoff" or $mode == "export" or $mode == "import" or $mode == "copy") { } else { if (!SEC_checkToken()) { // if (SEC_checkToken()){//テスト用 COM_accessLog("User {$_USER['username']} tried to illegally and failed CSRF checks."); echo COM_refresh($_CONF['site_admin_url'] . '/index.php'); exit; } } // $menuno = 7; $display = ""; switch ($mode) { case 'save': // 保存 $display .= fncSave($navbarMenu, $menuno); break; default: // 初期表示、一覧表示 if (!empty($id)) { $page_title = $LANG_USERBOX_ADMIN['piname'] . $LANG_USERBOX_ADMIN['edit']; $display .= DATABOX_siteHeader($pi_name, '_admin', $page_title); if ($edt_flg == FALSE) { $display .= ppNavbarjp($navbarMenu, $LANG_USERBOX_user_menu[$menuno]); } $display .= fncEdit(); $display .= DATABOX_siteFooter($pi_name, '_admin'); } } echo $display;