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.582 2004/06/30 16:58:36 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.583 2004/08/18 16:57:42 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:2434: Inside #if defined(URL_MODULES)
   tmp=funp( id, file );    UNLOCK();       if(mappingp( tmp ))    {    id->not_query=of;   #ifdef MODULE_DEBUG    report_debug("conf->find_dir_stat(\"%s\"): url_module returned mapping:%O\n",    file, tmp);   #endif /* MODULE_DEBUG */ -  TRACE_LEAVE("Returned mapping."+sprintf("%O", tmp)); +  TRACE_LEAVE("Returned mapping.");    TRACE_LEAVE("");    return 0;    }    if(objectp( tmp ))    {    mixed err;    id->misc->find_dir_stat_nest++;       file = id->not_query;    err = catch {
Roxen.git/server/base_server/configuration.pike:2487: Inside #if defined(MODULE_LEVEL_SECURITY)
   /* file == loc + subpath */   #ifdef MODULE_LEVEL_SECURITY    if(check_security(tmp[1], id)) {    TRACE_LEAVE("Security check failed.");    continue;    }   #endif    RoxenModule c = function_object(tmp[1]);    string f = file[strlen(loc)..];    if (c->find_dir_stat) { -  TRACE_ENTER("Has find_dir_stat().", 0); +  SIMPLE_TRACE_ENTER(c, "Calling find_dir_stat().");    if (d = c->find_dir_stat(f, id)) { -  TRACE_ENTER("Returned mapping."+sprintf("%O", d), c); +  SIMPLE_TRACE_LEAVE("Returned mapping with %d entries.", sizeof (d));    dir = d | dir; -  TRACE_LEAVE(""); +     } -  TRACE_LEAVE(""); -  } else if(d = c->find_dir(f, id)) { -  TRACE_ENTER("Returned array.", 0); +  else +  SIMPLE_TRACE_LEAVE("Returned zero."); +  } else { +  SIMPLE_TRACE_ENTER(c, "Calling find_dir()."); +  if(d = c->find_dir(f, id)) { +  SIMPLE_TRACE_LEAVE("Returned array with %d entries.", sizeof (d));    dir = mkmapping(d, Array.map(d, lambda(string fn)    {    return c->stat_file(f + fn, id);    })) | dir; -  TRACE_LEAVE(""); +     } -  +  else +  SIMPLE_TRACE_LEAVE("Returned zero."); +  }    } else if(search(loc, file)==0 && loc[strlen(file)-1]=='/' &&    (loc[0]==loc[-1]) && loc[-1]=='/' &&    (function_object(tmp[1])->stat_file(".", id))) {    /* loc == file + "/" + subpath + "/"    * and stat_file(".") returns non-zero.    */    TRACE_ENTER(sprintf("The file %O is on the path to the mountpoint %O.",    file, loc), 0);    loc=loc[strlen(file)..];    sscanf(loc, "%s/", loc);