Exemplo n.º 1
0
    }
    $uent->sync_user();
    if (!$mod_id) {
        check_return($usr->returnto);
    } else {
        header('Location: adm/admuser.php?usr_id=' . $uent->id . '&' . _rsidl . '&act=nada');
        exit;
    }
}
/* populate form variables based on user's profile */
if (!isset($_POST['prev_loaded'])) {
    foreach ($uent as $k => $v) {
        ${'reg_' . $k} = htmlspecialchars($v);
    }
    reverse_fmt($reg_sig);
    $reg_sig = apply_reverse_replace($reg_sig);
    if ($FUD_OPT_1 & 262144) {
        $reg_sig = post_to_smiley($reg_sig);
    }
    if ($FUD_OPT_1 & 131072) {
        $reg_sig = html_to_tags($reg_sig);
    } else {
        if ($FUD_OPT_1 & 65536) {
            reverse_nl2br($reg_sig);
        }
    }
    if ($FUD_OPT_1 & 196608) {
        char_fix($reg_sig);
    }
    char_fix($reg_bio);
    if ($uent->bday) {
Exemplo n.º 2
0
             $msg_body = html_to_tags($msg_body);
         } else {
             if ($frm->forum_opt & 8) {
                 reverse_fmt($msg_body);
             }
         }
         $msg_body = apply_reverse_replace($msg_body);
     }
     $wa = '';
     if (strlen($_POST['msg_subject']) && empty($no_spell_subject)) {
         $text_s = htmlspecialchars($text_s);
         char_fix($text_s);
         $wa = tokenize_string($text_s);
         $text_s = spell_replace($wa, 'subject');
         reverse_fmt($text_s);
         $msg_subject = apply_reverse_replace($text_s);
     }
 }
 if (!empty($_POST['submitted']) && !isset($_POST['spell']) && !isset($_POST['preview'])) {
     $_POST['btn_submit'] = 1;
 }
 if (!($usr->users_opt & 1048576) && isset($_POST['btn_submit']) && $frm->forum_opt & 4 && (!isset($_POST['frm_passwd']) || $frm->post_passwd != $_POST['frm_passwd'])) {
     set_err('password', 'Incorrect password.');
 }
 /* submit processing */
 if (isset($_POST['btn_submit']) && !check_post_form()) {
     $msg_post = new fud_msg_edit();
     /* Process Message Data */
     $msg_post->poster_id = _uid;
     $msg_post->poll_id = $pl_id;
     $msg_post->subject = $msg_subject;
Exemplo n.º 3
0
function export_msg_data($m, &$msg_subject, &$msg_body, &$msg_icon, &$msg_smiley_disabled, &$msg_show_sig, &$msg_track, &$msg_to_list, $repl = 0)
{
    $msg_subject = $m->subject;
    $msg_body = read_pmsg_body($m->foff, $m->length);
    $msg_icon = $m->icon;
    $msg_smiley_disabled = $m->pmsg_opt & 2 ? '2' : '';
    $msg_show_sig = $m->pmsg_opt & 1 ? '1' : '';
    $msg_track = $m->pmsg_opt & 4 ? '4' : '';
    $msg_to_list = $m->to_list;
    reverse_fmt($msg_subject);
    /* we do not revert replacment for forward/quote */
    if ($repl) {
        $msg_subject = apply_reverse_replace($msg_subject);
        $msg_body = apply_reverse_replace($msg_body);
    }
    if (!$msg_smiley_disabled) {
        $msg_body = post_to_smiley($msg_body);
    }
    if ($GLOBALS['FUD_OPT_1'] & 4096) {
        $msg_body = html_to_tags($msg_body);
    } else {
        if ($GLOBALS['FUD_OPT_1'] & 2048) {
            reverse_fmt($msg_body);
            reverse_nl2br($msg_body);
        }
    }
}
Exemplo n.º 4
0
} else {
    $pl_smiley_disabled_chk = '';
}
$pl_submit = !$pl_id ? '<input type="submit" class="button" name="pl_submit" value="Crea sondaggio">' : '<input type="submit" class="button" name="pl_submit" value="Aggiorna sondaggio">';
/* this is only available on a created poll */
if ($pl_id) {
    if (isset($pl_option)) {
        $pl_option = post_to_smiley($pl_option);
        if ($frm->forum_opt & 16) {
            $pl_option = html_to_tags($pl_option);
        } else {
            if ($frm->forum_opt & 8) {
                reverse_nl2br($pl_option);
            }
        }
        $pl_option = apply_reverse_replace($pl_option);
    } else {
        $pl_option = '';
    }
    $pl_action = !isset($_GET['pl_optedit']) ? '<input type="submit" class="button" name="pl_add" onClick="javascript: return check_submission();" value="Aggiungi risposta">' : '<input type="hidden" name="pl_option_id" value="' . $pl_option_id . '">
<input type="submit" class="button" name="pl_upd" onClick="javascript: return check_submission();" value="Aggiorna risposta">';
    $poll_option_entry_data = '';
    if (!empty($poll_opts)) {
        foreach ($poll_opts as $k => $v) {
            $poll_option_entry_data .= '<tr><td class="GenText">' . $v . '</td><td nowrap>[<a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=poll&amp;frm_id=' . $frm_id . '&amp;' . _rsid . '&amp;pl_id=' . $pl_id . '&amp;pl_optedit=' . $k . '">Modifica</a>] [<a href="/egroupware/fudforum/3814588639/index.php?t=poll&amp;frm_id=' . $frm_id . '&amp;pl_id=' . $pl_id . '&amp;del_id=' . $k . '&amp;' . _rsid . '">Cancella</a>]</td></tr>';
        }
    }
    $poll_editor = '<table width="99%" border=0 cellspacing=2 cellpadding=0 class="dashed">
<tr><td class="GenText">Aggiungi risposta:</td><td align="right"><input type="text" name="pl_option" value="' . htmlspecialchars($pl_option) . '">
' . $pl_smiley_disabled_chk . '
<tr><td colspan=2 align=right>' . $pl_action . '</td></tr>