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.549 2004/03/08 09:18:05 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.550 2004/03/13 16:13:14 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:1146:    int j = i * 2;    array color = hsv_to_rgb(hue, 255 - j, brightness);    if (small_version) {    bar->line(0, i, 15, i, @color);    } else {    bar->line(0, j, 29, j, @color);    bar->line(0, j + 1,29, j + 1, @color);    }    }    +  if (where >= 0 && where <= 255) {    where = 255 - where;    int hilite = (brightness > 128) ? 0 : 255;    if (small_version)    bar->line(0, where / 2, 15, where / 2, hilite, hilite, hilite);    else    bar->line(0, where, 29, where, hilite, hilite, hilite); -  +  }      #if constant(Image.JPEG) && constant(Image.JPEG.encode)    return ({ Image.JPEG.encode(bar), "image/jpeg" });   #else    return ({ Image.PNG.encode(bar), "image/png" });   #endif   }         // Inspired by the internal-gopher-... thingie, this is the images