$block['content'] .= p( href (l_reset_password(),"Forgot your password?") );
$block['content'] .= p( href(l_person_register(),"Create an account") );
$block['content'] .= p( href(l_site_register(),"File a site registration") );
$block['content'] .= p( href (l_reset_password(),"Forgot your password?") );
$block['content'] .= p( href(l_person_register(),"Create an account") );
$block['content'] .= p( href(l_site_register(),"File a site registration") );
$bullet_item = '';
if ($user->uid) {
// Drupal logout (destroys the session and cleans up $user)
// Thierry unclear when this triggers, I suspect this is obsolete
$bullet_item = '';
if ($user->uid) {
// Drupal logout (destroys the session and cleans up $user)
// Thierry unclear when this triggers, I suspect this is obsolete
array('%s' => variable_get('site_name', 'local'))), 'logout');
} else {
// PlanetLab logout (just destroy the session)
$bullet_item .= href (l_logout(),'Logout');
}
$bullet_item .= ul_start();
array('%s' => variable_get('site_name', 'local'))), 'logout');
} else {
// PlanetLab logout (just destroy the session)
$bullet_item .= href (l_logout(),'Logout');
}
$bullet_item .= ul_start();
$bullet_item = '';
$bullet_item .= l_person_t(plc_my_person_id(),"My Account");
$bullet_item .= ul_start();
$bullet_item = '';
$bullet_item .= l_person_t(plc_my_person_id(),"My Account");
$bullet_item .= ul_start();
$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 .= 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 .= href(l_sites(),"Sites");
$bullet_item .= ul_start();
$bullet_item .= plc_my_site_links();
$bullet_item .= href(l_sites(),"Sites");
$bullet_item .= ul_start();
$bullet_item .= plc_my_site_links();
$bullet_item .= href(l_nodes(),"Nodes");
$bullet_item .= ul_start();
$bullet_item .= plc_my_node_links();
$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"));
+ if (plc_is_admin() || plc_is_pi() || plc_is_tech()) {
+ $bullet_item .= leaf( href (l_register_node(), "Register Node (ko)"));
+ }
$bullet_item .= ul_end();
$items [] = expanded($bullet_item);
//////////////////// Slices
$bullet_item = '';
$bullet_item .= ul_end();
$items [] = expanded($bullet_item);
//////////////////// Slices
$bullet_item = '';
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 .= href(l_slices(),"Slices");
} else {
$bullet_item .= href(l_slices(),"My Slices");
}
$bullet_item .= ul_start();
$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"));
}
$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"));
}
$bullet_item .= leaf(href(l_sirius(),"Sirius"));
$bullet_item .= ul_end();
$items [] = expanded($bullet_item);
$bullet_item .= leaf(href(l_sirius(),"Sirius"));
$bullet_item .= ul_end();
$items [] = expanded($bullet_item);
// The referrer itself is a URL path with the original query string,
// e.g. "referer.php?query".
extract(parse_url($destination)); // => $query
// Which we then have to parse again as a query string.
// The referrer itself is a URL path with the original query string,
// e.g. "referer.php?query".
extract(parse_url($destination)); // => $query
// Which we then have to parse again as a query string.
function planetlab_page() {
$path = $_SERVER['DOCUMENT_ROOT'] . preg_replace('/^db\//', '/planetlab/', $_GET['q']);
function planetlab_page() {
$path = $_SERVER['DOCUMENT_ROOT'] . preg_replace('/^db\//', '/planetlab/', $_GET['q']);