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.405 2001/01/03 04:08:11 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.406 2001/01/04 06:29:04 nilsson 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:998:    mapping|object(Stdio.File)|int fid;       if(!no_magic)    {   #ifndef NO_INTERNAL_HACK    // Find internal-foo-bar images    // min length == 17 (/internal-roxen-?..)    // This will save some time indeed.    string type;    if(sizeof(file) > 17 && - #ifdef OLD_RXML_COMPAT + #if ROXEN_COMPAT <= 2.1    (file[0] == '/') &&    sscanf(file, "%*s/internal-%s-%[^/]", type, loc) == 3   #else    sscanf(file, "/internal-%s-%[^/]", type, loc) == 2   #endif    ) {    switch(type) {    case "roxen":    TRACE_LEAVE("Magic internal roxen image");    if(loc=="unit" || loc=="pixel-of-destiny")
Roxen.git/server/base_server/configuration.pike:1585:    TRACE_LEAVE("");    }    }    TRACE_LEAVE("Returned 'no such file'.");   }      mapping error_file( RequestID id )   {    string data = query("ZNoSuchFile");    NOCACHE(); - #ifdef OLD_RXML_COMPAT + #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" );   }      // this is not as trivial as it sounds. Consider gtext. :-)   array open_file(string fname, string mode, RequestID id, void|int internal_get)   {