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.   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.468 2001/08/23 18:04:31 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.469 2001/08/23 18:40:14 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:515:    return ret;    }    })) {    error[0] = "Error in call_provider(): "+error[0];    throw(error);    }    }    }   }    + RoxenModule get_module (string modname) + //! Resolves a string as returned by @[RoxenModule.module_local_id] to + //! a module object in this configuration, if one exists. + { +  string mname; +  int mid = 0; +  sscanf (modname, "%s#%d", mname, mid); +  if (mapping moddata = modules[mname]) +  return moddata->copies[mid]; +  return 0; + } +    array (function) file_extension_modules(string ext)   {    if(!file_extension_module_cache[ext])    {    int i;    file_extension_module_cache[ext] = ({ });    for(i=9; i>=0; i--)    {    array(RoxenModule) d;    RoxenModule p;