Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: global_variables.pike,v 1.48 2000/10/19 12:24:02 per Exp $ + // $Id: global_variables.pike,v 1.49 2000/11/17 23:23:19 nilsson Exp $      /*   #pragma strict_types   */   #define DEFVAR string,int|string,string|mapping,int,string|mapping(string:string),void|array(string),void|function:void   #define BDEFVAR string,int|string,string|mapping,int,string|mapping(string:string),void|array(string),void|mapping(string:mapping(string:string)):void      #include <module.h>   #include <roxen.h>   #include <config.h>
Roxen.git/server/base_server/global_variables.pike:422:       // FIXME: Should mention getcwd()    defvar("ModuleDirs", ({ "../local/modules/", "modules/" }),    LOCALE(132, "Module directories"),    TYPE_DIR_LIST,    LOCALE(133, "This is a list of directories where Roxen should look "    "for modules. Can be relative paths, from the "    "directory you started Roxen. "    "The directories are searched in order for modules."));    -  defvar("Supports", "#include <etc/supports>\n", -  LOCALE(134, "Client supports regexps"), -  TYPE_TEXT_FIELD|VAR_MORE, +  defvar("Supports", +  Variable.Text( "#include <etc/supports>\n", +  VAR_MORE, LOCALE(134, "Client supports regexps"),    LOCALE(135, "What do the different clients support?\n<br />"    "The default information is normally fetched from the file " -  "server/etc/supports in your Roxen directory.")); +  "server/etc/supports in your Roxen directory.") ) ) +  -> add_changed_callback( lambda(Variable.Text s) { +  roxenp()->initiate_supports(); +  cache.cache_expire("supports"); +  } );       defvar("audit", 0, LOCALE(136, "Logging: Audit trail"),    TYPE_FLAG,    LOCALE(137, "If Audit trail is set to Yes, all changes of uid will be "    "logged in the Event log."));      #if efun(syslog)    defvar("LogA", "file", LOCALE(138, "Logging: Debug log method"),    TYPE_STRING_LIST|VAR_MORE,    LOCALE(139, "What method to use for the debug log, default is file, "
Roxen.git/server/base_server/global_variables.pike:480: Inside #if efun(syslog)
   "All: Everything<br />"),    ({ "Fatal", "Errors", "Warnings", "Debug", "All" }),    syslog_disabled);       defvar("LogNA", "Roxen", LOCALE(148, "Logging: Log as"),    TYPE_STRING,    LOCALE(149, "When syslog is used, this will be the identification "    "of the Roxen daemon. The entered value will be appended to "    "all logs."),    0, syslog_disabled); - #endif + #endif // efun(syslog)      #ifdef THREADS    defvar("numthreads", 5, LOCALE(150, "Number of threads to run"),    TYPE_INT,    LOCALE(151, "The number of simultaneous threads Roxen will use.\n"    "<p>Please note that even if this is one, Roxen will still "    "be able to serve multiple requests, using a select loop based "    "system.\n"    "<i>This is quite useful if you have more than one CPU in "    "your machine, or if you have a lot of slow NFS accesses.</i></p>")); - #endif + #endif // THREADS    - #if 0 -  defvar("AutoUpdate", 1, -  LOCALE(152, "Update the supports database automatically"), -  TYPE_FLAG, -  LOCALE(153, "If set to Yes, the etc/supports file will be updated " -  "automatically from now and then. This is " -  "recomended, since you will then automatically get supports " -  "information for new clients, and new versions of old ones.")); -  -  defvar("next_supports_update", time(1)+3600, "", TYPE_INT,"",0,1); - #endif -  +    #ifndef __NT__    defvar("abs_engage", 0, LOCALE(154, "ABS: Enable Anti-Block-System"),    TYPE_FLAG|VAR_MORE,    LOCALE(155, "If set, the anti-block-system will be enabled. "    "This will restart the server after a configurable number of minutes if it "    "locks up. If you are running in a single threaded environment heavy "    "calculations will also halt the server. In multi-threaded mode bugs such as "    "eternal loops will not cause the server to reboot, since only one thread is "    "blocked. In general there is no harm in having this option enabled. "));       defvar("abs_timeout", 5, LOCALE(156, "ABS: Timeout"),    TYPE_INT_LIST|VAR_MORE,    LOCALE(157, "If the server is unable to accept connection for this many "    "minutes, it will be restarted. You need to find a balance: "    "if set too low, the server will be restarted even if it's doing "    "legal things (like generating many images), if set too high you might "    "get a long downtime if the server for some reason locks up."),    ({1,2,3,4,5,10,15}),    lambda() {return !QUERY(abs_engage);}); - #endif + #endif // __NT__       defvar("locale",    Variable.Language("Standard", ({ "Standard" }) +    Locale.list_languages("roxen_config"),    0, LOCALE(158, "Default language"),    LOCALE(159, "Locale, used to localize all "    "messages in Roxen. Standard means using "    "the default locale, which varies "    "according to the value of "    "the 'LANG' environment variable.")))