Esempio n. 1
0
 * Copyright (c) 2004 bitweaver Messageboards
 * All Rights Reserved. See below for details and a complete list of authors.
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
 * @package boards
 * @subpackage functions
 */
/**
 * required setup
 */
require_once '../kernel/setup_inc.php';
// Is package installed and enabled
$gBitSystem->verifyPackage('boards');
// if we're getting a migrate id then lets move on right away
if (@BitBase::verifyId($_REQUEST['migrate_board_id'])) {
    require_once BOARDS_PKG_PATH . 'BitBoard.php';
    if ($_REQUEST['b'] = BitBoard::lookupByMigrateBoard($_REQUEST['migrate_board_id'])) {
        bit_redirect(BOARDS_PKG_URL . 'index.php?b=' . $_REQUEST['b']);
    }
}
// Load up the board
require_once BOARDS_PKG_PATH . 'lookup_inc.php';
if (!$gContent->isValid()) {
    $gBitSystem->fatalError("The board you requested could not be found. <a href='" . BOARDS_PKG_URL . "'>View all boards</a>", NULL, NULL, HttpStatusCodes::HTTP_GONE);
}
// approve or reject ananymous comments
if (!empty($_REQUEST['action'])) {
    // Check edit perms on the group
    $gContent->verifyUpdatePermission();
    // Check the ticket
    $gBitUser->verifyTicket();
    // Load up the comment as a board post