Roxen.git / server / config_interface / sites / add_module.pike

version» Context lines:

Roxen.git/server/config_interface/sites/add_module.pike:1: - // $Id: add_module.pike,v 1.80 2005/12/17 22:51:57 jonasw Exp $ + // $Id: add_module.pike,v 1.81 2005/12/19 13:14:51 jonasw Exp $      #include <config_interface.h>   #include <module.h>   #include <module_constants.h>   #include <roxen.h>      int no_reload()   {    if( sizeof( already_added ) )    return 1; // Reloading this script now would destroy state.
Roxen.git/server/config_interface/sites/add_module.pike:467:    int x;    string method = get_method(id);    string header = ("<tr><td colspan='2'><table width='100%' "    "cellspacing='0' border='0' cellpadding='3' "    "bgcolor='&usr.content-titlebg;'><tr><td valign='top'>");       if (id->variables->mod_query) {    x = 1;    } else if( id->variables->unfolded == c) {    header+=("<a name='"+Roxen.html_encode_string(c)+ -  "'></a><gbutton hspace='5' " +  "'></a><gbutton hspace='5' vspace='5' "    "href='add_module.pike?config=&form.config;"    "&method=" + method + "#"+Roxen.http_encode_url(c)+"' > "+    LOCALE(168, "Hide")+" </gbutton>");    x=1;    } else {    header+=("<a name='"+Roxen.html_encode_string(c)+ -  "'></a><gbutton hspace='5' " +  "'></a><gbutton hspace='5' vspace='5' "    "href='add_module.pike?config=&form.config;"    "&method=" + method +    "&unfolded="+Roxen.http_encode_url(c)+    "#"+Roxen.http_encode_url(c)+"' > "+    LOCALE(267, "View")+" </gbutton>");    }       header+=("</td><td width='100%'>"    "<font color='&usr.content-titlefg;' size='+2'>"+c+"</font>"    "<br />"+d+"</td></tr></table></td></tr>\n");
Roxen.git/server/config_interface/sites/add_module.pike:570:   array(int|string) class_visible_faster( string c, string d, int size,    RequestID id )   {    int x;    string method = get_method(id);    string header = ("<tr><td colspan='2'><table width='100%' cellspacing='0' "    "border='0' cellpadding='3' bgcolor='&usr.content-titlebg;'>"    "<tr><td nowrap='nowrap' valign='top'>");       if (id->variables->mod_query) { -  header+=("<gbutton hspace='5' dim='1'> "+LOCALE(267, "View")+ +  header+=("<gbutton hspace='5' vspace='5' dim='1'> "+LOCALE(267, "View")+    " </gbutton><br>"    "<submit-gbutton hspace='5' vspace='2'> "+LOCALE(0, "Add Modules")+    " </submit-gbutton>");    x = 1;    } else if( id->variables->unfolded == c ) {    header+=("<a name='"+Roxen.html_encode_string(c)+ -  "'></a><gbutton hspace='5' dim='1'> "+LOCALE(267, "View")+ +  "'></a><gbutton hspace='5' vspace='5' dim='1'> "+LOCALE(267, "View")+    " </gbutton><br>"    "<submit-gbutton hspace='5' vspace='2'> "+LOCALE(0, "Add Modules")+    " </submit-gbutton>");    x=1;    }    else    header+=("<a name='"+Roxen.html_encode_string(c)+ -  "'></a><gbutton hspace='5' " +  "'></a><gbutton hspace='5' vspace='5' "    "href='add_module.pike?config=&form.config;"    "&method=" + method +    "&unfolded="+Roxen.http_encode_url(c)+    "#"+Roxen.http_encode_url(c)+"' > "+    LOCALE(267, "View")+" </gbutton>");       header+=("</td><td width='100%'>"    "<font color='&usr.content-titlefg;' size='+2'>"+c+"</font>"    "<br />"+d+"</td></tr></table></td></tr>\n");