my ($is_html, $is_ubb);
if ($vars_pm{html} eq 'on') {
$is_html = "$vars_wordlets{html_is_on}";
} else {
$is_html = "$vars_wordlets{html_is_off}";
}
if ($vars_pm{ubb_code} ne 'off') {
$is_ubb = "$vars_wordlets{ubbcode_is_on}";
} else {
$is_ubb = "$vars_wordlets{ubbcode_is_off}";
}
my $preview_button = (
$vars_display{PreviewPost} ne "no"
? qq! <input type="button" name="preview" value="$vars_wordlets{preview_post}" onclick="Preview()" />!
: ""
);
my $spellcheck_button = (
$vars_modifications{spellcheck_enable} ne "no"
? qq( <input type="button" name="spellcheck" value="$vars_wordlets_mods{spell_check}" onclick="window.open('http://www.spellcheck.net/cgi-bin/spell.exe?action=checkpg&string='+escape(document.replier.message.value), 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=$vars_modifications{spellcheck_width},height=$vars_modifications{spellcheck_height}');" />)
: ""
);
my $quickreply = qq|<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi">
<input type="hidden" name="ubb" value="submit_pm_reply" />
<input type="hidden" id="d" name="d" value="$in{d}" />
<input type="hidden" id="t" name="t" value="$in{t}" />
$TBT
<tr class="tdheader">
<td colspan="2">
<b>Quick Reply</b>
</td></tr>
<tr class="lighttable">
<td width="100%"><table width="100%"><tr>
<td valign="top" width="18%"><b>Message:</b>
<font class="visited small">$is_html
<a href="$ULTIMATEBB?ubb=ubb_code_page" target="_blank">$is_ubb</a>
</font>
<input type="checkbox" name="Signature" id="Signature" value="yes" checked="checked" />
<font class="small"> Show Signature
<input type="checkbox" id="disable_smilies" name="disable_smilies" value="yes" /> Disable Smilies
<input type="checkbox" id="close_pm" name="close_pm" value="yes" /> Close PM</font>
</td>
<td>
<textarea name="message" rows="10" cols="50" wrap="virtual"></textarea>
<input type="submit" name="submit" value="Submit Reply" /> $preview_button $spellcheck_button
</td></tr></table></td></tr>$TBB
</form>
| if $pm_topic_data{close} ne 'yes' && exists($pm_user_index{$thingy}) && !exists($pm_user_index_sent{$thingy});