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.404 2000/12/17 21:18:18 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.405 2001/01/03 04:08:11 nilsson Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.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:1008: Inside #if undefined(NO_INTERNAL_HACK) and #if defined(OLD_RXML_COMPAT)
  #ifdef OLD_RXML_COMPAT    (file[0] == '/') &&    sscanf(file, "%*s/internal-%s-%[^/]", type, loc) == 3   #else    sscanf(file, "/internal-%s-%[^/]", type, loc) == 2   #endif    ) {    switch(type) {    case "roxen":    TRACE_LEAVE("Magic internal roxen image"); -  if(loc=="unit") +  if(loc=="unit" || loc=="pixel-of-destiny")    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" ]); -  +  if(has_prefix(loc, "pixel-")) +  return (["data":sprintf("GIF89a\1\0\1\0\200\0\0\0\0\0%c%c%c,\0\0\0\0\1\0\1\0\0\2\2L\1\0;", +  @parse_color(loc[6..])), +  "type":"image/gif" ]); +     return internal_roxen_image(loc, id);       case "gopher":    TRACE_LEAVE("Magic internal gopher image");    return internal_gopher_image(loc);    }    }   #endif       // Locate internal location resources.