Exemplo n.º 1
0
    $text_s = apply_custom_replace($_POST['msg_subject']);
    if ($FUD_OPT_1 & 4096) {
        $text = tags_to_html($text, $FUD_OPT_1 & 16384);
    } else {
        if ($FUD_OPT_1 & 2048) {
            $text = nl2br(htmlspecialchars($text));
        }
    }
    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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u><br />' . $usr->sig . '' : '';
    $apply_spell_changes = $spell ? '<input type="submit" class="button" name="btn_spell" value="Apply Spelling Changes">&nbsp;' : '';
    $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\';">&nbsp;<input type="submit" tabindex="4" class="button" value="Preview Message" name="preview">&nbsp;' . $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 {
Exemplo n.º 2
0
            $avatar_arr['del'] = 0;
            $avatar_arr['leave'] = 1;
            $avatar_type = 'u';
        }
    }
    reverse_fmt($reg_alias);
} else {
    if (isset($_POST['prev_loaded'])) {
        /* import data from POST data */
        foreach ($_POST as $k => $v) {
            if (!strncmp($k, 'reg_', 4)) {
                ${$k} = htmlspecialchars($v);
            }
        }
        char_fix($reg_bio);
        char_fix($reg_sig);
        $b_year = $_POST['b_year'];
        $b_month = $_POST['b_month'];
        $b_day = $_POST['b_day'];
        if (isset($_POST['avatar_type'])) {
            $avatar_type = $_POST['avatar_type'];
        }
    }
}
if (empty($reg_time_zone)) {
    $reg_time_zone = $SERVER_TZ;
}
if (!$mod_id) {
    ses_update_status($usr->sid, 'Guarda il suo profilo', 0, 0);
}
$TITLE_EXTRA = ': Pagina di registrazione';
Exemplo n.º 3
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($frm->forum_opt, $perms);
$message_err = get_err('msg_body', 1);
$msg_body = isset($msg_body) ? htmlspecialchars(str_replace("\r", '', $msg_body)) : '';
if (!empty($msg_subject)) {
    $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 = '';
}