Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.553 2004/04/17 16:04:59 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.554 2004/04/19 14:25:15 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.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:2336:    destruct (fake_id);    return res;   }      static RequestID make_fake_id (string s, RequestID id)   {    RequestID fake_id;       // id->misc->common is here for compatibility; it's better to use    // id->root_id->misc. -  if ( !id->misc ) -  id->misc = ([]); +     if ( !id->misc->common )    id->misc->common = ([]);       fake_id = id->clone_me();       fake_id->misc->common = id->misc->common;    fake_id->conf = this_object();       if (fake_id->scan_for_query)    // FIXME: If we're using e.g. ftp this doesn't exist. But the
Roxen.git/server/base_server/configuration.pike:2390:   //! sent directly to the client. Internal requests are recognized by   //! the id->misc->internal_get flag being non-zero.   {    string res;    RequestID fake_id = make_fake_id (s, id);    mapping m;       fake_id->misc->internal_get = !not_internal;    fake_id->method = "GET";    -  array a = open_file( s, "r", fake_id, !not_internal ); +  array a = open_file( fake_id->not_query, "r", fake_id, !not_internal );    if(a && a[0]) {    m = a[1];    m->file = a[0];    }    else {    destruct (fake_id);    return 0;    }       CACHE( fake_id->misc->cacheable );