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.332 2000/08/11 19:30:26 lange Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.333 2000/08/12 21:47:26 mast 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:837: Inside #if defined(MODULE_LEVEL_SECURITY)
   // ~0 OK -- Test passed.       if(!(seclevels = misc_cache[ a ])) {    object mod;    if (objectp (a))    if (a->query_seclevels) mod = a;    else    // It's probably an RXML.Tag object, and in that case we    // assume that the parent object is the module. FIXME: That's    // not necessarily true. -  mod = function_object (object_program (a)); +  catch (mod = function_object (object_program (a)));    else -  mod = function_object (a); -  if(mod->query_seclevels) +  catch (mod = function_object (a)); +  if(mod && mod->query_seclevels)    misc_cache[ a ] = seclevels = ({    mod->query_seclevels(),    mod->query("_seclvl"),    mod->query("_sec_group")    });    else    misc_cache[ a ] = seclevels = ({({}),0,"foo" });    }       if(slevel && (seclevels[1] > slevel)) // "Trustlevel" to low.
Roxen.git/server/base_server/configuration.pike:2244:    if( catch( nm = enable_module( modname, 0, 0, 1 ) ) || (nm == 0) )    enable_module( modname, (nm=old_module), mi, 1 );    else    {    foreach ((array) old_module->error_log, [string msg, array(int) times])    nm->error_log[msg] += times;       catch( mi->update_with( nm,0 ) ); // This is sort of nessesary...       nm->report_notice(LOC_C(11, "Reloaded %s.\n"), mi->get_name()); -  destruct( old_module ); +  // It's possible e.g. in the config interface that the module +  // being reloaded is in use for the current request, so delay it a +  // little. +  call_out (destruct, 2, old_module);    }       call_start_callbacks( nm, mi, modules[ (modname/"#")[0] ] );       return nm;   }      class ModuleCopies   {    mapping copies = ([]);