Roxen.git / server / config_interface / actions / listfonts.pike

version» Context lines:

Roxen.git/server/config_interface/actions/listfonts.pike:1:   /* -  * $Id: listfonts.pike,v 1.17 2001/02/05 13:20:17 per Exp $ +  * $Id: listfonts.pike,v 1.18 2001/06/15 19:51:32 k%123.org Exp $    */      #include <roxen.h>   //<locale-token project="admin_tasks"> LOCALE </locale-token>   #define LOCALE(X,Y) _STR_LOCALE("admin_tasks",X,Y)      constant action = "status";      string name= LOCALE(10, "List fonts");   string doc = LOCALE(11, "List all available fonts");
Roxen.git/server/config_interface/actions/listfonts.pike:83:    return res;   }      string page_1(RequestID id)   {    string res="";    mapping v = id->real_variables;    string txt = Roxen.html_encode_string( v->text && v->text[0] );    foreach(roxen.fonts.available_fonts(), string fn)    res += Roxen.html_encode_string( fn )+":<br />\n" -  "<gtext align='top' font='"+fn+"'>"+txt+"</gtext><p>"; +  "<gtext align='top' font='"+fn+"'>"+lower_case(txt)+"</gtext><br>" +  "<gtext align='top' font='"+fn+"'>"+upper_case(txt)+"</gtext><p>";    return res+"<br /></p><p>\n<cf-ok/></p>";   }      mixed parse( RequestID id )   {    if( id->variables->doit )    return page_1( id );    return page_0( id );   }