Roxen.git / server / base_server / mainconfig.pike

version» Context lines:

Roxen.git/server/base_server/mainconfig.pike:1:   inherit "config/builders"; - string cvs_version = "$Id: mainconfig.pike,v 1.124 1999/05/15 21:25:07 grubba Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.125 1999/05/18 03:54:10 per Exp $";   //inherit "roxenlib";      inherit "config/draw_things";      // import Array;   // import Stdio;      string status_row(object node);   string display_tabular_header(object node);   object get_template(string t);
Roxen.git/server/base_server/mainconfig.pike:1181:      int nunfolded(object o)   {    int i;    if(o = o->down)    do { i+=!o->folded; } while(o=o->next);    return i;   }       - object module_font = resolve_font("haru 32"); // default font. - object button_font = resolve_font("haru 32"); // default font. - mapping(string:object) my_colortable = ([]); + object module_font = resolve_font("haru 42"); + object button_font = resolve_font("haru 64");      mapping auto_image(string in, object id)   {    string key, value;    array trans = ({ dR, dG, dB });    mapping r;    mixed e;    object i;       in = charset_decode_from_url( in );
Roxen.git/server/base_server/mainconfig.pike:1258:    i=draw_selected_button(value,button_font);    break;       case "unselected":    i=draw_unselected_button(value,button_font);    break;    }       if (!i) return 0;    -  object ct; -  -  if (!(ct=my_colortable[key])) -  ct=my_colortable[key]=Image.colortable(i,256,4,4,4); - // colortable(4,4,8, - // ({0,0,0}),({255,255,0}),16, - // ({0,0,0}),({170,170,255}),48, - // ) +     object o = Stdio.File(encode_filename("roxen-images/"+img_key), "wct"); -  e=Image.GIF.encode(i,ct); +  e = Image.GIF.encode(i);    i=0; -  if(o) { o->write(e); o=0; } - #ifdef DEBUG -  else {perror("Cannot open file for "+in+"\n");} - #endif +  if(o) +  { +  o->write(e); +  o=0; +  }    return http_string_answer(e,"image/gif");   }         string remove_font(string t, mapping m, string c)   {    return "<b>"+c+"</b>";   }