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.357 2000/09/01 00:47:28 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.358 2000/09/01 13:46:42 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:1873:    if ( !id->misc->common )    id->misc->common = ([]);       fake_id = id->clone_me();       fake_id->misc->common = id->misc->common;    fake_id->misc->internal_get = !not_internal;       s = Roxen.fix_relative (s, id);    - // if(!id->pragma["no-cache"] && !nocache && (!id->auth || !id->auth[0])) { - // cache_key = - // s + "\0" + - // id->request_headers->cookie + "\0" + - // id->request_headers["user-agent"]; - // if(res = cache_lookup("file:"+name, cache_key)) - // return res; - // } -  +     if (fake_id->scan_for_query)    // FIXME: If we're using e.g. ftp this doesn't exist. But the    // right solution might be that clone_me() in an ftp id object    // returns a vanilla (i.e. http) id instead when this function is    // used.    s = fake_id->scan_for_query (s);    fake_id->raw_url=s;    fake_id->not_query=s;       if(!(m = get_file(fake_id,0,!not_internal))) {
Roxen.git/server/base_server/configuration.pike:1937:    destruct(m->file);    m->file = 0;    }       if(m->raw)    {    res -= "\r";    if(!sscanf(res, "%*s\n\n%s", res))    sscanf(res, "%*s\n%s", res);    } - // if (cache_key) - // cache_set("file:"+name, cache_key, res); +     return res;   }      int(0..1) is_file(string virt_path, RequestID id)   //! Is `virt_path' a file in our virtual filesystem?   {    return !!stat_file(virt_path, id);   }      array registered_urls = ({}), failed_urls = ({ });