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.18 2001/06/15 19:51:32 k%123.org Exp $ +  * $Id: listfonts.pike,v 1.19 2001/08/27 15:33:54 per 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:80:    "'></p><p><table width='70%'><tr><td align='left'>"    "<cf-cancel href='?class=maintenance'/></td><td align='right'>"    "<cf-next/></td></tr></table></p>");    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] ); +  string txt = 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+"'>"+lower_case(txt)+"</gtext><br>" -  "<gtext align='top' font='"+fn+"'>"+upper_case(txt)+"</gtext><p>"; +  "<gtext fontsize=16 align='top' font='"+fn+"'>"+Roxen.html_encode_string(txt)+"</gtext><br>" +  "<gtext fontsize=32 align='top' font='"+fn+"'>"+Roxen.html_encode_string(lower_case(txt))+"</gtext><br>" +  "<gtext fontsize=48 align='top' font='"+fn+"'>"+Roxen.html_encode_string(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 );   }