} } if ($FUD_OPT_1 & 6144) { char_fix($text); } if ($FUD_OPT_1 & 8192 && !$msg_smiley_disabled) { $text = smiley_to_post($text); } $text_s = htmlspecialchars($text_s); char_fix($text_s); $spell = $spell_check_button && isset($_POST['spell']); if ($spell && strlen($text)) { $text = check_data_spell($text, 'body', $usr->pspell_lang); } fud_wordwrap($text); $subj = $spell && !$no_spell_subject && $text_s ? check_data_spell($text_s, 'subject', $usr->pspell_lang) : $text_s; $signature = $FUD_OPT_1 & 32768 && $usr->sig && $msg_show_sig ? '<p><u> </u><br />' . $usr->sig . '' : ''; $apply_spell_changes = $spell ? '<input type="submit" class="button" name="btn_spell" value="Apply Spelling Changes"> ' : ''; $preview_message = '<div align="center"><table border="0" cellspacing="1" cellpadding="2" class="PreviewTable"> <tr><th colspan=2>Post Preview</th></tr> <tr><td class="RowStyleA"><font class="MsgSubText">' . $subj . '</font></td></tr> <tr><td class="RowStyleA"><font class="MsgBodyText">' . $text . $signature . '</font></td></tr> <tr><td align="left" class="RowStyleB">' . $apply_spell_changes . '<input type="submit" class="button" name="btn_submit" value="Send" tabindex="5" onClick="javascript: document.post_form.btn_action.value=\'send\';"> <input type="submit" tabindex="4" class="button" value="Preview Message" name="preview"> ' . $spell_check_button . '<input type="submit" class="button" name="btn_draft" value="Save Draft" onClick="javascript: document.post_form.btn_action.value=\'draft\';"></td></tr> </table></div><br />'; } else { $preview_message = ''; } $post_error = is_post_error() ? '<h4 align="center"><font class="ErrorText">You have an error</font></h4>' : ''; $to_err = get_err('msg_to_list'); $msg_subect_err = get_err('msg_subject'); $message_err = get_err('msg_body', 1);
} if ($frm->forum_opt & 24) { char_fix($text); } if ($perms & 16384 && !$msg_smiley_disabled) { $text = smiley_to_post($text); } $text_s = htmlspecialchars($text_s); char_fix($text_s); $spell = $spell_check_button && isset($_POST['spell']); if ($spell && $text) { $text = check_data_spell($text, 'body', $usr->pspell_lang); } fud_wordwrap($text); if ($spell && empty($no_spell_subject) && $text_s) { $subj = check_data_spell($text_s, 'subject', $usr->pspell_lang); } else { $subj = $text_s; } if ($FUD_OPT_1 & 32768 && $msg_show_sig) { if ($msg_id && $msg->poster_id && $msg->poster_id != _uid && !$reply_to) { $sig = q_singleval('SELECT sig FROM phpgw_fud_users WHERE id=' . $msg->poster_id); } else { $sig = $usr->sig; } $signature = $sig ? '<p><u> </u><br />' . $sig . '' : ''; } else { $signature = ''; } $apply_spell_changes = $spell ? '<input type="submit" class="button" name="btn_spell" value="Applica le modifiche"> ' : ''; $preview_message = '<div align="center">