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.373 2000/09/19 09:24:47 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.374 2000/09/19 12:10:04 jhs 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:544:       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 );   }      public array(string) userinfo(string u, RequestID|void id) + //! Fetches user information from the authentication module by calling + //! its userinfo() method. Returns zero if no auth module was present.   { -  if(auth_module) return auth_module->userinfo(u); +  if(auth_module) return auth_module->userinfo(u, id);    else report_warning(sprintf("userinfo(): %s\n"    "%s\n",    LOC_M(38, "No authorization module"),    describe_backtrace(backtrace())));   }      public array(string) userlist(RequestID|void id) -  + //! Fetches the full list of valid usernames from the authentication + //! module by calling its userlist() method. Returns zero if no auth + //! module was present.   { -  if(auth_module) return auth_module->userlist(); +  if(auth_module) return auth_module->userlist(id);    else report_warning(sprintf("userlist(): %s\n"    "%s\n",    LOC_M(38, "No authorization module"),    describe_backtrace(backtrace())));   }      public array(string) user_from_uid(int u, RequestID|void id) -  + //! 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.   {    if(auth_module) -  return auth_module->user_from_uid(u); +  return auth_module->user_from_uid(u, id);    else report_warning(sprintf("user_from_uid(): %s\n"    "%s\n",    LOC_M(38, "No authorization module"),    describe_backtrace(backtrace())));   }      public string last_modified_by(Stdio.File file, RequestID id)   {    Stat s;    int uid;