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.561 2004/04/28 17:48:35 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.562 2004/04/29 16:11:17 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:917:      User authenticate( RequestID id, UserDB|void database)   //! Try to authenticate the request with users from the specified user   //! database. If no @[database] is specified, all datbases in the   //! current configuration are searched in priority order.   //!   //! The return value is the autenticated user.   //! id->misc->authenticated_user is always set to the return value.   {    User u; +  if (!zero_type (u = id->misc->authenticated_user)) +  return u;    foreach( auth_modules(), AuthModule method )    if( u = method->authenticate( id, database ) )    return id->misc->authenticated_user = u;   }      mapping authenticate_throw( RequestID id, string realm,    UserDB|void database)   //! Returns a reply mapping, similar to @[Roxen.http_rxml_reply] with   //! friends. If no @[database] is specified, all datbases in the   //! current configuration are searched in priority order.
Roxen.git/server/base_server/configuration.pike:1321:    if (stringp(m->extra_heads["content-type"]) ||    stringp(m->type)) {    res += sprintf(" of %O", m->type||m->extra_heads["content-type"]);    }       res+="<br />";       return res;   }    - #if 0 +    //! Attempt to lock @[path].   //!   //! @param path   //! Path to lock.   //!   //! @param locktype   //! Type of lock (currently only @expr{"DAV:write"@} is defined).   //!   //! @param lockscope   //! Scope of lock either @expr{"DAV:exclusive"@} or
Roxen.git/server/base_server/configuration.pike:1423: Inside #if 0
   if (!sizeof(locks)) {    // None of the location modules support locking (readonly?).    return Roxen.http_status(501);    }       // FIXME: Timeout handling?       // Success.    return locktoken;   } - #endif +       mapping|int(-1..0) low_get_file(RequestID id, int|void no_magic)   //! The function that actually tries to find the data requested. All   //! modules except last and filter type modules are mapped, in order,   //! and the first one that returns a suitable response is used. If   //! `no_magic' is set to one, the internal magic roxen images and the   //! @[find_internal()] callbacks will be ignored.   //!   //! The return values 0 (no such file) and -1 (the data is a   //! directory) are only returned when `no_magic' was set to 1;