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 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.590 2006/02/20 15:49:01 noring Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.591 2006/02/23 12:26:27 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:1195: Inside #if constant(Image.GIF) && constant(Image.PNG)
  array(mapping) spinner_data = 0;      // Returns tuple < image, mime type >   static array(string) draw_spinner(string bgcolor)   {    // Parse color    array color = parse_color(bgcolor);       // Load all spinner PNGs    if (!spinner_data) { -  spinner_data = ({ }); +  array(mapping) temp_spinner_data = ({ });    for (int i = 0; i < 12; i++) {    string src = lopen("roxen-images/spinner" + i + ".png", "r")->read(); -  spinner_data += ({ Image.PNG._decode(src) }); +  temp_spinner_data += ({ Image.PNG._decode(src) });    } -  +  spinner_data = temp_spinner_data;    }       // Create non-transparent Image object for each frame    array(Image.Image) frames = ({ });    foreach(spinner_data, mapping data) {    Image.Image frame = Image.Image(17, 17, @color);    frame->paste_mask(data->image, data->alpha);    frames += ({ frame });    }