예제 #1
0
<select name="fnt_face" onChange="javascript:insertTag(document.post_form.msg_body, \'[FONT=\'+document.post_form.fnt_face.options[this.selectedIndex].value+\']\', \'[/FONT]\'); document.post_form.fnt_face.options[0].selected=true">
<option value="">Font</option>
<option value="Arial" style="font-family:Arial">Arial</option>
<option value="Times" style="font-family:Times">Times</option>
<option value="Courier" style="font-family:Courier">Courier</option>
<option value="Century" style="font-family:Century">Century</option>
</select>
</td></tr></table></td></tr>' : '';
$post_options = tmpl_post_options('private');
if ($FUD_OPT_2 & 32768) {
    $private = '1';
} else {
    $private = '&amp;private=1';
}
if ($PRIVATE_ATTACHMENTS > 0) {
    $file_attachments = draw_post_attachments(isset($attach_list) ? $attach_list : '', round($PRIVATE_ATTACH_SIZE / 1024), $PRIVATE_ATTACHMENTS, $attach_control_error, $private, $msg_id);
} else {
    $file_attachments = '';
}
$msg_track_check = $msg_track ? ' checked' : '';
$msg_show_sig_check = $msg_show_sig ? ' checked' : '';
if ($FUD_OPT_1 & 8192) {
    $msg_smiley_disabled_check = $msg_smiley_disabled ? ' checked' : '';
    $disable_smileys = '<tr><td><input type="checkbox" name="msg_smiley_disabled" value="Y"' . $msg_smiley_disabled_check . '></td><td class="GenText"><b>Disable smilies in this message</b></td></tr>';
} else {
    $disable_smileys = '';
}
if ($reply && ($mm = db_sab('SELECT p.*, u.sig, u.alias, u.users_opt, u.posted_msg_count, u.join_date, u.last_visit FROM phpgw_fud_pmsg p INNER JOIN phpgw_fud_users u ON p.ouser_id=u.id WHERE p.duser_id=' . _uid . ' AND p.id=' . $reply))) {
    fud_use('drawpmsg.inc');
    $dpmsg_prev_message = $dpmsg_next_message = '';
    $reference_msg = tmpl_drawpmsg($mm, $usr, true);
예제 #2
0
    $msg_subject = htmlspecialchars($msg_subject);
    char_fix($msg_subject);
}
char_fix($msg_body);
$pivate = '';
/* handle file attachments */
if ($perms & 256) {
    if ($frm->forum_opt & 32 && $MOD) {
        $frm->max_attach_size = (int) ini_get('upload_max_filesize');
        $t = str_replace($frm->max_attach_size, '', ini_get('upload_max_filesize'));
        if ($t == 'M' || $t == 'm') {
            $frm->max_attach_size *= 1024;
        }
        $frm->max_file_attachments = 100;
    }
    $file_attachments = draw_post_attachments(isset($attach_list) ? $attach_list : '', $frm->max_attach_size, $frm->max_file_attachments, $attach_control_error, '', $msg_id);
} else {
    $file_attachments = '';
}
if (_uid) {
    $msg_poster_notif_check = $msg_poster_notif ? ' checked' : '';
    $msg_show_sig_check = $msg_show_sig ? ' checked' : '';
    $reg_user_options = '<tr><td><input type="checkbox" name="msg_poster_notif" value="Y"' . $msg_poster_notif_check . '></td><td class="GenText"><b>Notifica del messaggio</b></td></tr>
<tr><td>&nbsp;</td><td><font class="SmallText">Segnala quando qualcuno risponde a questo messaggio.</font></td></tr>
<tr><td><input type="checkbox" name="msg_show_sig" value="Y"' . $msg_show_sig_check . '></td><td class="GenText"><b>Inserisci signature</b></td></tr>
<tr><td>&nbsp;</td><td><font class="SmallText">Inserisci la signature del mio profilo.</font></td></tr>
' . $mod_post_opts;
} else {
    $reg_user_options = '';
}
/* handle smilies */