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.396 2000/11/16 11:51:29 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.397 2000/11/20 13:36:33 per 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>   //<locale-token project="roxen_config"> LOC_C </locale-token>   //<locale-token project="roxen_message"> LOC_M </locale-token>   //<locale-token project="roxen_config"> DLOCALE </locale-token>   #define LOC_S(X,Y) _STR_LOCALE("roxen_start",X,Y)   #define LOC_C(X,Y) _STR_LOCALE("roxen_config",X,Y)   #define LOC_M(X,Y) _STR_LOCALE("roxen_message",X,Y) - USE_DEFERRED_LOCALE; +    #define DLOCALE(X,Y) _DEF_LOCALE("roxen_config",X,Y)   #define CALL(X,Y) _LOCALE_FUN("roxen_config",X,Y)         #ifdef THROTTLING_DEBUG   #undef THROTTLING_DEBUG   #define THROTTLING_DEBUG(X) werror("Throttling: "+X+"\n")   #else   #define THROTTLING_DEBUG(X)   #endif
Roxen.git/server/base_server/configuration.pike:2227: Inside #if defined(MODULE_LEVEL_SECURITY)
   "<p>In username: 'any' stands for any valid account "    "(from .htaccess"    " or an auth module. The default (used when _no_ "    "entries are present) is 'allow ip=*', allowing"    " everyone to access the module.</p>"));       if(!(module_type & MODULE_PROXY))    {    me->defvar("_seclvl", 0, DLOCALE(18, "Security: Security level"),    TYPE_INT, -  DLOCALE(0, "The modules security level is used to determine if a " +  DLOCALE(305, "The modules security level is used to determine if a "    " request should be handled by the module."    "\n<p><h2>Security level vs Trust level</h2>"    " Each module has a configurable <i>security level</i>."    " Each request has an assigned trust level. Higher"    " <i>trust levels</i> grants access to modules with higher"    " <i>security levels</i>."    "\n<p><h2>Definitions</h2><ul>"    " <li>A requests initial Trust level is infinitely high.</li>"    " <li> A request will only be handled by a module if its"    " <i>trust level</i> is higher or equal to the"
Roxen.git/server/base_server/configuration.pike:2813:    report_notice(LOC_S(4, "All modules for %s enabled in %3.1f seconds") +    "\n\n", query_name(), (gethrtime()-start_time)/1000000.0);   }      DataCache datacache;      static void create(string config)   {    name=config;    -  roxen.add_permission( "Site:"+config, LOC_C(0,"Site")+": "+config ); +  roxen.add_permission( "Site:"+config, LOC_C(306,"Site")+": "+config );       // for now only theese two. In the future there might be more variables.    defvar( "data_cache_size", 2048, DLOCALE(274, "Cache:Cache size"),    TYPE_INT| VAR_PUBLIC,    DLOCALE(275, "The size of the data cache used to speed up requests "    "for commonly requested files, in KBytes"));       defvar( "data_cache_file_max_size", 50, DLOCALE(276, "Cache:Max file size"),    TYPE_INT | VAR_PUBLIC,    DLOCALE(277, "The maximum size of a file that is to be considered for "
Roxen.git/server/base_server/configuration.pike:3008:    defvar("req_throttle_depth_mult", 60.0,    DLOCALE(56, "Throttling: Request; Bucket Depth Multiplier"),    TYPE_FLOAT,    DLOCALE(57, "The average bandwidth available for each request will be determined by "    "the modules combination. The bucket depth will be determined multiplying "    "the rate by this factor."),    0, arent_we_throttling_request);          defvar("404-files", ({ "404.inc" }), -  DLOCALE("", "No such file message override files"), +  DLOCALE(307, "No such file message override files"),    TYPE_STRING_LIST|VAR_PUBLIC, -  DLOCALE("", +  DLOCALE(308,    "If no file match a given resource all directories above the"    " wanted file is searched for one of the files in this list."    "<p>\n"    "As an example, if the file /foo/bar/not_there.html is "    "wanted, and this list contains the default value of 404.inc,"    " these files will be searched for, in this order:</p><br /> "    " /foo/bar/404.inc, /foo/404.inc and /404.inc." ) );