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.384 2000/11/15 09:55:22 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.385 2000/11/24 15:52:04 mast 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:1361:       id->misc->internal_get = orig_internal_get;    return res;   }      public array(string) find_dir(string file, RequestID id, void|int(0..1) verbose)   {    array dir;    TRACE_ENTER(sprintf("List directory %O.", file), 0);    -  if(file[0] != '/') +  if(!sizeof (file) || file[0] != '/')    file = "/" + file;      #ifdef URL_MODULES   #ifdef THREADS    object key;   #endif    // Map URL-modules    foreach(url_modules(id), function funp)    {    string of = id->not_query;
Roxen.git/server/base_server/configuration.pike:1706:      public mapping(string:array(mixed)) find_dir_stat(string file, RequestID id)   {    string loc;    mapping(string:array(mixed)) dir = ([]);    mixed d, tmp;          file=replace(file, "//", "/");    -  if(file[0] != '/') +  if(!sizeof (file) || file[0] != '/')    file = "/" + file;       // FIXME: Should I append a "/" to file if missing?       TRACE_ENTER(sprintf("Request for directory and stat's \"%s\".", file), 0);      #ifdef URL_MODULES   #ifdef THREADS    object key;   #endif