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.350 2000/08/24 19:54:17 lange Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.351 2000/08/28 05:31:49 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:573:    if(auth_module)    return auth_module->user_from_uid(u);    else report_warning(sprintf("user_from_uid(): %s\n"    "%s\n",    LOC_M(38, "No authorization module"),    describe_backtrace(backtrace())));   }      public string last_modified_by(Stdio.File file, RequestID id)   { -  array(int) s; +  Stat s;    int uid;    array u;       if(objectp(file)) s=file->stat();    if(!s || sizeof(s)<5) return "A. Nonymous";    uid=s[5];    u=user_from_uid(uid, id);    if(u) return u[0];    return "A. Nonymous";   }
Roxen.git/server/base_server/configuration.pike:908:       if (!zero_type(m->len))    if (m->len<0)    res += "No data ";    else    res += sprintf("%d bytes ", m->len);    else if (stringp(m->data))    res += sprintf("%d bytes ", strlen(m->data));    else if (objectp(m->file))    if (catch { -  array a=m->file->stat(); +  Stat a=m->file->stat();    res += sprintf("%d bytes ", a[1]-m->file->tell());    })    res += "? bytes ";       if (m->data) res += "(static)";    else if (m->file) res += "(open file)";       if (stringp(m->extra_heads["http-content-type"]) ||    stringp(m->type)) {    res += sprintf(" of %s", m->type);
Roxen.git/server/base_server/configuration.pike:1446:    {    TRACE_LEAVE(sprintf("Returning list of %d files.", sizeof(dir)));    return dir;    }    TRACE_LEAVE("Returning 'No such directory'.");    return 0;   }      // Stat a virtual file.    - public array(int) stat_file(string file, RequestID id) + public array(int)|Stat stat_file(string file, RequestID id)   {    string loc; -  array s, tmp; +  mixed s, tmp;   #ifdef THREADS    object key;   #endif    TRACE_ENTER(sprintf("Stat file %O.", file), 0);       file=replace(file, "//", "/"); // "//" is really "/" here...      #ifdef URL_MODULES    // Map URL-modules    foreach(url_modules(id), function funp)