* required setup */ require_once '../kernel/setup_inc.php'; // Is package installed and enabled $gBitSystem->verifyPackage('boards'); require_once BOARDS_PKG_PATH . 'lookup_inc.php'; // verify minimal edit permission level $gContent->verifyUpdatePermission(); if (!empty($_REQUEST['remove'])) { foreach ($_REQUEST['remove'] as $board_id => $content_ids) { $b = new BitBoard($board_id); $b->load(); if ($b->hasUpdatePermission()) { 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); } }