Ejemplo n.º 1
0
 function getAllMap()
 {
     $b = new BitBoard();
     $listHash = array();
     $l = $b->getList($listHash);
     $ret = array();
     foreach ($l as $k => $boardd) {
         $board = new BitBoard($boardd['board_id']);
         $board->mInfo = $boardd;
         $ret['map'][$k] = $boardd;
         $ret['map'][$k]['map'] = $board->getMap();
         $ret['map'][$k]['integrity'] = $board->verifyIntegrity();
     }
     // reorganise unmapped content for better display
     $umapped = $b->getUnMapped();
     foreach ($umapped as $key => $content) {
         $umap[$content['content_name']][$key] = $content;
     }
     $ret['umap'] = $umap;
     return $ret;
 }
Ejemplo n.º 2
0
            }
        }
        $ns[] = $d_o;
    }
}
// get our boards list
$ret = array();
if ($gBitSystem->isPackageActive('pigeonholes')) {
    //	$ret['data']['title']="Uncategorised Boards";
} else {
    //	$ret['data']['title']="Board List";
}
$ret['children'] = array();
$listHash = array('nboards' => $board_all_cids, 'paginationOff' => 'y');
$board = new BitBoard();
$ret['members'] = $board->getList($listHash);
if (count($ret['members']) == 1) {
    $_REQUEST['b'] = $ret['members'][0]['board_id'];
    require BOARDS_PKG_PATH . 'view_board_inc.php';
    die;
} elseif (count($ret['members']) > 0) {
    $ns[] = $ret;
}
$gBitSmarty->assignByRef('ns', $ns);
// this might be for getting a count of nested boards - not entirely sure, if you figure it out please clarify this comment.
function countBoards(&$a)
{
    $s = count($a['members']);
    foreach ($a['children'] as $k => $c) {
        $n = countBoards($a['children'][$k]);
        if ($n == 0) {