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.116 2009/03/17 16:37:51 jonasw Exp $ + // $Id: global_variables.pike,v 1.117 2009/04/23 18:06:35 jonasw 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:18:   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.      private int(0..1) cache_disabled_p() { return !query("cache"); } - private int(0..1) syslog_disabled() { return query("LogA")!="syslog"; } +    private int(0..1) ident_disabled_p() { return [int(0..1)]query("default_ident"); } -  + #if efun(syslog) + private int(0..1) syslog_disabled() { return query("LogA")!="syslog"; } + #endif      protected void cdt_changed (Variable.Variable v);   void slow_req_count_changed();   void slow_req_timeout_changed();   void slow_be_timeout_changed();      #ifdef SNMP_AGENT   private int(0..1) snmp_disabled() { return !query("snmp_agent"); }   private string snmp_get_cif_domain() {    //return(Standards.URI(roxenp()->configurations[0]->get_url()||"http://0.0.0.0")->host);