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

version» Context lines:

Roxen.git/server/config_interface/sites/add_module.pike:274:   }      string module_image( int type )   {    return "";   }      string strip_leading( LocaleString what )   {    if( !what ) return 0; -  sscanf( (string)what, "%*s:%s", what ); +  sscanf( (string)what, "%*s:%*[ \t]%s", what );    return what;   }         function describe_module_normal( int image )   {    return lambda( object module, object block)    {    if(!block)    {   return sprintf(   #"    <tr>    <td colspan='2'>    <table width='100%%'>    <tr>    <td><font size='+2'>%s</font></td> -  <td align='right'>%s</td> +  <td align='right'>(%s) %s</td>    </tr>    </table>    </td>    </tr>    <tr>    <td valign='top'>    <form method='post' action='add_module.pike'>    <input type='hidden' name='module_to_add' value='%s'>    <input type='hidden' name='config' value='&form.config;'>    <submit-gbutton preparse='1'>%s</submit-gbutton>
Roxen.git/server/config_interface/sites/add_module.pike:314:    </td>    <td valign='top'>    %s    <p>    %s    </p>    </td>    </tr>   ",    Roxen.html_encode_string(strip_leading(module->get_name())), +  Roxen.html_encode_string (module->sname),    (image?module_image(module->type):""),    module->sname,    LOCALE(251, "Add Module"),    module->get_description(),    LOCALE(266, "Will be loaded from: ")+module->filename   );    } else {    if( block == module )    return "";    return "";
Roxen.git/server/config_interface/sites/add_module.pike:378:   {    return page_normal( id, 1 );   }      string describe_module_faster( object module, object block)   {    if(!block)    {   return sprintf(   #" -  <tr><td colspan='2'><table width='100%%'><td><font size='+2'>%s</font></td> -  <td align='right'>%s</td></table></td></tr> +  <tr><td colspan='2'><table width='100%%'> +  <td><font size='+2'>%s</font></td> +  <td align='right'>(%s) %s</td></table></td></tr>    <tr><td valign='top'><select multiple='multiple' name='module_to_add'>    <option value='%s'>%s</option></select>    </td><td valign='top'>%s<p>%s</p></td>    </tr>   ",    Roxen.html_encode_string(strip_leading(module->get_name())), -  +  Roxen.html_encode_string (module->sname),    module_image(module->type),    module->sname,    Roxen.html_encode_string(strip_leading(module->get_name())),    module->get_description(),    LOCALE(266, "Will be loaded from: ")+module->filename    );    } else {    if( block == module )    return "";    return "";
Roxen.git/server/config_interface/sites/add_module.pike:453:   {    string res="";    if(first++)    res = "</select><br /><submit-gbutton> "+LOCALE(251, "Add Module")+" </submit-gbutton> ";    res += "<p><font size='+2'>"+c+"</font><br />"+d+"<p><select multiple name='module_to_add'>";    return ({ 1, res });   }      string describe_module_compact( object module, object block )   { -  if(!block) -  return "<option value='"+module->sname+"'>"+Roxen.html_encode_string(strip_leading(module->get_name()))+"</option>"; +  if(!block) { +  string modname = strip_leading (module->get_name()); +  return "<option value='"+module->sname+"'>"+ +  Roxen.html_encode_string( +  modname + "\0240" * max (0, (int) ((40 - sizeof (modname)) * 1.4)) + +  " (" + module->sname + ")")+ +  "</option>\n"; +  }    return "";   }      string page_compact( RequestID id )   {    first=0;    string desc, err;    [desc,err] = get_module_list( describe_module_compact,    class_visible_compact, id );    return page_base(id,