| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | program/steps/settings/save_prefs.inc | |
| | | | | |
| | |
| | | 'spellcheck_ignore_caps' => isset($_POST['_spellcheck_ignore_caps']) ? true : false, |
| | | 'show_sig' => isset($_POST['_show_sig']) ? intval($_POST['_show_sig']) : 1, |
| | | 'reply_mode' => isset($_POST['_reply_mode']) ? intval($_POST['_reply_mode']) : 0, |
| | | 'sig_below' => isset($_POST['_sig_below']) ? true : false, |
| | | 'strip_existing_sig' => isset($_POST['_strip_existing_sig']), |
| | | 'sig_separator' => isset($_POST['_sig_separator']) ? true : false, |
| | | 'default_font' => rcube_utils::get_input_value('_default_font', rcube_utils::INPUT_POST), |
| | | 'default_font_size' => rcube_utils::get_input_value('_default_font_size', rcube_utils::INPUT_POST), |
| | | 'reply_all_mode' => intval($_POST['_reply_all_mode']), |
| | | 'forward_attachment' => !empty($_POST['_forward_attachment']), |
| | | 'compose_save_localstorage' => intval($_POST['_compose_save_localstorage']), |
| | | ); |
| | | |
| | | break; |
| | |
| | | if ($saved) |
| | | $OUTPUT->show_message('successfullysaved', 'confirmation'); |
| | | else |
| | | $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error'); |
| | | $OUTPUT->show_message($plugin['message'] ?: 'errorsaving', 'error'); |
| | | |
| | | // display the form again |
| | | $RCMAIL->overwrite_action('edit-prefs'); |