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 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.568 2004/05/06 16:51:16 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.569 2004/05/06 18:40:33 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)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:1449:   //! Scope of lock either @expr{"DAV:exclusive"@} or   //! @expr{"DAV:shared"@}.   //!   //! @returns   //! Returns a result mapping on failure,   //! and the resulting @[DAVLock] on success.   mapping(string:mixed)|DAVLock lock_file(string path,    int(0..1) recursive,    string lockscope,    string locktype, -  string owner, +  array(Parser.XML.Tree.Node) owner,    RequestID id)   {    // Canonicalize path.    if (!has_suffix(path, "/")) path+="/";       // First check if there's already some lock on path that prevents    // us from locking it.    int(0..3)|DAVLock lock_info = check_locks(path, recursive, id);       if (!intp(lock_info)) {
Roxen.git/server/base_server/configuration.pike:1732: Inside #if defined(URL_MODULES)
   }    TRACE_LEAVE("");    TIMER_END(url_modules);    }   #endif       TIMER_START(location_modules);    foreach(location_module_cache||location_modules(), tmp)    {    loc = tmp[0]; -  if(!search(file, loc)) +  if(has_prefix(file, loc))    {    TRACE_ENTER(sprintf("Location module [%s] ", loc), tmp[1]);   #ifdef MODULE_LEVEL_SECURITY    if(tmp2 = check_security(tmp[1], id, slevel))    if(intp(tmp2))    {    TRACE_LEAVE("Permission to access module denied.");    continue;    } else {    TRACE_LEAVE("");