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.546 2004/02/20 17:34:32 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.547 2004/03/03 16:04:11 anders 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:1434:    {    TRACE_LEAVE("");    TRACE_LEAVE(examine_return_mapping(fid));    TIMER_END(internal_magic);    return fid;    }    else    {   #ifdef MODULE_LEVEL_SECURITY    int oslevel = slevel; -  slevel = security_level_cache[ Roxen.get_owning_module (find_internal) ][1]; +  array slca; +  if(slca = security_level_cache[ Roxen.get_owning_module (find_internal) ]) +  slevel = slca[1];    // security_level_cache from    // check_security    id->misc->seclevel = slevel;   #endif    if(objectp(fid))    TRACE_LEAVE("Returned open filedescriptor. "   #ifdef MODULE_LEVEL_SECURITY    +(slevel != oslevel?    sprintf(" The security level is now %d.", slevel):"")   #endif
Roxen.git/server/base_server/configuration.pike:1556:    {    TRACE_LEAVE(""); // Location module [...]    TRACE_LEAVE(examine_return_mapping(fid));    TIMER_END(location_modules);    return fid;    }    else    {   #ifdef MODULE_LEVEL_SECURITY    int oslevel = slevel; -  slevel = security_level_cache[ Roxen.get_owning_module (tmp[1]) ][1]; +  array slca; +  if(slca = security_level_cache[ Roxen.get_owning_module (tmp[1]) ]) +  slevel = slca[1];    // security_level_cache from    // check_security    id->misc->seclevel = slevel;   #endif    if(objectp(fid))    TRACE_LEAVE("Returned open filedescriptor."   #ifdef MODULE_LEVEL_SECURITY    +(slevel != oslevel?    sprintf(" The security level is now %d.", slevel):"")   #endif