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.375 2000/09/19 12:24:37 wing Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.376 2000/09/19 13:17:25 per 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:809:       // Automatically generated colorbar. Used by wizard code...    int hue,bright,w;    if(sscanf(from, "%*s:%d,%d,%d", hue, bright,w)==4) {    array bar = draw_saturation_bar(hue, bright, w);    return Roxen.http_string_answer(bar[0], bar[1]);    }       Stdio.File f;    +  if( !id->misc->internal_get )    if(f = lopen("roxen-images/"+from+".gif", "r"))    return (["file":f, "type":"image/gif", "stat":f->stat()]); -  if(f = lopen("roxen-images/"+from+".jpg", "r")) -  return (["file":f, "type":"image/jpeg", "stat":f->stat()]); +     if(f = lopen("roxen-images/"+from+".png", "r"))    return (["file":f, "type":"image/png", "stat":f->stat()]); -  +  +  if(f = lopen("roxen-images/"+from+".jpg", "r")) +  return (["file":f, "type":"image/jpeg", "stat":f->stat()]); +     if(f = lopen("roxen-images/"+from+".xcf", "r"))    return (["file":f, "type":"image/x-gimp-image", "stat":f->stat()]); -  +  +  if(f = lopen("roxen-images/"+from+".gif", "r")) +  return (["file":f, "type":"image/gif", "stat":f->stat()]);    // File not found.    return 0;   }         mapping (mixed:function|int) locks = ([]);      #ifdef THREADS   // import Thread;