Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.442 2001/06/26 09:41:06 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.443 2001/06/28 20:09:18 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.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:2446:    ModuleInfo|void moduleinfo,    int|void nostart )   {    MODULE_LOCK;    int id;    ModuleCopies module;    int pr;    mixed err;    int module_type;    +  roxen->module_init_info->set (({this_object(), modname}));       if( datacache ) datacache->flush();       if( sscanf(modname, "%s#%d", modname, id ) != 2 )    while( modules[ modname ] && modules[ modname ][ id ] )    id++;       int start_time = gethrtime();       if( !moduleinfo )    { -  moduleinfo = roxen.find_module( modname ); +  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);    got_no_delayed_load = -1; -  +  roxen->module_init_info->set (0);    return 0;    }    }       string descr = moduleinfo->get_name() + (id ? " copy " + (id + 1) : "");    // sscanf(descr, "%*s: %s", descr);      #ifdef MODULE_DEBUG    if (enable_module_batch_msgs)    report_debug(" %-43s... \b", descr );
Roxen.git/server/base_server/configuration.pike:2499:    if (err != "") {   #endif    string bt=describe_backtrace(err);    report_error("enable_module(): " +    LOC_M(41, "Error while initiating module copy of %s%s"),    moduleinfo->get_name(), (bt ? ":\n"+bt : "\n"));   #ifdef MODULE_DEBUG    }   #endif    got_no_delayed_load = -1; +  roxen->module_init_info->set (0);    return module[id];    }    }       if(module[id] && module[id] != me)    {    if( module[id]->stop )    catch( module[id]->stop() );   // if( err = catch( disable_module( modname+"#"+id ) ) )   // report_error(LOCALE->error_disabling_module(moduleinfo->get_name(),
Roxen.git/server/base_server/configuration.pike:2529:    {    if(module_type != MODULE_CONFIG)    {    if (err = catch {    me->defvar("_priority", 5, DLOCALE(12, "Priority"), TYPE_INT_LIST,    DLOCALE(13, "The priority of the module. 9 is highest and 0 is lowest."    " Modules with the same priority can be assumed to be "    "called in random order"),    ({0, 1, 2, 3, 4, 5, 6, 7, 8, 9}));    }) { +  roxen->module_init_info->set (0);    throw(err);    }    }      #ifdef MODULE_LEVEL_SECURITY    if( (module_type & ~(MODULE_LOGGER|MODULE_PROVIDER)) != 0 )    {   // me->defvar("_sec_group", "user", DLOCALE(14, "Security: Realm"),   // TYPE_STRING,   // DLOCALE(15, "The realm to use when requesting password from the "
Roxen.git/server/base_server/configuration.pike:2663:    enabled_modules[modname+"#"+id] = 1;    store( "EnabledModules", enabled_modules, 1, this_object());    }       if (!has_stored_vars)    store (modname + "#" + id, me->query(), 0, this_object());       if( me->no_delayed_load && got_no_delayed_load >= 0 )    got_no_delayed_load = 1;    +  roxen->module_init_info->set (0);    return me;   }      void call_start_callbacks( RoxenModule me,    ModuleInfo moduleinfo,    ModuleCopies module )   {    if(!me) return;    if(!moduleinfo) return;    if(!module) return;