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.477 2001/08/30 14:43:50 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.478 2001/08/31 06:23:21 per 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:1562:    if(mappingp(fid))    {    TRACE_LEAVE("Returning data");    return (mapping)fid;    }    }       // Map the file extensions, but only if there is a file...    TIMER_START(extension_module);    if(objectp(fid) && -  (tmp = file_extension_modules(loc = Roxen.extension(id->not_query, id)))) +  (tmp = file_extension_modules(loc = +  lower_case(Roxen.extension(id->not_query, +  id)))))    {    foreach(tmp, funp)    {    TRACE_ENTER(sprintf("Extension module [%s] ", loc), funp);   #ifdef MODULE_LEVEL_SECURITY    if(tmp=check_security(funp, id, slevel))    if(intp(tmp))    {    TRACE_LEAVE("Permission to access module denied.");    continue;
Roxen.git/server/base_server/configuration.pike:1612:    TRACE_LEAVE("");    }    }    TIMER_END(extension_module);       if(objectp(fid))    {    TIMER_START(content_type_module);    if(stringp(id->extension)) {    id->not_query += id->extension; -  loc = Roxen.extension(id->not_query, id); +  loc = lower_case(Roxen.extension(id->not_query, id));    }    TRACE_ENTER("Content-type mapping module", types_module);    tmp=type_from_filename(id->not_query, 1, loc);    TRACE_LEAVE(tmp?sprintf("Returned type %s %s.", tmp[0], tmp[1]||"")    : "Missing type.");    if(tmp)    {    TRACE_LEAVE("");    TIMER_END(content_type_module);    return ([ "file":fid, "type":tmp[0], "encoding":tmp[1] ]);