Example #1
0
/* not spam multi */
if ($_REQUEST['action'] == 'unmarkspam') {
    $table_name = $wpdb->prefix . "dmsguestbook";
    for ($c = 0; $c < count($_REQUEST['selectpost']); $c++) {
        $_REQUEST['selectpost'][$c] = isset($_REQUEST['selectpost'][$c]) ? $_REQUEST['selectpost'][$c] : '';
        $updatedata4 = $wpdb->query("UPDATE {$table_name} SET\n\t\t\tspam \t\t= \t'0'\n\t\t\tWHERE id = '" . sprintf("%d", "{$_REQUEST['selectpost'][$c]}") . "'");
        $update4 = mysql_query($updatedata4);
        SpamHam("{$_REQUEST['selectpost'][$c]}", "ham");
    }
}
/* not spam single */
if ($_REQUEST['action'] == 'unmarkspam') {
    $table_name = $wpdb->prefix . "dmsguestbook";
    $updatedata4 = $wpdb->query("UPDATE {$table_name} SET\n\t\tspam \t\t= \t'0'\n\t\tWHERE id = '" . sprintf("%d", "{$_REQUEST['id']}") . "'");
    $update4 = mysql_query($updatedata4);
    SpamHam($_REQUEST['id'], "ham");
}
/* set admin review or not */
if ($_REQUEST['action'] == 'adminreview') {
    $table_name = $wpdb->prefix . "dmsguestbook";
    $updatedata5 = $wpdb->query("UPDATE {$table_name} SET\n\t\tflag \t\t= \t'" . sprintf("%d", "{$_REQUEST['flag']}") . "'\n\t\tWHERE id = '" . sprintf("%d", "{$_REQUEST['id']}") . "'");
    $update5 = mysql_query($updatedata5);
}
/* multi set admin review set hidden */
if ($POSTVARIABLE['action'] == 'sethidden') {
    $table_name = $wpdb->prefix . "dmsguestbook";
    for ($c = 0; $c < count($_REQUEST['selectpost']); $c++) {
        $updatedata6 = $wpdb->query("UPDATE {$table_name} SET\n\t\t\tflag \t\t= \t'1'\n\t\t\tWHERE id = '" . sprintf("%d", "{$_REQUEST['selectpost'][$c]}") . "'");
        $update6 = mysql_query($updatedata6);
    }
}
Example #2
0
}
/* not spam multi */
if ('unmarkspam' == $POSTVARIABLE['action']) {
    $table_name = $wpdb->prefix . "dmsguestbook";
    for ($c = 0; $c < count($_REQUEST[selectpost]); $c++) {
        $updatedata4 = $wpdb->query("UPDATE {$table_name} SET\r\n\t\t\tspam \t\t= \t'0'\r\n\t\t\tWHERE id = '" . sprintf("%d", "{$_REQUEST[selectpost][$c]}") . "'");
        $update4 = mysql_query($updatedata4);
        SpamHam("{$_REQUEST[selectpost][$c]}", "ham");
    }
}
/* not spam single */
if ('unmarkspam' == $_REQUEST['action']) {
    $table_name = $wpdb->prefix . "dmsguestbook";
    $updatedata4 = $wpdb->query("UPDATE {$table_name} SET\r\n\t\tspam \t\t= \t'0'\r\n\t\tWHERE id = '" . sprintf("%d", "{$_REQUEST['id']}") . "'");
    $update4 = mysql_query($updatedata4);
    SpamHam($_REQUEST[id], "ham");
}
/* set admin review or not */
if ('adminreview' == $_REQUEST['action']) {
    $table_name = $wpdb->prefix . "dmsguestbook";
    $updatedata5 = $wpdb->query("UPDATE {$table_name} SET\r\n\t\tflag \t\t= \t'" . sprintf("%d", "{$_REQUEST['flag']}") . "'\r\n\t\tWHERE id = '" . sprintf("%d", "{$_REQUEST['id']}") . "'");
    $update5 = mysql_query($updatedata5);
}
/* multi set admin review set hidden */
if ('sethidden' == $POSTVARIABLE['action']) {
    $table_name = $wpdb->prefix . "dmsguestbook";
    for ($c = 0; $c < count($_REQUEST[selectpost]); $c++) {
        $updatedata6 = $wpdb->query("UPDATE {$table_name} SET\r\n\t\t\tflag \t\t= \t'1'\r\n\t\t\tWHERE id = '" . sprintf("%d", "{$_REQUEST[selectpost][$c]}") . "'");
        $update6 = mysql_query($updatedata6);
    }
}