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 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.654 2008/08/15 13:37:47 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.655 2008/08/28 16:07:22 jonasw 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:2618:   array(int)|Stat stat_file(string file, RequestID id)   {    mixed s, tmp;   #ifdef THREADS    Thread.MutexKey key;   #endif    TRACE_ENTER(sprintf("Stat file %O.", file), 0);       file=replace(file, "//", "/"); // "//" is really "/" here...    +  if (has_prefix(file, internal_location)) +  return 0; +    #ifdef URL_MODULES    // Map URL-modules    string of = id->not_query;    id->not_query = file;    foreach(url_module_cache||url_modules(), function funp)    {    TRACE_ENTER("URL module", funp);    LOCK(funp);    tmp=funp( id, file );    UNLOCK();