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.44 2000/09/19 12:24:38 wing Exp $ + // $Id: global_variables.pike,v 1.45 2000/09/19 12:46:28 lange 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:205:    constant type = "PortOptions";       int check_visibility(object id, int a, int b, int c, int d) { return 0; }    void set_from_form(object id ) { return; }    void create()    {    ::create( ([]), 0, 0, 0 );    }   };    - class LanguageList { -  inherit Variable.MultipleChoice; -  -  static string _title( string lang ) { -  return roxenp()->language(roxenp()->locale->get(), "language")(lang); -  } - } -  +    array(string) old_module_dirs;   void zap_all_module_caches( Variable.Variable v )   {    if( !equal( v->query(), old_module_dirs ) )    {    report_notice( "Module path changed - clearing all module caches\n" );    catch(this_object()->clear_all_modules_cache());    catch(map( this_object()->module_cache->list(),    this_object()->module_cache->delete ));    catch
Roxen.git/server/base_server/global_variables.pike:524: Inside #if undefined(__NT__)
   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    -  object languagelist = -  LanguageList("eng", +  defvar("locale", +  Variable.Language("Standard", ({ "Standard" }) +   #if constant(Locale.list_languages)    Locale.list_languages("roxen_config"),   #else    RoxenLocale.list_languages("roxen_config"),   #endif    0, LOCALE(158, "Default language"), -  LOCALE(159, "Locale, used to localize all messages in Roxen.\n" -  "Standard means using the default locale, which varies " -  "according to the value of the 'LANG' environment variable.")); -  -  languagelist->set_changed_callback( lambda(Variable.Variable s) { -  roxenp()->default_locale=roxenp()->verify_locale(QUERY(locale)); +  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."))) +  ->set_changed_callback( lambda(Variable.Variable s) { +  roxenp()->set_default_locale(QUERY(locale)); +  roxenp()->set_locale();    } );    -  defvar("locale", languagelist); -  +     defvar("suicide_engage", 0,    LOCALE(160, "Auto Restart: Enable Automatic Restart"),    TYPE_FLAG|VAR_MORE,    LOCALE(161, "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.")    );