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.362 2000/09/05 11:50:14 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.363 2000/09/05 15:06:28 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:2106:    int module_type;          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 )    {    moduleinfo = roxen->find_module( modname );       if (!moduleinfo)    {    report_warning("Failed to load %s. The module probably "    "doesn't exist in the module path.\n", modname);    return 0;
Roxen.git/server/base_server/configuration.pike:2264:    me->defvar("_priority", 0, "", TYPE_INT, "", 0, 1);    }       mapping(string:mixed) stored_vars = retrieve(modname + "#" + id, this_object());    int has_stored_vars = sizeof (stored_vars); // A little ugly, but it suffices.    me->setvars(stored_vars);       module[ id ] = me;    otomod[ me ] = modname+"#"+id;    -  mixed err; +     if(!nostart) call_start_callbacks( me, moduleinfo, module );      #ifdef MODULE_DEBUG    if (enable_module_batch_msgs)    report_debug("\bOK %6.1fms\n", (gethrtime()-start_time)/1000.0);   #endif    if( !enabled_modules[modname+"#"+id] )    {    enabled_modules[modname+"#"+id] = 1;    store( "EnabledModules", enabled_modules, 1, this_object());