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.   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.439 2001/06/21 10:23:27 wellhard Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.440 2001/06/22 02:59:33 nilsson 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:1914:   }      mapping error_file( RequestID id )   {    string data = query("ZNoSuchFile");    NOCACHE();   #if ROXEN_COMPAT <= 2.1    data = replace(data,({"$File", "$Me"}),    ({"&page.virtfile;", "&roxen.server;"}));   #endif -  id->misc->defines = ([ " _error":404 ]); -  return Roxen.http_rxml_answer( data, id, 0, "text/html" ); +  mapping res = Roxen.http_rxml_answer( data, id, 0, "text/html" ); +  res->error = 404; +  return res;   }      // this is not as trivial as it sounds. Consider gtext. :-)   array open_file(string fname, string mode, RequestID id, void|int internal_get)   {    if( id->conf && (id->conf != this_object()) )    return id->conf->open_file( fname, mode, id, internal_get );       Configuration oc = id->conf;    string oq = id->not_query;