Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.253 2000/12/05 00:40:12 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.254 2000/12/30 07:21:15 per Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:492:   <noex>"+gtextargs+"</noex>",]);   #endif         // -------------------- Image cache functions --------------------      roxen.ImageCache image_cache;      string status() {    array s=image_cache->status(); -  return sprintf("<b>Images in cache:</b> %d images<br />\n<b>Cache size:</b> %s", -  s[0]/2, Roxen.sizetostring(s[1])); +  return sprintf("<b>Images in cache:</b> %d images<br />\n" +  "<b>Cache size:</b> %s", +  s[0], Roxen.sizetostring(s[1]));   }      mapping(string:function) query_action_buttons() {    return ([ "Clear cache":flush_cache ]);   }      void flush_cache() {    image_cache->flush();   }