+ $bullet_item .= ul_start();
+ // logout
+ if ( $plc->alt_person && $plc->alt_auth) {
+ $email = truncate($plc->person['email'],20);
+ $bullet_item .= leaf( href( l_sulogout(),"Un-become $email"));
+ }
+ $bullet_item .= ul_end();
+ $items []= expanded ($bullet_item);
+
+ //////////////////// accounts
+ $bullet_item = '';
+ $bullet_item .= l_person_t(plc_my_person_id(),"My Account");
+ $bullet_item .= ul_start();
+ if (plc_is_admin() || plc_is_pi())
+ $bullet_item .= leaf( href( l_persons_site(plc_my_site_id()), "My Site Accounts"));
+ if (plc_is_admin()) {
+ $bullet_item .= leaf(href(l_persons_peer('local'),'Local Accounts (slow)'));
+ $bullet_item .= leaf(href(l_persons(),'All Accounts (slow)'));
+ }
+
+ $bullet_item .= ul_end();
+ $items [] = expanded($bullet_item);
+
+ //////////////////// Sites
+ $bullet_item = '';
+ $bullet_item .= href(l_sites(),"Sites");
+ $bullet_item .= ul_start();
+ $bullet_item .= plc_my_site_links();
+ if ( plc_is_admin() )
+ $bullet_item .= leaf( href(l_sites_pending(),"Pending Requests"));
+ $bullet_item .= ul_end();
+ $items[] = expanded($bullet_item);
+
+ //////////////////// Nodes
+ $bullet_item = '';
+ $bullet_item .= href(l_nodes(),"Nodes");
+ $bullet_item .= ul_start();
+ $bullet_item .= plc_my_node_links();
+ if (plc_is_admin() || plc_is_pi() || plc_is_tech())
+ $bullet_item .= leaf( href (l_register_node(),"Register Node"));
+ $bullet_item .= ul_end();
+ $items [] = expanded($bullet_item);
+
+ //////////////////// Slices
+ $bullet_item = '';
+ //if( !( plc_is_tech() && ! plc_is_user() && ! plc_is_pi() && ! plc_is_admin() ) )
+ if (plc_is_admin()) {
+ $bullet_item .= href(l_slices(),"Slices");
+ } else {
+ $bullet_item .= href(l_slices(),"My Slices");
+ }
+ $bullet_item .= ul_start();
+ if (plc_is_admin())
+ $bullet_item .= leaf ( href(l_slices_my_site(), 'My Site Slices'));
+ if( plc_is_admin() || plc_is_pi() ) {
+ $bullet_item .= leaf(href(l_slice_add(),"Create Slice"));
+ }
+ if( !( plc_is_tech() && ! plc_is_user() && ! plc_is_pi() && ! plc_is_admin() ) )
+ $bullet_item .= leaf(href(l_sirius(),"Sirius"));
+ $bullet_item .= ul_end();
+ $items [] = expanded($bullet_item);
+
+ //////////////////// Admin
+ if( plc_is_admin() || plc_is_pi() ) {
+ $bullet_item = '';
+ $bullet_item .= href(l_admin(),"Admin search");
+ $bullet_item .= ul_start();
+ if ( plc_is_admin() )
+ $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'));
+ if ( plc_is_admin() )
+ $bullet_item .= leaf (href(l_events(),'Events'));
+ $bullet_item .= ul_end();
+ $items [] = expanded($bullet_item);
+ }
+
+ $bullet_item = '';
+ $bullet_item .= href(l_about(),'About MyPLC');
+ $bullet_item .= ul_start();
+ $bullet_item .= leaf ( href (l_doc_plcapi(),"PLCAPI doc"));
+ $bullet_item .= leaf ( href (l_doc_nmapi(),"NMAPI doc"));
+ $bullet_item .= ul_end();
+ $items[] = expanded($bullet_item);