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.576 2004/05/18 12:46:53 anders Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.577 2004/05/20 21:43:31 jonasw 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:1637: Inside #if undefined(NO_INTERNAL_HACK) and #if ROXEN_COMPAT <= 2.1
   (file[0] == '/') &&    sscanf(file, "%*s/internal-%s-%[^/]", type, loc) == 3   #else    sscanf(file, "/internal-%s-%[^/]", type, loc) == 2   #endif    ) {    switch(type) {    case "roxen":    // Mark all /internal-roxen-* as cacheable even though the user might be    // authenticated (which normally disables protocol-level caching). -  RAISE_CACHE(9999); +  RAISE_CACHE(60 * 60 * 24 * 365); // 1 year    PROTO_CACHE();       TRACE_LEAVE("Magic internal roxen image");    if(loc=="unit" || loc=="pixel-of-destiny")    {    TIMER_END(internal_magic);    return (["data":"GIF89a\1\0\1\0\200ÿ\0ÀÀÀ\0\0\0!ù\4\1\0\0\0\0,"    "\0\0\0\0\1\0\1\0\0\1\1""2\0;",    "type":"image/gif",    "stat": ({0, 0, 0, 900000000, 0, 0, 0})]);