function l_interface ($interface_id) { return "/db/nodes/interface.php?id=$interface_id"; }
function l_interface_tags($interface_id){ return "/db/nodes/interface.php?id=$interface_id&show_tags=1"; }
function l_interface ($interface_id) { return "/db/nodes/interface.php?id=$interface_id"; }
function l_interface_tags($interface_id){ return "/db/nodes/interface.php?id=$interface_id&show_tags=1"; }
return href (l_interface($interface_id),$text); }
function l_interface_add($node_id) { return "/db/nodes/interface.php?node_id=$node_id"; }
return href (l_interface($interface_id),$text); }
function l_interface_add($node_id) { return "/db/nodes/interface.php?node_id=$node_id"; }
function l_slice_obj ($slice) { return l_slice_t ($slice['slice_id'],$slice['name']); }
function l_sliver ($node_id,$slice_id) { return "/db/nodes/slivers.php?node_id=$node_id&slice_id=$slice_id"; }
function l_slice_obj ($slice) { return l_slice_t ($slice['slice_id'],$slice['name']); }
function l_sliver ($node_id,$slice_id) { return "/db/nodes/slivers.php?node_id=$node_id&slice_id=$slice_id"; }
return href (l_sliver($node_id,$slice_id),$text) ; }
function l_persons () { return "/db/persons/index.php&active_line_tab=All Accounts"; }
return href (l_sliver($node_id,$slice_id),$text) ; }
function l_persons () { return "/db/persons/index.php&active_line_tab=All Accounts"; }
function l_nodegroups () { return "/db/tags/nodegroups.php"; }
function l_nodegroup ($nodegroup_id) { return "/db/tags/nodegroup.php?id=$nodegroup_id"; }
function l_nodegroups () { return "/db/tags/nodegroups.php"; }
function l_nodegroup ($nodegroup_id) { return "/db/tags/nodegroup.php?id=$nodegroup_id"; }
return href(l_nodegroup($nodegroup['nodegroup_id']),$nodegroup['groupname']); }
function l_events () { return "/db/events/index.php"; }
return href(l_nodegroup($nodegroup['nodegroup_id']),$nodegroup['groupname']); }
function l_events () { return "/db/events/index.php"; }
-function tab_nodes_site($site_id){ return array ('label'=>'Site nodes', 'url'=>l_nodes_site($site_id),
+function tab_nodes_site($site_id){ return array ('label'=>'Site nodes', 'url'=>l_nodes_site($site_id),
-function tab_nodes_slice($slice_id){ return array ('label'=>'Slice nodes', 'url'=>l_nodes_slice($slice_id),
+function tab_nodes_slice($slice_id){ return array ('label'=>'Slice nodes', 'url'=>l_nodes_slice($slice_id),
'bubble'=>'Display nodes on my site'); }
function tab_nodes_all_mysite (){ return array ('label'=>'All My site nodes', 'url'=>l_nodes_all_my_site(),
'bubble'=>'Display nodes on all my sites'); }
'bubble'=>'Display nodes on my site'); }
function tab_nodes_all_mysite (){ return array ('label'=>'All My site nodes', 'url'=>l_nodes_all_my_site(),
'bubble'=>'Display nodes on all my sites'); }
function tab_mysite() { return array ('label'=>'My site', 'url'=>l_site(plc_my_site_id()),
'bubble'=>'Details for site ' . plc_my_site_id()); }
function tab_sites () { return array ('label'=>'All sites' , 'url'=>l_sites(), 'bubble'=> 'Display all sites'); }
function tab_mysite() { return array ('label'=>'My site', 'url'=>l_site(plc_my_site_id()),
'bubble'=>'Details for site ' . plc_my_site_id()); }
function tab_sites () { return array ('label'=>'All sites' , 'url'=>l_sites(), 'bubble'=> 'Display all sites'); }
'bubble'=> 'Display all siteslocal to this peer'); }
//////////
function tab_slices() { return array ('label'=>'All slices', 'url'=>l_slices(),
'bubble' => 'Display all slices'); }
function tab_slices_person() { return array ('label'=>'My slices', 'url'=>l_slices_person(plc_my_person_id()),
'bubble' => 'Display my all slices'); }
'bubble'=> 'Display all siteslocal to this peer'); }
//////////
function tab_slices() { return array ('label'=>'All slices', 'url'=>l_slices(),
'bubble' => 'Display all slices'); }
function tab_slices_person() { return array ('label'=>'My slices', 'url'=>l_slices_person(plc_my_person_id()),
'bubble' => 'Display my all slices'); }
-function tab_slices_mysite () { return array ('label'=>'My site slices', 'url'=>l_slices_my_site(),
+function tab_slices_mysite () { return array ('label'=>'My site slices', 'url'=>l_slices_my_site(),
'bubble'=>'Display all slices local to this peer'); }
function tab_slice($slice) { return array ('label'=>'Slice '.$slice['name'], 'url'=>l_slice($slice['slice_id']),
'bubble' => 'Details for ' . $slice['name']); }
'bubble'=>'Display all slices local to this peer'); }
function tab_slice($slice) { return array ('label'=>'Slice '.$slice['name'], 'url'=>l_slice($slice['slice_id']),
'bubble' => 'Details for ' . $slice['name']); }
if ($roles)
foreach ($roles as $role) {
if ( ! in_array ($role['role_id'],$exception_ids) ) {
if ($roles)
foreach ($roles as $role) {
if ( ! in_array ($role['role_id'],$exception_ids) ) {
//////////////////////////////////////////////////////////// titles
function t_site($site) { return " on site " . $site['name'] . " (" . $site['login_base'] .")"; }
function t_slice ($slice) { return " running slice " . $slice['name'] . " (" . $slice['slice_id'] . ")"; }
//////////////////////////////////////////////////////////// titles
function t_site($site) { return " on site " . $site['name'] . " (" . $site['login_base'] .")"; }
function t_slice ($slice) { return " running slice " . $slice['name'] . " (" . $slice['slice_id'] . ")"; }
$display=substr($text, 0, $numb).$etc;
return sprintf("<span title='%s'>%s</span>",$text,$display);
}
$display=substr($text, 0, $numb).$etc;
return sprintf("<span title='%s'>%s</span>",$text,$display);
}
// generates <(atom) class=(class)> (text) </(atom)>
function html_atom ($atom,$text,$class="") {
$html="<$atom";
// generates <(atom) class=(class)> (text) </(atom)>
function html_atom ($atom,$text,$class="") {
$html="<$atom";
function instantiation_label ($slice) {
$instantiation_labels = array ('not-instantiated'=>'NOT',
'plc-instantiated'=>'PLC',
function instantiation_label ($slice) {
$instantiation_labels = array ('not-instantiated'=>'NOT',
'plc-instantiated'=>'PLC',
//////////////////// toggle areas
// get_arg ('show_persons',false) returns $_GET['show_persons'] if set and false otherwise
function get_arg ($name,$default=NULL,$method='get') {
//////////////////// toggle areas
// get_arg ('show_persons',false) returns $_GET['show_persons'] if set and false otherwise
function get_arg ($name,$default=NULL,$method='get') {