当前位置: 首页>>代码示例>>PHP>>正文


PHP html_draw_error函数代码示例

本文整理汇总了PHP中html_draw_error函数的典型用法代码示例。如果您正苦于以下问题:PHP html_draw_error函数的具体用法?PHP html_draw_error怎么用?PHP html_draw_error使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了html_draw_error函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: form_check_csrf_token

function form_check_csrf_token()
{
    if (!isset($_SERVER['REQUEST_METHOD']) || mb_strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') {
        return;
    }
    if (in_array(basename($_SERVER['PHP_SELF']), get_csrf_exempt_files()) || defined('BH_DISABLE_CSRF')) {
        return;
    }
    if (!($token_name = forum_get_setting('csrf_token_name'))) {
        html_draw_error(gettext('Sorry, you do not have access to this page.'));
    }
    if (!isset($_POST[$token_name]) || $_POST[$token_name] != session::get_csrf_token()) {
        unset($_POST[$token_name]);
        session::refresh_csrf_token();
        html_draw_error(gettext('Sorry, you do not have access to this page.'));
    }
    unset($_POST[$token_name]);
}
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:18,代码来源:form.inc.php

示例2: html_draw_error

$logon = null;
if (isset($_GET['uid']) && is_numeric($_GET['uid'])) {
    $uid = $_GET['uid'];
    if (!($logon = user_get_logon($uid))) {
        html_draw_error(gettext("Unknown user"));
    }
} else {
    if (isset($_GET['logon']) && strlen(trim($_GET['logon'])) > 0) {
        $logon = trim($_GET['logon']);
        if (($user_array = user_get_by_logon($logon)) !== false) {
            $uid = $user_array['UID'];
        }
    }
}
if (!isset($uid)) {
    html_draw_error(gettext("No user specified."));
}
// Get the Profile Sections.
$profile_sections = profile_sections_get();
// Get the user's profile data.
$user_profile = user_get_profile($uid);
// User relationship.
$peer_relationship = user_get_relationship($uid, $_SESSION['UID']);
// Popup title.
$page_title = format_user_name($user_profile['LOGON'], $user_profile['NICKNAME']);
html_draw_top(array('title' => $page_title, 'js' => array('js/user_profile.js'), 'base_target' => '_blank', 'pm_popup_disabled' => true, 'class' => 'window_title'));
echo "<div align=\"center\">\n";
echo "  <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "    <tr>\n";
echo "      <td align=\"left\">\n";
echo "        <table class=\"box\" width=\"100%\">\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:user_profile.php

