Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.898 2006/09/08 07:13:54 noring Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.899 2006/09/14 09:23:21 wellhard Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:5344:    " ->RoxenUserID)||\"0\"",0 }),    ({ "user", "%s", "extract_user( request_id->realauth )",0 }),    ({ "request-time","%1.2f", "time(request_id->time )",0 }),    ({ "host", "\4711", 0, 1 }), // unlikely to occur normally    ({ "cache-status","%s", ("sizeof(request_id->cache_status||({}))?"    "indices(request_id->cache_status)*\",\":"    "\"nocache\""), 0 }),    ({ "eval-status","%s", ("sizeof(request_id->eval_status||({}))?"    "indices(request_id->eval_status)*\",\":"    "\"-\""), 0 }), -  ({ "content-type", "%s", "(file->type||\"-\")", 0 }), +  ({ "content-type", "%s", "((file->type || \"-\") / \";\")[0]", 0 }),    ({ "server-uptime", "%d", "max(1, time(1) - roxen->start_time)", 0 }),    ({ "server-cputime", "%d", "server_cputime()", 0 }),    ({ "server-usertime", "%d", "server_usertime()", 0 }),    ({ "server-systime", "%d", "server_systime()", 0 }),   });      void run_log_format( string fmt, function c, RequestID id, mapping file )   {    (compiled_formats[ fmt ] || compile_log_format( fmt ))(c,id,file);   }