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 - 2004, Roxen IS. - // $Id: global_variables.pike,v 1.105 2008/01/10 15:35:50 jonasw Exp $ + // $Id: global_variables.pike,v 1.106 2008/02/05 15:42:14 grubba Exp $      // #pragma strict_types   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>
Roxen.git/server/base_server/global_variables.pike:47:   {    function(DEFVAR) defvar = o->defvar;       defvar( "require_auth", 1,    LOCALE(309,"Require user with the 'hilfe' permission"), TYPE_FLAG,    LOCALE(310,"If yes, require a user with the hilfe permission "    "set, otherwise, any configuration interface user will "    "be allowed, even one with only the view settings permission." ) );   }    + #if 0 + void set_up_snmp_variables( Protocol o ) + { +  function(DEFVAR) defvar = o->defvar;    -  +  defvar("snmp_community", ({"public:ro"}), "Community string", +  TYPE_STRING_LIST, +  "One community name per line. Default permissions are 'read-only'. " +  "'Read-write' permissions can be specified by appending :rw to the " +  "community name (for example mypub:rw)."); + /* +  defvar("snmp_mode", "smart", "Agent mode", +  TYPE_STRING_LIST, +  "Standard SNMP server mode, muxed SNMP mode, " +  "proxy, agentx or automatic (smart) mode.", +  ({"smart", "agent", "agentx", "smux", "proxy" })); + */ +  defvar("snmp_global_traphosts", ({}),"Trap destinations", +  TYPE_STRING_LIST, +  "The SNMP traphost URL for sending common traps (like coldstart)."); +  +  defvar("snmp_syscontact","","System MIB: Contact", +  TYPE_STRING, +  "The textual identification of the contact person for this managed " +  "node, together with information on how to contact this person."); +  defvar("snmp_sysname","","System MIB: Name", +  TYPE_STRING, +  "An administratively-assigned name for this managed node. By " +  "convention, this is the node's fully-qualified domain name."); +  defvar("snmp_syslocation","","System MIB: Location", +  TYPE_STRING, +  "The physical location of this node (e.g., `telephone closet, 3rd " +  "floor')."); +  defvar("snmp_sysservices",72,"System MIB: Services", +  TYPE_INT, +  "A value which indicates the set of services that this entity " +  "primarily offers."); + #if 0 +  defvar("site_id", 0, +  LOCALE(0, "SNMP sub-MIB"), TYPE_INT, +  LOCALE(0, "MIB suffix to 1.3.6.1.4.1.8614.1.1.2 " +  "identifying this site.")); + #endif /* 0 */ + } + #endif /* 0 */ +    void set_up_ftp_variables( Protocol o )   {    function(DEFVAR) defvar = o->defvar;          defvar( "FTPWelcome",    " +------------------------------------------------\n"    " +-- Welcome to the Roxen FTP server ---\n"    " +------------------------------------------------\n",    LOCALE(60, "Welcome text"), TYPE_TEXT,
Roxen.git/server/base_server/global_variables.pike:257:    "will log it as if the entire 1000 bytes were downloaded. "    "<p>This is useful if you want to know if downloads were successful "    "(the user has the complete file downloaded). The drawback is that "    "bandwidth statistics on the log file will be incorrect. The "    "statistics in Roxen will still be correct.</p>"));       defvar("default_font", "roxen builtin", LOCALE(92, "Default font"),    TYPE_FONT,    LOCALE(93, "The default font to use when modules request a font."));    -  defvar("font_dirs", ({ combine_path(getenv("LOCALDIR") || "../local", "fonts/"), -  "nfonts/" })+ - #ifdef __NT__ -  ({combine_path(replace(getenv("SystemRoot"),"\\","/"),"fonts/")}) - #else -  ((getenv("RX_FONTPATH")||"")/","-({""})) - #endif -  , LOCALE(94, "Font directories"), -  TYPE_DIR_LIST, +  defvar("font_dirs", roxenloader.default_roxen_font_path, +  LOCALE(94, "Font directories"), TYPE_DIR_LIST,    LOCALE(95, "This is where the fonts are located."));       defvar("font_oversampling", 1, LOCALE(521, "Font oversampling"),    TYPE_FLAG,    LOCALE(522, "If set to Yes, fonts will be oversampled resulting "    "in higher quality but more fuzz. This will require clearing "    "of various graphics caches like the Graphic text and "    "GButton caches to take full effect."));       defvar("logdirprefix", getenv("LOGDIR") || "../logs/",
Roxen.git/server/base_server/global_variables.pike:432:   Roxen process no longer can read files it previously has written.   The start script attempts to fix this for the standard file locations.</p>"));       defvar("permanent_uid", 0, LOCALE(130, "Change uid and gid permanently"),    TYPE_FLAG,    LOCALE(131, "If this variable is set, Roxen will set it's uid and gid "    "permanently. This disables the 'exec script as user' features "    "for CGI, and also 'access files as user' in the filesystems, but "    "it gives better security."));    -  defvar("ModuleDirs", ({ combine_path(getenv("LOCALDIR") || "../local", "modules/"), -  "modules/" }), +  defvar("ModuleDirs", roxenloader.default_roxen_module_path,    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",    Variable.Text( "#include <etc/supports>\n",    VAR_MORE, LOCALE(134, "Client supports regexps"),