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.   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.467 2001/08/22 22:23:15 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.468 2001/08/23 18:04:31 nilsson 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:758:   {    string b;    array foo=query("LogFormat")/"\n";    foreach(foo, b)    if(strlen(b) && b[0] != '#' && sizeof(b/":")>1)    log_format[(int)(b/":")[0]] = fix_logging((b/":")[1..]*":");   }      void log(mapping file, RequestID request_id)   { -  function f; -  +     // Call all logging functions -  foreach(logger_module_cache||logger_modules(), f) +  foreach(logger_module_cache||logger_modules(), function f)    if( f( request_id, file ) )    return;       if( !log_function ) -  return;// No file is open for logging. +  return; // No file is open for logging.       if(do_not_log_patterns &&    Roxen._match(request_id->remoteaddr, do_not_log_patterns))    return;       string form;    if(!(form=log_format[file->error]))    form = log_format[0];    if(!form) return;       roxen.run_log_format( form, log_function, request_id, file );   }      array(string) userinfo(string u, RequestID|void id) - //! @note DEPRECATED COMPATIBILITY FUNCTION + //! @note + //! DEPRECATED COMPATIBILITY FUNCTION   //!   //! Fetches user information from the authentication module by calling   //! its userinfo() method. Returns zero if no auth module was present.   //!   //! Note that you should always supply id if it's possible, some user   //! databases require it (such as the htaccess database)   {    User uid;    foreach( user_databases(), UserDB m )    if( uid = m->find_user( u ) )    return uid->compat_userinfo(id);   }      array(string) userlist(RequestID|void id) - //! @note DEPRECATED COMPATIBILITY FUNCTION + //! @note + //! DEPRECATED COMPATIBILITY FUNCTION   //!   //! Fetches the full list of valid usernames from the authentication   //! module by calling its userlist() method. Returns zero if no auth   //! module was present.   //!   //! Note that you should always supply id if it's possible, some user   //! databases require it (such as the htaccess database)   {    array(string) list = ({});    foreach( user_databases(), UserDB m )    list |= m->list_users(id);    return list;   }      array(string) user_from_uid(int u, RequestID|void id) - //! @note DEPRECATED COMPATIBILITY FUNCTION + //! @note + //! DEPRECATED COMPATIBILITY FUNCTION   //!   //! Return the user data for id u from the authentication module. The   //! id parameter might be left out if FTP. Returns zero if no auth   //! module was present.   //!   //! Note that you should always supply id if it's possible, some user   //! databases require it (such as the htaccess database)   {    User uid;    foreach( user_databases(), UserDB m )