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.410 2001/01/19 16:38:16 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.411 2001/01/19 18:34:44 per Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>         #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:202:   private array (RoxenModule) auth_module_cache, userdb_module_cache;         // Call stop in all modules.   void stop()   {    multiset allmods = mkmultiset (indices (otomod));    CATCH("stopping type modules",    types_module && types_module->stop && types_module->stop());    allmods[types_module] = 0; - // CATCH("stopping auth module", - // auth_module && auth_module->stop && auth_module->stop()); - // allmods[auth_module] = 0; +     CATCH("stopping directory module",    dir_module && dir_module->stop && dir_module->stop());    allmods[dir_module] = 0;    for(int i=0; i<10; i++)    CATCH("stopping priority group",    (pri[i] && pri[i]->stop && (allmods -= mkmultiset (pri[i]->stop()))));    CATCH("stopping the logger",    log_function && lambda(mixed m){    destruct(m);    allmods[m] = 0;
Roxen.git/server/base_server/configuration.pike:2495:       if(module_type & MODULE_TYPES)    {    types_module = me;    types_fun = me->type_from_extension;    }       if(module_type & MODULE_TAG)    add_parse_module( me );    -  -  if(module_type & MODULE_AUTH) -  { -  auth_module = me; -  auth_fun = me->auth; -  } -  +     if(module_type & MODULE_DIRECTORIES)    if (me->parse_directory)    dir_module = me;       if(module_type & MODULE_LOCATION)    pri[pr]->location_modules += ({ me });       if(module_type & MODULE_LOGGER)    pri[pr]->logger_modules += ({ me });   
Roxen.git/server/base_server/configuration.pike:2602:       if(moduleinfo->type & MODULE_TYPES)    {    types_module = 0;    types_fun = 0;    }       if(moduleinfo->type & MODULE_TAG)    remove_parse_module( me );    -  if( moduleinfo->type & MODULE_AUTH ) -  { -  auth_module = 0; -  auth_fun = 0; -  } -  +     if( moduleinfo->type & MODULE_DIRECTORIES )    dir_module = 0;       if( moduleinfo->type & MODULE_LOCATION )    for(pr=0; pr<10; pr++)    pri[pr]->location_modules -= ({ me });       if( moduleinfo->type & MODULE_URL )    for(pr=0; pr<10; pr++)    pri[pr]->url_modules -= ({ me });