Roxen.git
/
server
/
base_server
/
mainconfig.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/mainconfig.pike:1:
inherit "config/builders";
-
string cvs_version = "$Id: mainconfig.pike,v 1.
76
1997/08/
21
14
:
10:
26
grubba
Exp $";
+
string cvs_version = "$Id: mainconfig.pike,v 1.
77
1997/08/
24
02
:
26
:
01
peter
Exp $";
//inherit "roxenlib"; inherit "config/draw_things"; import Array; import Stdio; string status_row(object node); string display_tabular_header(object node); object get_template(string t); /* Work-around for Simulate.perror */
Roxen.git/server/base_server/mainconfig.pike:989:
nodes[i][0..strlen(nodes[i])-1]+"\\__\" src=\"/auto/selected/"+ replace(nodes[i]," ","%20")+"\" border=0></b></a>"); //PUSH("<br>"); return res*""; } mapping (string:string) selected_nodes = ([ "Configurations":"/Configurations", "Globals":"/Globals",
-
"Status":"/Status",
+
"Errors":"/Errors", "Actions":"/Actions", ]); array tabs = ({ "Configurations", "Globals",
-
"Status",
+
"Errors", "Actions", }); array tab_names = ({ "Virtual Servers", "Global Variables",
-
"Status",
+
"Event Log", "Actions", }); string display_tabular_header(object node) { string p, s;
-
array links = (
{
-
selected_nodes[
tabs
[0]]+"?"+(bar++)
,
-
selected_nodes[tabs[1]]+"?"+
(
bar++),
-
selected_nodes[tabs[2]]+"?"+(bar++
)
,
-
selected_nodes[tabs[3]]+"?"+(bar++),
-
selected_nodes[
tabs[4
]
]
+"?"+(bar++)
,
+
array links =
Array.map
(tabs,
lambda(string
q
)
{
+
return
selected_nodes[
q
]+"?"+(bar++)
;
}); if(node != root) { s = extract_almost_top(node) - "/"; selected_nodes[s] = node->path(1); links[search(tabs,s)]="/"+s+"/"+"?"+(bar++); } return tablist(tab_names, links, search(tabs,s));