Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.390 2001/05/03 17:28:22 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.391 2001/06/06 21:02:27 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/configuration.pike:975:   //! directory) are only returned when `no_magic' was set to 1;   //! otherwise a result mapping is always generated.   {   #ifdef MODULE_LEVEL_SECURITY    int slevel;   #endif      #ifdef THREADS    object key;   #endif +  + #if defined(__NT__) || defined(STRIP_BSLASH) +  if( strlen(id->not_query ) ) +  { +  int ss = (<'/','\\'>)[ id->not_query[0] ]; +  id->not_query = combine_path("/",replace(id->not_query,"\\","/")); +  if( !ss ) id->not_query = id->not_query[1..]; +  } + #endif +     TRACE_ENTER(sprintf("Request for %s", id->not_query), 0);       string file=id->not_query;    string loc;    function funp;    mixed tmp, tmp2;    mapping|object(Stdio.File)|int fid;       if(!no_magic)    {