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.385 2000/11/24 15:52:04 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.386 2000/12/10 02:01:44 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:218:    CATCH("stopping the logger",    log_function && lambda(mixed m){    destruct(m);    allmods[m] = 0;    }(function_object(log_function)));    foreach (indices (allmods), RoxenModule m)    CATCH ("stopping unclassified module",    m && m->stop && m->stop());    foreach( registered_urls, string url )    roxen.unregister_url(url); +  registered_urls = ({});   }      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);