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.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.510 2002/04/15 16:29:53 wellhard Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.511 2002/04/17 14:34:28 wellhard 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:2596:    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->bootstrap_info->set (0);    return 0;    }    }    -  // Check if the module is part of the license. -  License.Key key = getvar("license")->get_key(); -  if(moduleinfo->locked && (!key || !moduleinfo->unlocked(key)) ) -  key->report_warning("Module", "Loaded module "+modname+ -  " in configuration "+name+" is not part of the license."); -  +     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 );    else    report_debug("Enabling " + descr + "\n");   #endif   
Roxen.git/server/base_server/configuration.pike:2787:    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);       module[ id ] = me;    otomod[ me ] = modname+"#"+id;       if(!nostart) call_start_callbacks( me, moduleinfo, module );      #ifdef MODULE_DEBUG -  if (enable_module_batch_msgs) +  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 +  if(moduleinfo->config_locked[this_object()]) +  report_error(" Error: \"%s\" not loaded (license restriction).\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());