// 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_pcu_add () { return "/registerwizard/index.php/register/stage1_addpcu"; }
function l_nodes () { return "/db/nodes/index.php"; }
function l_nodes_peer ($peer_id) { return "/db/nodes/index.php?peerscope=$peer_id"; }
return $formatted;
}
-function plc_error ($text) {
- // should use the same channel as the php errors..
- print "<div class='plc-error'> Error " . $text . "</div>";
-}
+//////////
+// should use the same channel as the php errors..
+function plc_error_html ($text) { return "<div class='plc-error'> " . $text . "</div>"; }
+function plc_error ($text) { print plc_error_html ("Error " . $text); }
function plc_errors ($errors) {
if ($errors) {
return "<img width='$width' src='/planetlab/icons/delete.png'>";
}
+function plc_add_icon($width=15) {
+ return "<img width='$width' src='/planetlab/icons/add.png'>";
+}
+
function plc_bubble($text,$bubble) {
return "<span title='$bubble'>$text</span>";
}