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.506 2002/04/10 09:46:01 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.507 2002/04/12 14:14:21 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:2595:    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+ +  " 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