diff options
author | alecpl <alec@alec.pl> | 2009-11-02 08:31:29 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-11-02 08:31:29 +0000 |
commit | 50f56d2046a28e7d8ae48e84ddd32dd022d9cf8d (patch) | |
tree | 3395f43de3f34fdc584152e001713c4ca4a2d020 /program/steps/settings | |
parent | 5852de64a18f2c4d2964c8c7187541f19ce1bc5a (diff) |
- top posting (#1484272)
Diffstat (limited to 'program/steps/settings')
-rw-r--r-- | program/steps/settings/func.inc | 24 | ||||
-rw-r--r-- | program/steps/settings/save_prefs.inc | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 7bd30a3f4..e451d57d5 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -448,6 +448,30 @@ function rcmail_user_prefs($current=null) 'content' => $select_param_folding->show($config['mime_param_folding']), ); } + + if (!isset($no_override['top_posting'])) { + $field_id = 'rcmfd_top_posting'; + $input_topposting = new html_checkbox(array('name' => '_top_posting', 'id' => $field_id, 'value' => 1)); + + $blocks['main']['options']['top_posting'] = array( + 'title' => html::label($field_id, Q(rcube_label('top_posting'))), + 'content' => $input_topposting->show($config['top_posting']?1:0), + ); + } + + if (!isset($no_override['show_sig'])) { + $field_id = 'rcmfd_show_sig'; + $select_show_sig = new html_select(array('name' => '_show_sig', 'id' => $field_id)); + $select_show_sig->add(rcube_label('always'), 0); + $select_show_sig->add(rcube_label('never'), 1); + $select_show_sig->add(rcube_label('new_msg_only'), 2); + $select_show_sig->add(rcube_label('reply_forward_only'), 3); + + $blocks['main']['options']['show_sig'] = array( + 'title' => html::label($field_id, Q(rcube_label('auto_add_sig'))), + 'content' => $select_show_sig->show(intval($config['show_sig'])), + ); + } break; diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc index ddb1367c8..e38a695a4 100644 --- a/program/steps/settings/save_prefs.inc +++ b/program/steps/settings/save_prefs.inc @@ -62,6 +62,8 @@ switch ($CURR_SECTION) 'htmleditor' => isset($_POST['_htmleditor']) ? TRUE : FALSE, 'draft_autosave' => isset($_POST['_draft_autosave']) ? intval($_POST['_draft_autosave']) : 0, 'mime_param_folding' => isset($_POST['_mime_param_folding']) ? intval($_POST['_mime_param_folding']) : 0, + 'show_sig' => isset($_POST['_show_sig']) ? intval($_POST['_show_sig']) : 0, + 'top_posting' => isset($_POST['_top_posting']) ? TRUE : FALSE, ); break; |