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.
115
1998/11/
10
10
:
47
:
56
mast
Exp $";
+
string cvs_version = "$Id: mainconfig.pike,v 1.
116
1998/11/
18
04
:
53:
47
per
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);
Roxen.git/server/base_server/mainconfig.pike:188:
void create() { build_root(root); init_ip_list(); call_out(init_ip_list, 0); } // Note stringification of ACTION and ALIGN
-
#if 0
-
#define BUTTON(ACTION,TEXT,ALIGN) do{PUSH("<a href=\"/(ACTION)"+(o?o->path(1):"/")+"?"+(bar++)+"\"><img border=0 hspacing=0 vspacing=0 src=\"/auto/button/"+(lm?"lm/":"")+replace(TEXT," ","%20")+"\" alt=\""+(lm?"/ ":" ")+TEXT+" /\""+(("ALIGN"-" ")=="left"?"":" align="+("ALIGN"-" "))+"></a>");lm=0;}while(0)
-
#else
-
-
#if constant(cpp)
+
#define BUTTON(ACTION,TEXT,ALIGN) do{buttons += ({({"<a href=\"/("#ACTION")"+(o?o->path(1):"/")+"?"+(bar++)+"\"><img border=0 hspacing=0 vspacing=0 src=\"/auto/button/"+(lm?"lm/":""),replace(TEXT," ","%20")+"\" alt=\""+(lm?"/ ":" ")+TEXT+" /\""+((#ALIGN-" ")=="left"?"":" align="+(#ALIGN-" "))+"></a>"})});lm=0;}while(0)
-
#else /* !constant(cpp) */
-
#define BUTTON(ACTION,TEXT,ALIGN) do{buttons += ({({"<a href=\"/(ACTION)"+(o?o->path(1):"/")+"?"+(bar++)+"\"><img border=0 hspacing=0 vspacing=0 src=\"/auto/button/"+(lm?"lm/":""),replace(TEXT," ","%20")+"\" alt=\""+(lm?"/ ":" ")+TEXT+" /\""+(("ALIGN"-" ")=="left"?"":" align="+("ALIGN"-" "))+"></a>"})});lm=0;}while(0)
-
#endif /* constant(cpp) */
+
#define PUSH_BUTTONS(CLEAR) do{if(sizeof(buttons)){buttons[-1][0]+="rm/";res+=`+(@buttons);if(CLEAR){PUSH("<br clear=all>");}}lm=1;buttons=({});}while(0)
-
#endif /* 0 */
+
-
+
string default_head(string h, string|void save) { return ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Draft//EN\">" "<head><title>"+h+"</title>\n<META HTTP-EQUIV=\"Expires\" CONTENT=\"0\">\n</head>\n"+ BODY+"\n"); } object find_node(string l) { array tmp = l/"/"-({""}); object o;
Roxen.git/server/base_server/mainconfig.pike:1777:
check_login(id); PUSH(default_head(LOCALE->roxen_server_config())); // PUSH("<table><tr><td> <td>" PUSH("<dl>\n"); PUSH("\n"+status_row(o)+"\n"+display_tabular_header( o )+"\n"); PUSH("<p>"); if(o->up != root && o->up) PUSH("<a href=\""+ o->up->path(1)+"?"+(bar++)+"\">"
-
"<img src=/auto/back alt=\"[Up]\" align=left hspace=0 border=0></a>\n");
+
"<img src=/auto/back alt=\"[Up]\" align=left hspace=0 border=0>
"
+
"
</a>\n");
if(i=o->folded) o->folded=0; mixed tmp = o->describe(1,id); if(mappingp(tmp)) return tmp; if(!id->supports->font) tmp = parse_html(tmp, ([]),(["font":remove_font, ])); PUSH("<dl><dt>"); PUSH(tmp); PUSH("</dl>"); o->folded=i;