function showInputForm () {
global $send_to, $send_to_cc, $reply_subj, $forward_subj, $body,
- $passed_body, $color, $use_signature, $signature, $editor_size,
- $attachments, $subject, $newmail, $use_javascript_addr_book,
- $send_to_bcc, $reply_id, $mailbox, $from_htmladdr_search,
- $location_of_buttons;
+ $passed_body, $color, $use_signature, $signature, $prefix_sig,
+ $editor_size, $attachments, $subject, $newmail,
+ $use_javascript_addr_book, $send_to_bcc, $reply_id, $mailbox,
+ $from_htmladdr_search, $location_of_buttons;
$subject = decodeHeader($subject);
$reply_subj = decodeHeader($reply_subj);
echo " <TEXTAREA NAME=body ROWS=20 COLS=\"$editor_size\" WRAP=HARD>";
echo htmlspecialchars($body);
if ($use_signature == true && $newmail == true && !isset($from_htmladdr_search)) {
- echo "\n\n-- \n" . htmlspecialchars($signature);
+ if ( $prefix_sig == true )
+ echo "\n\n-- \n" . htmlspecialchars($signature);
+ else
+ echo "\n\n" . htmlspecialchars($signature);
}
echo "</TEXTAREA><BR>\n";
echo " </TD>\n";
if (isset($email_address)) setPref($data_dir, $username, 'email_address', $email_address);
if (isset($reply_to)) setPref($data_dir, $username, 'reply_to', $reply_to);
setPref($data_dir, $username, 'use_signature', $usesignature);
+ setPref($data_dir, $username, 'prefix_sig', $prefixsig);
if (isset($signature_edit)) setSig($data_dir, $username, $signature_edit);
do_hook('options_personal_save');
</td><td>
<?php
if ($use_signature == true)
- echo '<input type=checkbox value="1" name=usesignature checked> ' . _("Use a signature") . "?<BR>";
- else {
- echo '<input type=checkbox value="1" name=usesignature> ';
- echo _("Use a signature?");
- echo '<BR>';
- }
+ echo '<input type=checkbox value="1" name=usesignature checked> ' . _("Use a signature?") . ' ';
+ else
+ echo '<input type=checkbox value="1" name=usesignature> ' . _("Use a signature?") . ' ';
+ if ( $prefix_sig == true )
+ echo '<input type="checkbox" value="1" name="prefixsig" checked>
+' . _( "Prefix signature with '--' ?" ) . '<BR>';
+ else
+ echo '<input type="checkbox" value="1" name="prefixsig"> ' . _( "
+Prefix signature with '--' ?" ) . '<BR>';
echo "\n<textarea name=\"signature_edit\" rows=\"5\" cols=\"50\">$signature_abs</textarea><br>";
?>
</td>