Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:3061:   #endif    res = Roxen.http_rxml_answer( data, id, 0, "text/html" );    id->root_id->misc->generate_file_not_found = 0;    }    NOCACHE();    return res;   }      mapping auth_failed_file( RequestID id, string message )   { +  NOCACHE(); +     // Avoid recursion in 401 messages. This could occur if the 401    // messages used files that also cause access denied.    if(id->root_id->misc->generate_auth_failed)    return Roxen.http_low_answer(401, "<title>Access Denied</title>"    "<h2 align=center>Access Denied</h2>");    id->root_id->misc->generate_auth_failed = 1;       string data = "<return code='401' />" + query("ZAuthFailed"); -  NOCACHE(); +     mapping res = Roxen.http_rxml_answer( data, id, 0, "text/html" );    id->root_id->misc->generate_auth_failed = 0;    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,    void|int recurse_count)   {    mapping|int(0..1) file;