Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.361 2000/09/05 08:55:03 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.362 2000/09/05 11:50:14 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/configuration.pike:2099:    int|void nostart )   {    MODULE_LOCK;    int id;    ModuleCopies module;    int pr;    mixed err;    int module_type;       -  datacache->flush(); +  if( datacache ) datacache->flush();       if( sscanf(modname, "%s#%d", modname, id ) != 2 )    while( modules[ modname ] && modules[ modname ][ id ] )    id++;       int start_time = gethrtime();    mixed err;       if( !moduleinfo )    {
Roxen.git/server/base_server/configuration.pike:2478:    }   }      int disable_module( string modname, int|void nodest )   {    MODULE_LOCK;    RoxenModule me;    int id, pr;    sscanf(modname, "%s#%d", modname, id );    -  datacache->flush(); +  if( datacache ) datacache->flush();       ModuleInfo moduleinfo = roxen->find_module( modname );    mapping module = modules[ modname ];    string descr = moduleinfo->get_name() + (id ? " copy " + (id + 1) : "");       if(!module)    {    report_error("disable_module(): " +    LOC_M(42, "Failed to disable module:\n"    "No module by that name: \"%s\".\n"), modname);