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.40 1997/06/01 22:10:29 grubba Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.41 1997/06/09 19:07:00 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:434:      mapping module_nomore(string name, int type, object conf)   {    mapping module;    object o;   // perror("Module: "+name+"\n");    if((module = conf->modules[name])    && (!module->copies && module->enabled))    return module;    if(((type & MODULE_DIRECTORIES) && (o=conf->dir_module)) - // || ((type & MODULE_AUTH) && (o=conf->auth_module)) - // || ((type & MODULE_TYPES) && (o=conf->types_module)) +  || ((type & MODULE_AUTH) && (o=conf->auth_module)) +  || ((type & MODULE_TYPES) && (o=conf->types_module))    || ((type & MODULE_MAIN_PARSER) && (o=conf->parse_module)))    return conf->modules[conf->otomod[o]];   }      mixed new_module_copy(object node, string name, object id)   {    object orig;    int i;    mapping module;    module = node->config()->modules[name];
Roxen.git/server/base_server/mainconfig.pike:1102:    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(""); +     -  +  // Not usefull since load_module() also does it. +  // _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); +  + roxen->last_error + "</pre>" ); +  // _master->set_inhibit_compile_errors(0);    return rep;    } -  _master->set_inhibit_compile_errors(0); +  // _master->set_inhibit_compile_errors(0);    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))    {    o->data = o->config()->modules[modname];