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 - 2009, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.681 2009/10/31 19:37:33 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.682 2009/11/01 21:34:33 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)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:3851: Inside #if defined(MODULE_LEVEL_SECURITY)
      } else {    me->definvisvar("_seclvl", -10, TYPE_INT); /* A very low one */    }    }   #endif    } else {    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); -  +     if (!module[id])    counters[moduleinfo->counter]++;       module[ id ] = me;    otomod[ me ] = modname+"#"+id;    -  +  roxen->bootstrap_info->set (0); +  +  // Below we may have recursive calls to this function. They may +  // occur already in setvars due to e.g. automatic dependencies in +  // Variable.ModuleChoice. +  +  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); +     if(!nostart) call_start_callbacks( me, moduleinfo, module );      #ifdef MODULE_DEBUG    if (enable_module_batch_msgs) {    if(moduleinfo->config_locked[this_object()])    report_debug("\bLocked %6.1fms\n", (gethrtime()-start_time)/1000.0);    else    report_debug("\bOK %6.1fms\n", (gethrtime()-start_time)/1000.0);    }   #else
Roxen.git/server/base_server/configuration.pike:3888:    if(!nosave)    store( "EnabledModules", enabled_modules, 1, this_object());    }       if (!has_stored_vars && !nosave)    store (modname + "#" + id, me->query(), 0, this_object());       if( me->no_delayed_load && got_no_delayed_load >= 0 )    got_no_delayed_load = 1;    -  roxen->bootstrap_info->set (0); +     return me;   }      void call_start_callbacks( RoxenModule me,    ModuleInfo moduleinfo,    ModuleCopies module,    void|int newly_added)   {    call_low_start_callbacks( me, moduleinfo, module );    call_high_start_callbacks (me, moduleinfo, newly_added);