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.475 2001/08/28 16:32:01 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.476 2001/08/30 04:09:17 per 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:1010: Inside #if defined(MODULE_LEVEL_SECURITY)
   if(mod && mod->query_seclevels)    misc_cache[ a ] = seclevels = ({    mod->query_seclevels(),    mod->query("_seclvl"),    });    else    misc_cache[ a ] = seclevels = ({0,0});    }       if(slevel && (seclevels[1] > slevel)) // "Trustlevel" to low. +  // Regarding memory cache: This won't have any impact, since it's +  // always the same, regardless of the client requesting the file.    return 1;       mixed err;    if( function(RequestID:int|mapping) f = seclevels[0] ) -  +  // And here we don't have to take notice of the RAM-cache either, +  // since the security patterns themselves does that. +  // +  // All patterns that varies depending on the client must use +  // NOCACHE(), to force the request to be uncached. +  //    err=catch { return f( id ); };    else    return 0; // Ok if there are no patterns.       report_error("check_security(): %s:\n%s\n",    LOC_M(39, "Error during module security check"),    describe_backtrace(err));       return 1;   }