Exemplo n.º 1
0
        if ($FUD_OPT_1 & 8192 && !$msg_smiley_disabled) {
            $msg_body = post_to_smiley($text);
        }
        if ($FUD_OPT_1 & 4096) {
            $msg_body = html_to_tags($msg_body);
        } else {
            if ($FUD_OPT_1 & 2048) {
                reverse_fmt($msg_body);
            }
        }
        $msg_body = apply_reverse_replace($msg_body);
    }
    if ($text_s && !$no_spell_subject) {
        $text_s = htmlspecialchars($text_s);
        char_fix($text_s);
        $text_s = spell_replace(tokenize_string($text_s), 'subject');
        reverse_fmt($text_s);
        $msg_subject = apply_reverse_replace($text_s);
    }
}
ses_update_status($usr->sid, 'Using private messaging');
$tabs = '';
if (_uid) {
    $tablist = array('Settings' => 'register', 'Subscriptions' => 'subscribed', 'Referrals' => 'referals', 'Buddy List' => 'buddy_list', 'Ignore List' => 'ignore_list');
    if (isset($_POST['mod_id'])) {
        $mod_id_chk = $_POST['mod_id'];
    } else {
        if (isset($_GET['mod_id'])) {
            $mod_id_chk = $_GET['mod_id'];
        } else {
            $mod_id_chk = null;
Exemplo n.º 2
0
         }
         if ($frm->forum_opt & 16) {
             $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;