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.
48
1997/08/12
08
:
59
:
55
per Exp $";
+
string cvs_version = "$Id: mainconfig.pike,v 1.
49
1997/08/12
09
:
04
:
33
per Exp $";
inherit "roxenlib"; inherit "config/draw_things"; import Array; import Stdio;
-
+
string status_row(object node);
+
string display_tabular_header(object node);
/* Work-around for Simulate.perror */ #define perror roxen_perror #include <confignode.h> #include <module.h> #define dR "ff" #define dG "ff" #define dB "ff"
Roxen.git/server/base_server/mainconfig.pike:521:
werror("CONFIG: Done.\n"); } a=roxen->allmodules; mods=sort_array(indices(a), lambda(string a, string b, mapping m) { return m[a][0] > m[b][0]; }, a); res = ({default_head("Add a module")+"\n\n"+ status_row(node)+
-
display_tabular_header(node)+
+
//
display_tabular_header(node)+
"<table><tr><td> <td><h2>Select a module to add" " from the list below, click on it's header to add it.</h2>" }); foreach(mods, q) { if(b = module_nomore(q, a[q][2], node->config())) { if(b->sname != q) res += ({("<p>"+ (roxen->QUERY(BS)?"<h2>"+a[q][0]+"</h2>":
Roxen.git/server/base_server/mainconfig.pike:1249:
"configurations/"+id->variables->name); o->data->name=id->variables->name; } break; /* This only asks "do you really want to...", it does not delete * the node */ case "delete": PUSH(default_head("Roxen Configuration")+
-
status_row(o)
+
-
display_tabular_header(o
)
)
+
status_row(o))
;
// PUSH("<hr noshade>"); switch(o->type) { case NODE_CONFIGURATION: PUSH("<font size=+2>Do you really want to delete the configuration "+ o->data->name + ", all its modules and their copies?" "\n\n<p></font>"); break;