Пример #1
0
    if (isset($_POST['options']['enable_double_check']) && !subscribe_reloaded_update_option('enable_double_check', $_POST['options']['enable_double_check'], 'yesno')) {
        $faulty_fields = __('Enable double check', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['notify_authors']) && !subscribe_reloaded_update_option('notify_authors', $_POST['options']['notify_authors'], 'yesno')) {
        $faulty_fields = __('Subscribe authors', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['enable_html_emails']) && !subscribe_reloaded_update_option('enable_html_emails', $_POST['options']['enable_html_emails'], 'yesno')) {
        $faulty_fields = __('Enable HTML emails', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['process_trackbacks']) && !subscribe_reloaded_update_option('process_trackbacks', $_POST['options']['process_trackbacks'], 'yesno')) {
        $faulty_fields = __('Send trackbacks', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['enable_admin_messages']) && !subscribe_reloaded_update_option('enable_admin_messages', $_POST['options']['enable_admin_messages'], 'yesno')) {
        $faulty_fields = __('Notify admin', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['admin_subscribe']) && !subscribe_reloaded_update_option('admin_subscribe', $_POST['options']['admin_subscribe'], 'yesno')) {
        $faulty_fields = __('Let admin subscribe', 'subscribe-reloaded') . ', ';
    }
    // Display an alert in the admin interface if something went wrong
    echo '<div class="updated fade"><p>';
    if (empty($faulty_fields)) {
        _e('Your settings have been successfully updated.', 'subscribe-reloaded');
    } else {
        _e('There was an error updating the following fields:', 'subscribe-reloaded');
        echo ' <strong>' . substr($faulty_fields, 0, -2) . '</strong>';
    }
    echo "</p></div>\n";
}
wp_print_scripts('quicktags');
?>
<form action="admin.php?page=send-email-only-on-reply-to-my-comment/options/index.php&subscribepanel=<?php 
Пример #2
0
        $faulty_fields = __('Custom inline style', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['checkbox_html']) && !subscribe_reloaded_update_option('checkbox_html', $_POST['options']['checkbox_html'], 'text-no-encode')) {
        $faulty_fields = __('Custom HTML', 'subscribe-reloaded') . ', ';
    }
    // default_subscription_type
    if (isset($_POST['options']['checkbox_label']) && !subscribe_reloaded_update_option('checkbox_label', $_POST['options']['checkbox_label'], 'text-no-encode')) {
        $faulty_fields = __('Checkbox label', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['subscribed_label']) && !subscribe_reloaded_update_option('subscribed_label', $_POST['options']['subscribed_label'], 'text-no-encode')) {
        $faulty_fields = __('Subscribed label', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['subscribed_waiting_label']) && !subscribe_reloaded_update_option('subscribed_waiting_label', $_POST['options']['subscribed_waiting_label'], 'text-no-encode')) {
        $faulty_fields = __('Awaiting label', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['author_label']) && !subscribe_reloaded_update_option('author_label', $_POST['options']['author_label'], 'text-no-encode')) {
        $faulty_fields = __('Author label', 'subscribe-reloaded') . ', ';
    }
    // Display an alert in the admin interface if something went wrong
    echo '<div class="updated fade"><p>';
    if (empty($faulty_fields)) {
        _e('Your settings have been successfully updated.', 'subscribe-reloaded');
    } else {
        _e('There was an error updating the following fields:', 'subscribe-reloaded');
        echo ' <strong>' . substr($faulty_fields, 0, -2) . '</strong>';
    }
    echo "</p></div>\n";
}
?>
<form action="admin.php?page=subscribe-to-comments-reloaded/options/index.php&subscribepanel=<?php 
echo $current_panel;
Пример #3
0
    if (isset($_POST['options']['notification_subject']) && !subscribe_reloaded_update_option('notification_subject', $_POST['options']['notification_subject'], 'text')) {
        $faulty_fields = __('Notification subject', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['notification_content']) && !subscribe_reloaded_update_option('notification_content', $_POST['options']['notification_content'], 'text')) {
        $faulty_fields = __('Notification message', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['double_check_subject']) && !subscribe_reloaded_update_option('double_check_subject', $_POST['options']['double_check_subject'], 'text')) {
        $faulty_fields = __('Double check subject', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['double_check_content']) && !subscribe_reloaded_update_option('double_check_content', $_POST['options']['double_check_content'], 'text')) {
        $faulty_fields = __('Double check message', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['management_subject']) && !subscribe_reloaded_update_option('management_subject', $_POST['options']['management_subject'], 'text')) {
        $faulty_fields = __('Management subject', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['management_content']) && !subscribe_reloaded_update_option('management_content', $_POST['options']['management_content'], 'text')) {
        $faulty_fields = __('Management message', 'subscribe-reloaded') . ', ';
    }
    // Display an alert in the admin interface if something went wrong
    echo '<div class="updated fade"><p>';
    if (empty($faulty_fields)) {
        _e('Your settings have been successfully updated.', 'subscribe-reloaded');
    } else {
        _e('There was an error updating the following fields:', 'subscribe-reloaded');
        echo ' <strong>' . substr($faulty_fields, 0, -2) . '</strong>';
    }
    echo "</p></div>\n";
}
wp_print_scripts('quicktags');
?>
<form action="admin.php?page=subscribe-to-comments-reloaded/options/index.php&subscribepanel=<?php 
Пример #4
0
    if (isset($_POST['options']['request_mgmt_link_thankyou']) && !subscribe_reloaded_update_option('request_mgmt_link_thankyou', $_POST['options']['request_mgmt_link_thankyou'], 'text')) {
        $faulty_fields = __('Request submitted', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['subscribe_without_commenting']) && !subscribe_reloaded_update_option('subscribe_without_commenting', $_POST['options']['subscribe_without_commenting'], 'text')) {
        $faulty_fields = __('Subscribe without commenting', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['subscription_confirmed']) && !subscribe_reloaded_update_option('subscription_confirmed', $_POST['options']['subscription_confirmed'], 'text')) {
        $faulty_fields = __('Subscription processed', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['subscription_confirmed_dci']) && !subscribe_reloaded_update_option('subscription_confirmed_dci', $_POST['options']['subscription_confirmed_dci'], 'text')) {
        $faulty_fields = __('Subscription processed (DCI)', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['author_text']) && !subscribe_reloaded_update_option('author_text', $_POST['options']['author_text'], 'text')) {
        $faulty_fields = __('Authors', 'subscribe-reloaded') . ', ';
    }
    if (isset($_POST['options']['user_text']) && !subscribe_reloaded_update_option('user_text', $_POST['options']['user_text'], 'text')) {
        $faulty_fields = __('Users', 'subscribe-reloaded') . ', ';
    }
    // Display an alert in the admin interface if something went wrong
    echo '<div class="updated fade"><p>';
    if (empty($faulty_fields)) {
        _e('Your settings have been successfully updated.', 'subscribe-reloaded');
    } else {
        _e('There was an error updating the following fields:', 'subscribe-reloaded');
        echo ' <strong>' . substr($faulty_fields, 0, -2) . '</strong>';
    }
    echo "</p></div>\n";
}
wp_print_scripts('quicktags');
$is_html_enabled = get_option('subscribe_reloaded_enable_html_emails', 'no') == 'yes';
?>
        if (isset($_POST['options']['htmlify_message_links']) && !subscribe_reloaded_update_option('htmlify_message_links', $_POST['options']['htmlify_message_links'], 'yesno')) {
            $faulty_fields = __('HTMLify Links in HTML emails', 'subscribe-reloaded') . ', ';
        }
        if (isset($_POST['options']['process_trackbacks']) && !subscribe_reloaded_update_option('process_trackbacks', $_POST['options']['process_trackbacks'], 'yesno')) {
            $faulty_fields = __('Send trackbacks', 'subscribe-reloaded') . ', ';
        }
        if (isset($_POST['options']['enable_admin_messages']) && !subscribe_reloaded_update_option('enable_admin_messages', $_POST['options']['enable_admin_messages'], 'yesno')) {
            $faulty_fields = __('Notify admin', 'subscribe-reloaded') . ', ';
        }
        if (isset($_POST['options']['admin_subscribe']) && !subscribe_reloaded_update_option('admin_subscribe', $_POST['options']['admin_subscribe'], 'yesno')) {
            $faulty_fields = __('Let admin subscribe', 'subscribe-reloaded') . ', ';
        }
        if (isset($_POST['options']['admin_bcc']) && !subscribe_reloaded_update_option('admin_bcc', $_POST['options']['admin_bcc'], 'yesno')) {
            $faulty_fields = __('BCC admin on Notifications', 'subscribe-reloaded') . ', ';
        }
        if (isset($_POST['options']['commentbox_place']) && !subscribe_reloaded_update_option('commentbox_place', $_POST['options']['commentbox_place'], 'yesno')) {
            $faulty_fields = __('StCR Subscription Box Position', 'subscribe-reloaded') . ', ';
        }
        // Display an alert in the admin interface if something went wrong
        echo '<div class="updated fade"><p>';
        if (empty($faulty_fields)) {
            _e('Your settings have been successfully updated.', 'subscribe-reloaded');
        } else {
            _e('There was an error updating the following fields:', 'subscribe-reloaded');
            echo ' <strong>' . substr($faulty_fields, 0, -2) . '</strong>';
        }
        echo "</p></div>\n";
    }
}
wp_print_scripts('quicktags');
?>