$bullet_item .= ul_start();
$bullet_item .= leaf( href (l_nodes_site (plc_my_site_id()),"My Site Nodes"));
$bullet_item .= leaf( href (l_node_add(),"Add Node"));
+ $bullet_item .= leaf( href (l_register_node(),"Register Node"));
$bullet_item .= ul_end();
$items [] = expanded($bullet_item);
$bullet_item = '';
$bullet_item .= href(l_admin(),"Admin search");
$bullet_item .= ul_start();
+ $bullet_item .= leaf( href (l_node_add(),"Add Node"));
$bullet_item .= leaf( href( l_tags(),"Tags"));
$bullet_item .= leaf( href( l_nodegroups(),"Node groups"));
$bullet_item .= leaf (href(l_peers(),'Peers'));
function l_actions () { return "/db/common/actions.php"; }
// some complex node actions are kept separate, e.g. the ones related to getbootmedium
function l_actions_download () { return "/db/nodes/node_downloads.php"; }
+function l_register_node () { return "/registerwizard/index.php"; }
function l_nodes () { return "/db/nodes/index.php"; }
function l_nodes_peer ($peer_id) { return "/db/nodes/index.php?peerscope=$peer_id"; }
$this->last_contact = $node['last_contact'];
$this->site_id = $node['site_id'];
$this->pcu_ids = $node['pcu_ids'];
- $this->nn = $api->GetNodeNetworks($node['nodenetwork_ids']);
+ $this->nn = $api->GetInterfaces($node['interface_ids']);
foreach ($this->nn as $nnet)
{
if ( $nnet['is_primary'] == true )