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 - 2009, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.685 2009/11/03 14:08:44 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.686 2009/11/10 12:53:32 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)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:1135:   //! @[RoxenModule.module_local_id] when the @[RoxenModule.log_event]   //! wrapper is used. It should be unique within the configuration.   //! Valid characters are @expr{[-_.#a-zA-Z0-9]@} but the first   //! character has to be alphanumeric.   //!   //! @param action   //! An identifier for the specific event within the facility. Should   //! be enumerable. Valid characters are @expr{[-_.#a-zA-Z0-9]@}.   //!   //! @param resource - //! Identifies the resource that the event acts on. + //! Identifies the resource that the event acts on. Pass zero if a + //! resource isn't applicable.   //!   //! If applicable, this is the path within the virtual file system   //! of the module, beginning with a "@expr{/@}".   //!   //! Otherwise it is some other string, not beginning with   //! "@expr{/@}", that has a format suitable for describing the   //! resource handled by the facility, e.g. "@expr{pclass:17@}".   //!   //! This string should preferably contain URI valid chars only, but   //! other chars are allowed and will be encoded if necessary.
Roxen.git/server/base_server/configuration.pike:1192:       if (string format =    log_format[facility + "/" + action] ||    log_format[facility + "/*"] ||    // Also try without the module copy number if the facility    // appears to be a module identifier.    modname != "" && (log_format[modname + "/" + action] ||    log_format[modname + "/*"]) ||    log_format["*/*"])    roxen.run_log_event_format (format, log_function, -  facility, action, resource, info); +  facility, action, resource || "-", info);   }      array(string) userinfo(string u, RequestID|void id)   //! @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
Roxen.git/server/base_server/configuration.pike:4664:   <tr><td>$utc-date</td>    <td>UTC date formatted like '<code>2001-01-17</code>'.</td></tr>      <tr><td>$utc-time</td>    <td>UTC time formatted like '<code>13:00:00</code>'.</td></tr>   <tr><td>$bin-date</td>    <td>Unix time as a 32 bit integer in network byte order.</td></tr>   <tr><td>$resource</td>    <td>Resource identifier. For events, this is either a path to a    file (if it begins with '<code>/</code>') or some other kind of -  resource indentifier (otherwise).</td></tr> +  resource identifier (otherwise). It is '-' for events that doesn't +  act on any specific resource.</td></tr>   <tr><td>$server-uptime</td>    <td>Server uptime in seconds.</td></tr>   <tr><td>$server-cputime</td>    <td>Server cpu (user+system) time in milliseconds.</td></tr>   <tr><td>$server-usertime</td>    <td>Server cpu user time in milliseconds.</td></tr>   <tr><td>$server-systime</td>    <td>Server cpu system time in milliseconds.</td></tr>   </tbody></table>