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.32 2000/07/10 22:41:13 nilsson Exp $ + // $Id: global_variables.pike,v 1.33 2000/07/11 01:51:59 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>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>      //<locale-token project="base_server">LOCALE</locale-token> - #define LOCALE(X,Y) (Y) + static inline object GETLOCOBJ() { +  return roxenp()->locale->get()->base_server; + } + #define LOCALE(X,Y) _DEF_LOCALE(X,Y)      mixed save()   {    store( "Variables", variables, 0, 0 );   }      // The following three functions are used to hide variables when they   // are not used. This makes the user-interface clearer and quite a lot   // less clobbered.   
Roxen.git/server/base_server/global_variables.pike:519: Inside #if undefined(__NT__)
   TYPE_INT_LIST|VAR_MORE,    LOCALE("", "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    -  /* -  defvar("locale", "standard", "Language", TYPE_STRING_LIST, -  "Locale, used to localise all messages in roxen.\n" - "Standard means using the default locale, which varies according to the - value of the 'LANG' environment variable.", -  (sort(indices(RoxenLocale)) - ({ "Modules" }))); -  */ +     -  +  defvar("locale", "standard", LOCALE("", "Default language"), TYPE_STRING_LIST, +  LOCALE("", "Locale, used to localise all messages in roxen.\n" +  "Standard means using the default locale, which varies according to the " +  "value of the 'LANG' environment variable."), + #if constant(Locale.list_languages) +  sort(Locale.list_languages("base_server")) + #else +  sort(RoxenLocale.list_languages("base_server")) + #endif +  ); +     defvar("suicide_engage", 0,    LOCALE("", "Auto Restart: Enable Automatic Restart"),    TYPE_FLAG|VAR_MORE,    LOCALE("", "If set, Roxen will automatically restart after a configurable number of "    "days. Since Roxen uses a monolith, non-forking server model the process tends "    "to grow in size over time. This is mainly due to heap fragmentation but also "    "because of memory leaks.")    );       defvar("suicide_timeout", 7,