Ejemplo n.º 1
0
            foreach ($content_ids as $content_id => $remove) {
                if ($remove) {
                    $b->removeContent($content_id);
                }
            }
        } else {
            // @TODO assign error and report back to user which were not processed
        }
    }
}
if (!empty($_REQUEST['assign']) && @BitBase::verifyId($_REQUEST['to_board_id'])) {
    $b = new BitBoard($_REQUEST['to_board_id']);
    $b->load();
    if ($b->verifyUpdatePermission()) {
        foreach ($_REQUEST['assign'] as $content_id) {
            $b->addContent($content_id);
        }
    }
}
if (!empty($_REQUEST['integrity'])) {
    $board_id = $_REQUEST['integrity'];
    $b = new BitBoard($board_id);
    $b->load();
    if ($b->verifyUpdatePermission()) {
        $b->fixContentMap();
    }
}
$data = BitBoard::getAllMap();
$gBitSmarty->assignByRef('data', $data);
// Display the template
$gBitSystem->display('bitpackage:boards/board_assign.tpl', tra('Assign content to Board'), array('display_mode' => 'display'));