示例3: html_draw_error

        html_draw_error(gettext("You must provide a link ID!"));
    }
}
if (isset($_POST['parent_fid']) && is_numeric($_POST['parent_fid'])) {
    $parent_fid = $_POST['parent_fid'];
} else {
    if (isset($_GET['parent_fid']) && is_numeric($_GET['parent_fid'])) {
        $parent_fid = $_GET['parent_fid'];
    } else {
        $parent_fid = 1;
    }
}
$creator_uid = links_get_creator_uid($lid);
$user_perm_links_moderate = session::check_perm(USER_PERM_LINKS_MODERATE, 0);
if (!($link = links_get_single($lid, !$user_perm_links_moderate))) {
    html_draw_error(gettext("Invalid link ID!"));
}
if (isset($_POST['cancel'])) {
    header_redirect("links.php?webtag={$webtag}");
    exit;
}
if (session::logged_in()) {
    $valid = true;
    if (isset($_POST['addvote'])) {
        if (isset($_POST['vote']) && is_numeric($_POST['vote'])) {
            links_vote($lid, $_POST['vote'], $_SESSION['UID']);
            $success_msg = gettext("Your vote has been recorded");
        } else {
            $error_msg_array[] = gettext("You must choose a rating!");
            $valid = false;
        }
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:links_detail.php

示例4: html_guest_error

require_once BH_INCLUDE_PATH . 'logon.inc.php';
require_once BH_INCLUDE_PATH . 'mods_list.inc.php';
require_once BH_INCLUDE_PATH . 'session.inc.php';
require_once BH_INCLUDE_PATH . 'threads.inc.php';
require_once BH_INCLUDE_PATH . 'word_filter.inc.php';
// Check we're logged in correctly
if (!session::logged_in()) {
    html_guest_error();
}
if (isset($_GET['fid']) && is_numeric($_GET['fid'])) {
    $fid = $_GET['fid'];
} else {
    if (isset($_POST['fid']) && is_numeric($_POST['fid'])) {
        $fid = $_POST['fid'];
    } else {
        html_draw_error(gettext("Cannot display folder moderators"));
    }
}
$folder_title = folder_get_title($fid);
html_draw_top(sprintf('title=%s', sprintf(gettext("Moderator list - %s"), $folder_title)), 'pm_popup_disabled', 'class=window_title');
echo "<div align=\"center\">\n";
echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"550\">\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";
echo "              <table class=\"posthead\" width=\"100%\">\n";
echo "                <tr>\n";
echo "                  <td align=\"left\" class=\"subhead\" colspan=\"1\">", gettext("Moderator list"), " - ", $folder_title, "</td>\n";
echo "                </tr>\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:mods_list.php

示例5: form_submit

    echo "                      </tr>\n";
    echo "                    </table>\n";
    echo "                  </td>\n";
    echo "                </tr>\n";
    echo "              </table>\n";
    echo "            </td>\n";
    echo "          </tr>\n";
    echo "          <tr>\n";
    echo "            <td align=\"left\">&nbsp;</td>\n";
    echo "          </tr>\n";
    if ($admin_edit === true) {
        echo "          <tr>\n";
        echo "            <td align=\"center\">", form_submit("save", gettext("Save")), "&nbsp;", form_submit("cancel", gettext("Cancel")), "</td>\n";
        echo "          </tr>\n";
    } else {
        echo "          <tr>\n";
        echo "            <td align=\"center\">", form_submit("save", gettext("Save")), "</td>\n";
        echo "          </tr>\n";
    }
    echo "        </table>\n";
    echo "      </td>\n";
    echo "    </tr>\n";
    echo "  </table>\n";
    echo "</form>\n";
    if ($admin_edit === true) {
        echo "</div>\n";
    }
    html_draw_bottom();
} else {
    html_draw_error(gettext("The forum owner has not set up Profiles."));
}
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:edit_profile.php

示例6: html_display_warning_msg

    html_display_warning_msg(sprintf('%s<p>%s</p>%s', gettext("<b>All</b> matches against the whole text so filtering mom to mum will also change moment to mument."), gettext("<b>Whole Word</b> matches against whole words only so filtering mom to mum will NOT change moment to mument."), gettext("<b>PREG</b> allows you to use Perl Regular Expressions to match text.")), '600', 'left');
    echo "</form>\n";
    html_draw_bottom();
} else {
    if (isset($_POST['filter_id']) || isset($_GET['filter_id'])) {
        if (isset($_POST['filter_id']) && is_numeric($_POST['filter_id'])) {
            $filter_id = $_POST['filter_id'];
        } else {
            if (isset($_GET['filter_id']) && is_numeric($_GET['filter_id'])) {
                $filter_id = $_GET['filter_id'];
            } else {
                html_draw_error(gettext("You must specify a filter ID"));
            }
        }
        if (!($word_filter_array = user_get_word_filter($filter_id))) {
            html_draw_error(gettext("Invalid Filter ID"));
            exit;
        }
        html_draw_top(sprintf('title=%s', gettext("My Controls - Edit Word Filter")), 'class=window_title');
        echo "<h1>", gettext("Edit Word Filter"), "</h1>\n";
        if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
            html_display_error_array($error_msg_array, '600', 'left');
        }
        echo "<br />\n";
        echo "<form accept-charset=\"utf-8\" name=\"startpage\" method=\"post\" action=\"edit_wordfilter.php\">\n";
        echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
        echo "  ", form_input_hidden('filter_id', htmlentities_array($filter_id)), "\n";
        echo "  ", form_input_hidden("delete_filters[{$filter_id}]", 'Y'), "\n";
        echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
        echo "    <tr>\n";
        echo "      <td align=\"left\">\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:edit_wordfilter.php

示例7: form_submit

     echo "    </tr>\n";
     echo "    <tr>\n";
     echo "      <td align=\"left\">&nbsp;</td>\n";
     echo "    </tr>\n";
     echo "    <tr>\n";
     echo "      <td align=\"center\">", form_submit("user_alias_submit", gettext("Update")), "&nbsp;", form_submit("cancel", gettext("Back")), "</td>\n";
     echo "    </tr>\n";
     echo "  </table>\n";
     echo "</form>\n";
     echo "</div>\n";
     html_draw_bottom();
     exit;
 } else {
     if ($action == 'delete_user') {
         if (!session::check_perm(USER_PERM_ADMIN_TOOLS, 0, 0)) {
             html_draw_error(gettext("You do not have permission to use this section."), 'admin_user.php', 'get', array('back' => gettext("Back")), array('uid' => $uid));
         }
         html_draw_top("title={$page_title}", 'class=window_title');
         echo "<h1>{$page_title}</h1>\n";
         echo "<br />\n";
         echo "<div align=\"center\">\n";
         echo "<form accept-charset=\"utf-8\" name=\"admin_user_form\" action=\"admin_user.php\" method=\"post\">\n";
         echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
         echo "  ", form_input_hidden("uid", htmlentities_array($uid)), "\n";
         echo "  ", form_input_hidden("action", htmlentities_array($action)), "\n";
         echo "  ", form_input_hidden("ret", htmlentities_array("admin_user.php?webtag={$webtag}&uid={$uid}")), "\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";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:admin_user.php

示例8: foreach

    }
}
if (isset($_POST['remove'])) {
    if (isset($_POST['remove_user']) && is_array($_POST['remove_user'])) {
        foreach ($_POST['remove_user'] as $uid) {
            if (perm_user_in_group($uid, $gid)) {
                perm_remove_user_from_group($uid, $gid);
                if (($user_logon = user_get_logon($uid)) && ($group_name = perm_get_group_name($gid))) {
                    admin_add_log_entry(REMOVE_USER_FROM_GROUP, array($user_logon, $group_name));
                }
            }
        }
    }
}
if (!($group = perm_get_group($gid))) {
    html_draw_error(gettext("Supplied GID is not a user group"), 'admin_user_groups.php', 'get', array('back' => gettext("Back")));
}
html_draw_top(array('title' => sprintf(gettext('Admin - Manage User Groups - %s - Add/Remove Users'), $group['GROUP_NAME']), 'class' => 'window_title', 'main_css' => 'admin.css'));
$group_users_array = perm_group_get_users($gid, $start_main);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage User Groups"), html_style_image('separator'), "{$group['GROUP_NAME']}", html_style_image('separator'), "", gettext("Add/Remove Users"), "</h1>\n";
if (isset($_GET['added'])) {
    html_display_success_msg(gettext("Successfully added group. Add users to this group by searching for them below."), '800', 'center');
} else {
    if (sizeof($group_users_array['user_array']) < 1) {
        html_display_warning_msg(gettext("There are no users in this group. Add users to this group by searching for them below."), '800', 'center');
    }
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"f_folders\" action=\"admin_user_groups_edit_users.php\" method=\"post\">\n";
echo "  ", form_csrf_token_field(), "\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_user_groups_edit_users.php

示例9: html_draw_error

// If attachments are disabled then no need to go any further.
if (forum_get_setting('attachments_enabled', 'N')) {
    html_draw_error(gettext("Attachments have been disabled by the forum owner."));
}
// If the attachments directory is undefined we can't go any further
if (!($attachment_dir = attachments_check_dir())) {
    html_draw_error(gettext("Attachments have been disabled by the forum owner."));
}
// If no AID we must stop.
if (isset($_GET['aid']) && is_md5($_GET['aid'])) {
    $aid = $_GET['aid'];
} else {
    if (isset($_POST['aid']) && is_md5($_POST['aid'])) {
        $aid = $_POST['aid'];
    } else {
        html_draw_error(gettext("AID not specified."));
    }
}
// User's UID
$uid = session::get_value('UID');
// Maximum attachment space
$max_attachment_space = attachments_get_max_space();
// Get user's free attachment space.
$users_free_space = attachments_get_free_space($uid, $aid);
// Get the array of allowed attachment mime-types
$attachment_mime_types = attachments_get_mime_types();
// Accumlative attachment file size.
$total_attachment_size = 0;
// Check that $attachment_dir does not have a slash on the end of it.
if (mb_substr($attachment_dir, -1) == '/') {
    $attachment_dir = mb_substr($attachment_dir, 0, -1);
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:attachments.php

示例10: html_draw_bottom

    echo "  </form>\n";
    echo "</div>\n";
    html_draw_bottom();
} else {
    if (isset($_POST['lid']) || isset($_GET['lid'])) {
        if (isset($_POST['lid']) && is_numeric($_POST['lid'])) {
            $lid = $_POST['lid'];
        } else {
            if (isset($_GET['lid']) && is_numeric($_GET['lid'])) {
                $lid = $_GET['lid'];
            } else {
                html_draw_error(gettext("Invalid link id or link not found"), 'admin_forum_links.php', 'get', array('back' => gettext("Back")));
            }
        }
        if (!($forum_link = forum_links_get_link($lid))) {
            html_draw_error(gettext("Invalid link id or link not found"), 'admin_forum_links.php', 'get', array('back' => gettext("Back")));
        }
        html_draw_top(array('title' => sprintf(gettext('Admin - Forum Links - Edit Link - %s'), $forum_link['TITLE']), 'class' => 'window_title', 'main_css' => 'admin.css'));
        echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Forum Links"), html_style_image('separator'), gettext("Edit Link"), html_style_image('separator'), word_filter_add_ob_tags($forum_link['TITLE'], true), "</h1>\n";
        if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
            html_display_error_array($error_msg_array, '700', 'center');
        }
        echo "<br />\n";
        echo "<div align=\"center\">\n";
        echo "  <form accept-charset=\"utf-8\" name=\"thread_options\" action=\"admin_forum_links.php\" method=\"post\" target=\"_self\">\n";
        echo "  ", form_csrf_token_field(), "\n";
        echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
        echo "  ", form_input_hidden('lid', htmlentities_array($lid)), "\n";
        echo "  ", form_input_hidden("t_delete[{$lid}]", "Y"), "\n";
        echo "  ", form_input_hidden('page', htmlentities_array($page)), "\n";
        echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"700\">\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_forum_links.php

示例11: user_get_prefs

}
// Load the user prefs
$user_prefs = user_get_prefs($_SESSION['UID']);
// Get the fontsize parameter
$fontsize = isset($_GET['fontsize']) ? $_GET['fontsize'] : null;
// Calculate the new font size.
switch ($fontsize) {
    case 'smaller':
        $user_prefs = array('FONT_SIZE' => $user_prefs['FONT_SIZE'] - 1);
        break;
    case 'larger':
        $user_prefs = array('FONT_SIZE' => $user_prefs['FONT_SIZE'] + 1);
        break;
    default:
        $user_prefs = array('FONT_SIZE' => $user_prefs['FONT_SIZE']);
        break;
}
// Check the font size is not lower than 5
if ($user_prefs['FONT_SIZE'] < 5) {
    $user_prefs['FONT_SIZE'] = 5;
}
// Check the font size is not greater than 15
if ($user_prefs['FONT_SIZE'] > 15) {
    $user_prefs['FONT_SIZE'] = 15;
}
// Update the user prefs.
if (!user_update_prefs($_SESSION['UID'], $user_prefs)) {
    html_draw_error(gettext("Your user preferences could not be updated. Please try again later."));
}
// Redirect back to the messages.
header_redirect("messages.php?webtag={$webtag}&msg={$msg}&font_resize=1");
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:user_font.php

示例12: html_draw_error

            if (count($edit_message) > 0) {
                if ($edit_message['CONTENT'] = message_get_content($tid, $pid)) {
                    if ((forum_get_setting('allow_post_editing', 'N') || $uid != $edit_message['FROM_UID'] && !(perm_get_user_permissions($edit_message['FROM_UID']) & USER_PERM_PILLORIED) || session::check_perm(USER_PERM_PILLORIED, 0) || $post_edit_time > 0 && time() - $edit_message['CREATED'] >= $post_edit_time * HOUR_IN_SECONDS) && !session::check_perm(USER_PERM_FOLDER_MODERATE, $t_fid)) {
                        html_draw_error(gettext("You are not permitted to edit this message."), 'discussion.php', 'get', array('back' => gettext("Back")), array('msg' => $msg));
                    }
                    if (forum_get_setting('require_post_approval', 'Y') && isset($edit_message['APPROVED']) && $edit_message['APPROVED'] == 0 && !session::check_perm(USER_PERM_FOLDER_MODERATE, $t_fid)) {
                        html_draw_error(gettext("You are not permitted to edit this message."), 'discussion.php', 'get', array('back' => gettext("Back")), array('msg' => $msg));
                    }
                    $parsed_message = new MessageTextParse($edit_message['CONTENT']);
                    $t_content = $parsed_message->getMessage();
                    $t_sig = $parsed_message->getSig();
                } else {
                    html_draw_error(sprintf(gettext("Message %s was not found"), $msg), 'discussion.php', 'get', array('back' => gettext("Back")), array('msg' => $msg));
                }
            } else {
                html_draw_error(sprintf(gettext("Message %s was not found"), $msg), 'discussion.php', 'get', array('back' => gettext("Back")), array('msg' => $msg));
            }
        }
    }
}
$page_title = sprintf(gettext("Edit message %s"), $msg);
html_draw_top("title={$page_title}", "resize_width=785", "basetarget=_blank", "attachments.js", "dictionary.js", "emoticons.js", "post.js", 'class=window_title');
echo "<h1>{$page_title}</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    html_display_error_array($error_msg_array, '785', 'left');
}
echo "<br /><form accept-charset=\"utf-8\" name=\"f_post\" action=\"edit.php\" method=\"post\" target=\"_self\">\n";
echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo "  ", form_input_hidden('msg', htmlentities_array($msg)), "\n";
echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"785\" class=\"max_width\">\n";
echo "    <tr>\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:edit.php

