예제 #1
0
function Form_maker_Submits()
{
    require_once "Submissions.html.php";
    require_once "Submissions.php";
    if (!function_exists('print_html_nav')) {
        require_once "nav_function/nav_html_func.php";
    }
    global $wpdb;
    if (isset($_GET["task"])) {
        $task = esc_html($_GET["task"]);
    } else {
        $task = "show";
    }
    if (isset($_GET["id"])) {
        $id = (int) $_GET["id"];
    } else {
        $id = 0;
    }
    switch ($task) {
        case "submits":
            show_submits();
            break;
        case "edit_submit":
            editSubmit($id);
            break;
        case "remove_submit":
            remov_submit($id);
            show_submits();
            break;
        case "remov_cheched":
            remov_cheched_submission();
            show_submits();
            break;
        case "appply_submit":
            save_submit($id);
            editSubmit($id);
            break;
        case "save_submit":
            save_submit($id);
            show_submits();
            break;
        case "cancel":
            show_submits();
            break;
        default:
            show_submits();
    }
}
예제 #2
0
     //////////////////////////////////////////////////////////////////
 //////////////////////////////////////////////////////////////////
 case 'remove':
     remove();
     break;
 case 'remove_blocked_ips':
     remove_blocked_ips();
     break;
 case 'remove_submit':
     removeSubmit();
     break;
 case 'block_ip':
     blockIP();
     break;
 case 'edit_submit':
     editSubmit();
     break;
 case 'save_submit':
 case 'apply_submit':
     saveSubmit($task);
     break;
 case 'cancel_submit':
     cancelSubmit();
     break;
 case 'publish':
     change(1);
     break;
 case 'unpublish':
     change(0);
     break;
 case 'gotoedit':