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 - 2009, Roxen IS. - // $Id: global_variables.pike,v 1.124 2011/01/20 17:23:46 mast Exp $ + // $Id: global_variables.pike,v 1.125 2011/04/28 09:14:37 liin 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:959: Inside #if defined(SNMP_AGENT)
   defvar("snmp_sysservices",72,"SNMP: System MIB - Services",    TYPE_INT,    "A value which indicates the set of services that this entity "    "primarily offers.",    0, snmp_disabled);   #endif // SNMP_AGENT       defvar("global_position",    Variable.Variable(0, VAR_INVISIBLE));    + #ifdef ENABLE_OUTGOING_PROXY +  defvar("use_proxy", 0, +  LOCALE(0, "Proxy: Use proxy (experimental)"), TYPE_FLAG, +  LOCALE(0, "Use proxy for outgoing requests. E.g. when browsing " +  "external web sites through the Linkbrowser or when Insert " +  "cached-href fetches data from an external location.")); +  +  defvar("proxy_url", "", +  LOCALE(0, "Proxy: Proxy URL"), TYPE_STRING, +  LOCALE(0, "The URL of the proxy to use for outgoing requests.")); +  +  defvar("proxy_username", "", +  LOCALE(0, "Proxy: Proxy username"), TYPE_STRING, +  LOCALE(0, "Username for proxy authorization.")); +  +  defvar("proxy_password", "", +  LOCALE(0, "Proxy: Proxy password"), TYPE_STRING, +  LOCALE(0, "Password for proxy authorization.")); + #endif   }         void restore_global_variables()   {    mapping m = retrieve("Variables", 0);    setvars(retrieve("Variables", 0));    if( !m->argcache_secret ) save();    old_module_dirs = query( "ModuleDirs" );    getvar( "ModuleDirs" )->add_changed_callback( zap_all_module_caches );