示例13: html_draw_error

require_once 'boot.php';
// Includes required by this page.
require_once BH_INCLUDE_PATH . 'constants.inc.php';
require_once BH_INCLUDE_PATH . 'form.inc.php';
require_once BH_INCLUDE_PATH . 'format.inc.php';
require_once BH_INCLUDE_PATH . 'header.inc.php';
require_once BH_INCLUDE_PATH . 'html.inc.php';
require_once BH_INCLUDE_PATH . 'lang.inc.php';
require_once BH_INCLUDE_PATH . 'links.inc.php';
require_once BH_INCLUDE_PATH . 'logon.inc.php';
require_once BH_INCLUDE_PATH . 'perm.inc.php';
require_once BH_INCLUDE_PATH . 'session.inc.php';
require_once BH_INCLUDE_PATH . 'word_filter.inc.php';
// Check links section is enabled
if (!forum_get_setting('show_links', 'Y')) {
    html_draw_error(gettext("You may not access this section."));
}
$folders = links_folders_get(!session::check_perm(USER_PERM_LINKS_MODERATE, 0));
if (isset($_GET['fid']) && isset($folders[$_GET['fid']])) {
    $fid = $_GET['fid'];
} else {
    if (is_array($folders)) {
        list($fid) = array_keys($folders);
    } else {
        links_create_top_folder(gettext("Top Level"));
        header_redirect("links.php?webtag={$webtag}&fid=1");
    }
}
if (isset($_GET['action'])) {
    if (session::check_perm(USER_PERM_LINKS_MODERATE, 0) && $_GET['action'] == "folderhide") {
        links_folder_change_visibility($fid, false);
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:links.php

示例14: html_draw_error

    } else {
        html_draw_error(gettext("You must specify type of search to perform"));
    }
}
// Check the multi selection with the type
if ($type == SEARCH_THREAD) {
    $multi = 'N';
}
// Form Object ID
if (isset($_POST['obj_id']) && strlen(trim($_POST['obj_id'])) > 0) {
    $obj_id = trim($_POST['obj_id']);
} else {
    if (isset($_GET['obj_id']) && strlen(trim($_GET['obj_id'])) > 0) {
        $obj_id = trim($_GET['obj_id']);
    } else {
        html_draw_error(gettext("No form object specified for return text"));
    }
}
// Current selection
if (isset($_POST['selected']) && is_array($_POST['selected'])) {
    $selected_array = array_unique($_POST['selected']);
} else {
    if (isset($_GET['selected']) && strlen(trim($_GET['selected'])) > 0) {
        $selected_array = array_unique(preg_split('/,\\s*/u', trim($_GET['selected'], ', ')));
    } else {
        $selected_array = array();
    }
}
// Make sure the selected_array is not greater than maxmium
if ($type == SEARCH_LOGON && $multi === 'Y') {
    $selected_array = array_splice($selected_array, 0, 10);
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:search_popup.php

示例15: list

        list($thread_info, $folder_order, $thread_count) = threads_get_sticky($uid, $folder, $page);
        break;
    case MOST_UNREAD_POSTS:
        list($thread_info, $folder_order, $thread_count) = threads_get_longest_unread($uid, $folder, $page);
        break;
    case DELETED_THREADS:
        list($thread_info, $folder_order, $thread_count) = threads_get_deleted($uid, $folder, $page);
        break;
    default:
        list($thread_info, $folder_order, $thread_count) = threads_get_all($uid, $folder, $page);
        break;
}
// Now, the actual bit that displays the threads...
// Get folder FIDs and titles
if (!($folder_info = threads_get_folders())) {
    html_draw_error(gettext("There are no folders available."));
}
// Get total number of messages for each folder
$folder_msgs = threads_get_folder_msgs();
// Check that the folder order is a valid array.
if (!is_array($folder_order)) {
    $folder_order = array();
}
// Check the folder display order.
if (session::get_value('THREADS_BY_FOLDER') == 'Y') {
    $folder_order = array_keys($folder_info);
}
// Check for a message to display and re-order the thread list.
if (isset($_REQUEST['msg']) && validate_msg($_REQUEST['msg'])) {
    list($selected_tid) = explode('.', $_REQUEST['msg']);
    if ($thread = thread_get($selected_tid)) {
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:thread_list.php


注:本文中的html_draw_error函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。