} else {
            $sticky = 'N';
        }
    }
    if (isset($_POST['closed'])) {
        if ($_POST['closed'] == 'Y') {
            $closed = 'Y';
        } else {
            $closed = 'N';
        }
    }
}
if (isset($_POST['sig_text'])) {
    $sig_text = fix_html(emoticons_strip($_POST['sig_text']));
} else {
    $sig_text = user_get_sig($uid);
}
if (isset($_POST['thread_title']) && strlen(trim($_POST['thread_title'])) > 0) {
    $thread_title = trim($_POST['thread_title']);
}
if (isset($_POST['fid']) && is_numeric($_POST['fid'])) {
    $fid = $_POST['fid'];
} else {
    if (isset($_GET['fid']) && is_numeric($_GET['fid'])) {
        $fid = $_GET['fid'];
    } else {
        $fid = 1;
    }
}
$poll_questions_array = array();
if (isset($_POST['poll_questions'])) {
Beispiel #2
0
    html_guest_error();
}
if (!folder_get_by_type_allowed(FOLDER_ALLOW_NORMAL_THREAD)) {
    html_message_type_error();
}
$show_sigs = session::get_value('VIEW_SIGS') == 'N' ? false : true;
$uid = session::get_value('UID');
$page_prefs = session::get_post_page_prefs();
if (($high_interest = session::get_value('MARK_AS_OF_INT')) === false) {
    $high_interest = "N";
}
$valid = true;
$new_thread = false;
$t_to_uid = 0;
$t_to_user = '';
$t_sig = user_get_sig($uid);
if (isset($_POST['t_newthread']) && (isset($_POST['post']) || isset($_POST['preview']))) {
    $new_thread = true;
    if (isset($_POST['t_threadtitle']) && strlen(trim($_POST['t_threadtitle'])) > 0) {
        $t_threadtitle = trim($_POST['t_threadtitle']);
    } else {
        $error_msg_array[] = gettext("You must enter a title for the thread!");
        $valid = false;
    }
    if (isset($_POST['t_fid']) && is_numeric($_POST['t_fid'])) {
        if (folder_thread_type_allowed($_POST['t_fid'], FOLDER_ALLOW_NORMAL_THREAD)) {
            $t_fid = $_POST['t_fid'];
        } else {
            $error_msg_array[] = gettext("You cannot post this thread type in that folder!");
            $valid = false;
        }
Beispiel #3
0
    user_rel_update($_SESSION['UID'], $peer_uid, $peer_relationship, $peer_nickname);
}
$peer_user_display = format_user_name($user_peer['LOGON'], $user_peer['NICKNAME']);
html_draw_top(array('title' => sprintf(gettext('User Relationship - %s'), $peer_user_display), 'class' => 'window_title'));
$peer_relationship = user_get_relationship($_SESSION['UID'], $peer_uid);
$peer_nickname = user_get_peer_nickname($_SESSION['UID'], $peer_uid);
echo "<h1>", gettext("User Relationship"), html_style_image('separator'), "<a href=\"user_profile.php?webtag={$webtag}&amp;uid={$peer_uid}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags($peer_user_display, true), "</a></h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    html_display_error_array($error_msg_array, '600', 'left');
} else {
    if ($peer_perms & USER_PERM_FOLDER_MODERATE && !session::check_perm(USER_PERM_CAN_IGNORE_ADMIN, 0)) {
        html_display_warning_msg(gettext("You cannot ignore this user, as they are a moderator."), '600', 'left');
    }
}
if (isset($_POST['preview_signature'])) {
    if (($t_sig_content = user_get_sig($peer_uid)) !== false) {
        $preview_message['RECIPIENTS'] = array();
        $preview_from_user = user_get($peer_uid);
        $preview_message['FROM_LOGON'] = $preview_from_user['LOGON'];
        $preview_message['FROM_NICKNAME'] = $preview_from_user['NICKNAME'];
        $preview_message['FROM_UID'] = $preview_from_user['UID'];
        $preview_message['CONTENT'] = gettext("Signature Preview");
        $preview_message['CONTENT'] .= "<div class=\"sig\">" . fix_html($t_sig_content) . "</div>";
        $preview_message['CREATED'] = time();
        echo "  <br />\n";
        echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
        echo "    <tr>\n";
        echo "      <td align=\"left\">\n";
        echo "        <table class=\"box\" width=\"100%\">\n";
        echo "          <tr>\n";
        echo "            <td align=\"left\" class=\"posthead\">\n";
Beispiel #4
0
    light_html_guest_error();
}
if (!folder_get_by_type_allowed(FOLDER_ALLOW_NORMAL_THREAD)) {
    light_html_message_type_error();
}
$show_sigs = session::show_sigs();
$page_prefs = session::get_post_page_prefs();
$high_interest = isset($_SESSION['MARK_AS_OF_INT']) && $_SESSION['MARK_AS_OF_INT'] == 'Y' ? 'Y' : 'N';
$valid = true;
$new_thread = false;
$to_logon_array = array();
$reply_to_pid = null;
$reply_message = null;
$fid = null;
$threadtitle = null;
if (($sig = user_get_sig($_SESSION['UID'])) !== false) {
    $sig = fix_html($sig);
}
if (isset($_POST['newthread']) && (isset($_POST['post']) || isset($_POST['preview']))) {
    $new_thread = true;
    if (isset($_POST['threadtitle']) && strlen(trim($_POST['threadtitle'])) > 0) {
        $threadtitle = trim($_POST['threadtitle']);
    } else {
        $error_msg_array[] = gettext("You must enter a title for the thread!");
        $valid = false;
    }
    if (isset($_POST['fid']) && is_numeric($_POST['fid'])) {
        if (folder_thread_type_allowed($_POST['fid'], FOLDER_ALLOW_NORMAL_THREAD)) {
            $fid = $_POST['fid'];
        } else {
            $error_msg_array[] = gettext("You cannot post this thread type in that folder!");
            } else {
                html_draw_error(gettext("No user specified."));
            }
        }
    }
    if (isset($_POST['cancel'])) {
        header_redirect("admin_user.php?webtag={$webtag}&uid={$sig_uid}");
        exit;
    }
}
if (!session::check_perm(USER_PERM_ADMIN_TOOLS, 0) && $sig_uid != $_SESSION['UID']) {
    html_draw_error(gettext("You do not have permission to use this section."));
}
$valid = true;
$error_msg_array = array();
if (($sig_text = user_get_sig($sig_uid)) !== false) {
    $sig_text = fix_html($sig_text);
}
if (isset($_POST['save']) || isset($_POST['preview'])) {
    if (isset($_POST['sig_content']) && strlen(trim($_POST['sig_content'])) > 0) {
        $sig_text = trim($_POST['sig_content']);
    } else {
        $sig_text = "";
    }
    if (isset($_POST['sig_global']) && $_POST['sig_global'] == 'Y') {
        $t_sig_global = 'Y';
    } else {
        $t_sig_global = 'N';
    }
    if (session::check_perm(USER_PERM_ADMIN_TOOLS, 0) && $admin_edit === true) {
        $t_sig_global = 'N';