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.690 2010/02/25 13:49:18 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.691 2010/03/04 12:40:58 grubba 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:3873:    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 if (me->not_a_module) +  report_debug("\bN/A %6.1fms\n", (gethrtime()-start_time)/1000.0);    else    report_debug("\bOK %6.1fms\n", (gethrtime()-start_time)/1000.0);    }   #else    if(moduleinfo->config_locked[this_object()])    report_error(" Error: \"%s\" not loaded (license restriction).\n",    moduleinfo->get_name()); -  +  else if (me->not_a_module) +  report_debug(" Note: \"%s\" not available.\n", moduleinfo->get_name());   #endif    if( !enabled_modules[modname+"#"+id] )    {    enabled_modules[modname+"#"+id] = 1;    if(!nosave)    store( "EnabledModules", enabled_modules, 1, this_object());    }       if (!has_stored_vars && !nosave)    store (modname + "#" + id, me->query(), 0, this_object());