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.534 2003/06/11 15:47:42 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.535 2003/06/16 13:32:28 grubba 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:1926:    } else if (d && has_prefix(loc, href_prefix) &&    ((d -= sizeof(loc[sizeof(href_prefix)..]/"/")) >= 0)) {    // loc = href_path + ...    // && recursion.    path = "";    } else {    TRACE_LEAVE("Miss");    continue;    }   #ifdef MODULE_LEVEL_SECURITY -  if(check_security(fun, id)) { +  int|mapping security_ret; +  if(security_ret = check_security(fun, id)) { +  if (mappingp(security_ret)) { +  TRACE_LEAVE("Security check return."); +  TRACE_LEAVE("Need authentication."); +  return security_ret; +  } else {    TRACE_LEAVE("Not allowed.");    continue;    } -  +  }   #endif    RoxenModule c = function_object(fun);    TRACE_ENTER("Performing the work...", c);    recur_func(path, d, c, result->prefix(loc), id, @extras);    TRACE_LEAVE("Done.");    TRACE_LEAVE("Done.");    }    TRACE_LEAVE("DAV request done.");    return result->http_answer();   }