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.397 2000/11/20 13:36:33 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.398 2000/11/24 15:52:02 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.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:1374:       id->misc->internal_get = orig_internal_get;    return res;   }      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(), function funp)    {    string of = id->not_query;
Roxen.git/server/base_server/configuration.pike:1674:      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