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 - 2009, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.700 2010/06/06 12:10:25 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.701 2010/06/20 15:48:27 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)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:2633:   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)) +  if (has_prefix(file, internal_location)) { +  TRACE_LEAVE("");    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 );