Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.346 2000/08/22 08:34:45 lange Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.347 2000/08/22 22:48:53 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/configuration.pike:2000:   //! Is `virt_path' a file in our virtual filesystem?   {    return !!stat_file(virt_path, id);   }      array registered_urls = ({});   array do_not_log_patterns = 0;   void start(int num)   {    // Note: This is run as root if roxen is started as root -  foreach( query( "URLs" )-registered_urls, string url ) -  { -  registered_urls += ({ url }); -  roxenp()->register_url( url, this_object() ); -  } +     foreach( registered_urls-query("URLs"), string url )    {    registered_urls -= ({ url });    roxenp()->unregister_url( url );    } -  +  foreach( query( "URLs" )-registered_urls, string url ) +  { +  registered_urls += ({ url }); +  roxenp()->register_url( url, this_object() ); +  }    if( !datacache )    datacache = DataCache( );    else    datacache->init_from_variables();       parse_log_formats();    init_log_file();    do_not_log_patterns = query("NoLog");    if(!sizeof(do_not_log_patterns))    do_not_log_patterns = 0;