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.
41
1997/06/
09
19
:
07
:
00
grubba Exp $";
+
string cvs_version = "$Id: mainconfig.pike,v 1.
42
1997/06/
12
00
:
34
:
23
grubba Exp $";
inherit "roxenlib"; inherit "config/draw_things"; import Array; import Stdio; /* Work-around for Simulate.perror */ #define perror roxen_perror #include <confignode.h>
Roxen.git/server/base_server/mainconfig.pike:529:
res = ({default_head("Add a module")+"\n\n"+ "<h2>Select a module to add from the list below</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>":
-
"<img alt=\""+a[q][0]+"\" src=/auto/module/" +
+
"<img alt=\""+a[q][0]+"\" src=/auto/module/" +
a[q][2]+"/"+
q+" height=24 width=500>")+ "<br><blockquote>" + a[q][1] + "<p><i>A module of the same type is already enabled (" + b->name + "). <a href=\"/(delete)" + node->descend(b->name, 1)->path(1) + "?" + (bar++) + "\">Disable that module</a> if you want this one insted</i>" "\n<p><br><p></blockquote>")}); } else { res += ({"<p><a href=/(newmodule)"+node->path(1)+"?"+q+"=1>"+ (roxen->QUERY(BS)?"<h2>"+a[q][0]+"</h2>": "<img border=0 alt=\""+a[q][0]+"\" src=/auto/module/"+
-
q+
" height=24 width=500>")+
+
a[q][2]+
"
/"+q+"
height=24 width=500>")+
"</a><blockquote><br>"+a[q][1]+"<p><br><p></blockquote>"}); } } return res*""; } mapping new_module(object id, object node) { string varname;
Roxen.git/server/base_server/mainconfig.pike:900:
string img_key = "auto/"+replace(in,"/","_")+".gif"-" "; if(e=file_image(img_key)) return e; if(!sscanf(in, "%s/%s", key, value)) key=in; switch(key) { case "module":
+
sscanf(value, "%*d/%s", value);
i = draw_module_header(roxen->allmodules[value][0], roxen->allmodules[value][2], module_font); break; case "button": int lm,rm; if(sscanf(value, "lm/%s", value)) lm=1; if(sscanf(value, "rm/%s", value)) rm=1; i=draw_config_button(value,button_font,lm,rm);