Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.673 2009/04/20 14:09:30 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.674 2009/04/21 18:11:39 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:3255:    return 0;    }    if( sscanf(f, "internal-gopher-%s", f) &&    internal_gopher_image(f) )    return 1;    return 0;   }      array registered_urls = ({}), failed_urls = ({ });   array do_not_log_patterns = 0; - void start(int num) + int start(int num)   {    fix_my_url();      #if 0    report_debug(sprintf("configuration:start():\n"    " registered_urls: ({ %{%O, %}})\n"    " failed_urls: ({ %{%O, %}})\n"    " URLs: ({ %{%O, %}})\n",    registered_urls,    failed_urls,
Roxen.git/server/base_server/configuration.pike:3358:    SNMP.Counter64(lambda() { return hsent; },    "sentHeaders"),    SNMP.Counter64(lambda() { return requests; },    "numRequests"),    UNDEFINED, // NOTE: Reserved for modules!    }));    SNMP.set_owner(mib, this_object());    prot->mib->merge(mib);    }    } +  +  if (retrieve ("EnabledModules", this)["config_filesystem#0"]) +  return 1; // Signal that this is the admin UI config. +  return 0;   }      void save_me()   {    save_one( 0 );   }      void save(int|void all)   //! Save this configuration. If all is included, save all configuration   //! global variables as well, otherwise only all module variables.