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.347 2000/08/22 22:48:53 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.348 2000/08/22 22:57:24 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:207:    CATCH("stopping directory module",    dir_module && dir_module->stop && dir_module->stop());    for(int i=0; i<10; i++)    CATCH("stopping priority group",    (pri[i] && pri[i]->stop && pri[i]->stop()));    CATCH("stopping the logger",    log_function && lambda(mixed m){    destruct(m);    }(function_object(log_function)));    foreach( registered_urls, string url ) -  roxen->unregister_url(url); +  roxen.unregister_url(url);   }      public string type_from_filename( string file, int|void to, string|void myext )   {    array(string)|string tmp;    if(!types_fun)    return to?({ "application/octet-stream", 0 }):"application/octet-stream";       string ext=myext || Roxen.extension(file);   
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( registered_urls-query("URLs"), string url ) -  { -  registered_urls -= ({ url }); -  roxenp()->unregister_url( url ); -  } -  foreach( query( "URLs" )-registered_urls, string url ) -  { +  foreach( registered_urls, string url ) +  roxen.unregister_url( url ); +  +  registered_urls = ({ }); +  +  foreach( query( "URLs" ), string url ) +  if( roxen.register_url( url, this_object() ) )    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;