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 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.633 2007/03/05 12:13:59 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.634 2007/05/30 12:40:05 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:4010:    if( got_no_delayed_load >= 0 &&    query ("no_delayed_load") != got_no_delayed_load ) {    set( "no_delayed_load", got_no_delayed_load );    save_one( 0 );    }   }      void enable_all_modules()   {    MODULE_LOCK (0); +  +  // Temporarily shift out of the rxml parsing context if we're inside +  // any (e.g. due to delayed loading from inside the admin +  // interface). +  RXML.Context old_ctx = RXML.get_context(); +  RXML.set_context (0); +  mixed err = catch { +     low_init( );    fix_no_delayed_load_flag(); -  +  +  }; +  RXML.set_context (old_ctx); +  if (err) throw (err);   }      void low_init(void|int modules_already_enabled)   {    if( inited )    return; // already done       int start_time = gethrtime();    if (!modules_already_enabled)    report_debug("\nEnabling all modules for "+query_name()+"... \n");