Ejemplo n.º 1
0
<option value="burlywood" style="color:burlywood">Burly Wood</option>
<option value="sandybrown" style="color:sandybrown">Sandy Brown</option>
<option value="sienna" style="color:sienna">Sienna</option>
<option value="chocolate" style="color:chocolate">Chocolate</option>
<option value="teal" style="color:teal">Teal</option>
<option value="silver" style="color:silver">Silver</option>
</select>
<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>';
Ejemplo n.º 2
0
                }
                $avatar = '<tr valign="top"><td class="RowStyleC" colspan=2>L&#39;avatar personalizzato non apparirà fino a quando non sarà approvato dall&#39;amministratore del forum.<br><font class="SmallText">L&#39;immagine dell&#39;avatar non dovrebbe essere più grande di <b>' . $GLOBALS['CUSTOM_AVATAR_MAX_DIM'] . ' pixel</b> e deve essere in formato <b>jpg</b>, <b>gif</b> o <b>png</b>.</font></td></tr>
<tr valign="top"><td class="RowStyleA">URL dell&#39;avatar personalizzato: ' . $avatar_err . '</td><td class="RowStyleA"><input type="text" value="' . $reg_avatar_loc . '" name="reg_avatar_loc"></td></tr>';
            } else {
                if ($avatar_type == 'u') {
                    $avatar_tmp = $avatar_arr ? base64_encode($avatar_arr['file'] . "\n" . $avatar_arr['del'] . "\n" . $avatar_arr['leave']) : '';
                    $buttons = !empty($avatar_arr['file']) && empty($avatar_arr['del']) ? '&nbsp;<input type="submit" class="button" name="btn_detach" value="Cancella">' : '<input type="file" name="avatar_upload"> <input type="submit" class="button" name="btn_upload" value="Anteprima">';
                    $avatar = '<tr valign="top"><td class="RowStyleC" colspan=2>L&#39;avatar personalizzato non apparirà fino a quando non sarà approvato dall&#39;amministratore del forum.<br><font class="SmallText">L&#39;immagine dell&#39;avatar non dovrebbe essere più grande di <b>' . $GLOBALS['CUSTOM_AVATAR_MAX_DIM'] . ' pixel</b> e deve essere in formato <b>jpg</b>, <b>gif</b> o <b>png</b>.</font></td></tr>
<tr valign="top"><td class="RowStyleA">File dell&#39;avatar personalizzato: ' . $avatar_err . '</td><td class="RowStyleA"><table border=0 cellspacing=0 cellpadding=0><tr><td>' . $custom_avatar_preview . '</td><td>' . $buttons . '</td></tr></table></td></tr> 
<input type="hidden" name="avatar_tmp" value="' . $avatar_tmp . '">';
                }
            }
        }
    }
}
$post_options = tmpl_post_options('sig');
$theme_select = create_theme_select('reg_theme', $reg_theme);
$day_select = tmpl_draw_select_opt("\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31", "\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31", $b_day, '', '');
$month_select = tmpl_draw_select_opt("\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12", "\nGennaio\nFebbraio\nMarzo\nAprile\nMaggio\nGiugno\nLuglio\nAgosto\nSettembre\nOttobre\nNovembre\nDicembre", $b_month, '', '');
$gender_select = tmpl_draw_select_opt("512\n1024\n0", "NON SPECIFICATO\nMaschio\nFemmina", $uent->users_opt & 512 ? 512 : $uent->users_opt & 1024, '', '');
$mppg_select = tmpl_draw_select_opt("0\n5\n10\n20\n30\n40", "Usa le impostazioni standard del forum\n5\n10\n20\n30\n40", $reg_posts_ppg, '', '');
$view_select = tmpl_draw_select_opt("384\n128" . ($FUD_OPT_2 & 512 ? "\n256\n0" : ''), "Vista piatta\nFlat thread listing/Tree message listing" . ($FUD_OPT_2 & 512 ? "\nTree thread listing/Flat message listing\nVista ad albero" : ''), $uent->users_opt & (128 | 256), '', '');
$timezone_select = tmpl_draw_select_opt($tz_values, $tz_names, $reg_time_zone, '', '');
$notification_select = tmpl_draw_select_opt("4\n0", "Email\nICQ", $uent->users_opt & 4, '', '');
$ignore_admin_radio = tmpl_draw_radio_opt('reg_ignore_admin', "8\n0", "Sì\nNo", $uent->users_opt & 8, '', '', '&nbsp;&nbsp;');
$invisible_mode_radio = tmpl_draw_radio_opt('reg_invisible_mode', "32768\n0", "Sì\nNo", $uent->users_opt & 32768, '', '', '&nbsp;&nbsp;');
$show_email_radio = tmpl_draw_radio_opt('reg_display_email', "1\n0", "Sì\nNo", $uent->users_opt & 1, '', '', '&nbsp;&nbsp;');
$notify_default_radio = tmpl_draw_radio_opt('reg_notify', "2\n0", "Sì\nNo", $uent->users_opt & 2, '', '', '&nbsp;&nbsp;');
$pm_notify_default_radio = tmpl_draw_radio_opt('reg_pm_notify', "64\n0", "Sì\nNo", $uent->users_opt & 64, '', '', '&nbsp;&nbsp;');
$accept_user_email = tmpl_draw_radio_opt('reg_email_messages', "16\n0", "Sì\nNo", $uent->users_opt & 16, '', '', '&nbsp;&nbsp;');
$accept_pm = tmpl_draw_radio_opt('reg_pm_messages', "32\n0", "Sì\nNo", $uent->users_opt & 32, '', '', '&nbsp;&nbsp;');
Ejemplo n.º 3
0
<option value="burlywood" style="color:burlywood">Burly Wood</option>
<option value="sandybrown" style="color:sandybrown">Sandy Brown</option>
<option value="sienna" style="color:sienna">Sienna</option>
<option value="chocolate" style="color:chocolate">Chocolate</option>
<option value="teal" style="color:teal">Teal</option>
<option value="silver" style="color:silver">Silver</option>
</select>
<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;