Roxen.git / server / base_server / mainconfig.pike

version» Context lines:

Roxen.git/server/base_server/mainconfig.pike:1:   inherit "config/builders"; - string cvs_version = "$Id: mainconfig.pike,v 1.37 1997/04/05 01:25:33 per Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.38 1997/05/26 00:28:16 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/"+ -  q+" 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++)+ +  "<img alt=\""+a[q][0]+"\" src=/auto/module/" + +  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+" width=500>")+ +  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:774:    res += read_bytes("etc/welcome.html");    if(error && strlen(error))    res += "<blockquote>\n<p><b>"+error+"</b>";       res += ("<pre>"    "<font size=+1>"    "<form action=/(initial)/Globals/>"    " User name <input name=user type=string>\n"    " Password <input name=pass type=password>\n"    " Again <input name=pass2 type=password>\n" - // Avoid this trap for people that likes to shoot themselevs in the foot. + // Avoid this trap for people who like to shoot themselves in the foot.   // /Peter   // "IP-pattern <input name=pattern type=string>\n"    " <input type=submit value=\"Use these values\">\n"    "</form></font></pre></blockquote>");       return stores(res);   }      object module_of(object node)   {
Roxen.git/server/base_server/mainconfig.pike:1085:    name = module_short_name(mod, o->config());    if(!name)    error("This module cannot be updated");    sscanf(name, "%s#%*s", modname);       if(!(cmod = o->config()->modules[ modname ]))    error("This module cannot be updated");       o->save();    cache_remove("modules", modname); - // _master->set_inhibit_compile_errors(""); +  _master->set_inhibit_compile_errors("");       if(!o->config()->load_module(modname))    {    mapping rep;    rep = http_string_answer("The reload of this module failed.\n"    "This is (probably) the reason:\n<pre>"    + _master->errors + "</pre>" ); - // _master->set_inhibit_compile_errors(0); +  _master->set_inhibit_compile_errors(0);    return rep;    }    object mod;    if(!o->config()->disable_module(name))error("Failed to disable module.\n");    if(!(mod=o->config()->enable_module(name)))error("Failed to enable module.\n");       o->clear();   // roxen->fork_it();       if(mappingp(o->data))