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.   //   // German translation by Kai Voigt    - constant cvs_version = "$Id: configuration.pike,v 1.310 2001/05/03 17:28:19 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.311 2001/07/31 07:39:22 per Exp $";   constant is_configuration = 1;   #include <module.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:1150:   // suitable responce is used.   mapping|int low_get_file(RequestID id, int|void no_magic)   {   #ifdef MODULE_LEVEL_SECURITY    int slevel;   #endif      #ifdef THREADS    object key;   #endif +  +  +  if( strlen(id->not_query ) ) +  { +  int ss = (<'/','\\'>)[ id->not_query[0] ]; +  id->not_query = combine_path("/", + #if defined(__NT__) || defined(STRIP_BSLASH) +  replace(id->not_query,"\\","/") + #else +  id->not_query + #endif +  ); +  if( !ss ) id->not_query = id->not_query[1..]; +  } +     TRACE_ENTER(LOCALE->request_for(id->not_query), 0);       string file=id->not_query;    string loc;    function funp;    mixed tmp, tmp2;    mapping|object fid;       if(!no_magic)    {