Branch: Tag:

2001-03-03

2001-03-03 07:15:13 by Per Hedbor <ph@opera.com>

Added groups concept for modules in the configuration interface. Basically, if a module is names Foo: bar, it will belong to the group 'Foo'. Groups with more than one module will by default be 'folded' when shown in the configuration interface.

Rev: server/base_server/config_userdb.pike:1.24
Rev: server/config_interface/settings.html:1.17
Rev: server/config_interface/sites/add_module.pike:1.53
Rev: server/config_interface/sites/check-valid-url.pike:1.4
Rev: server/config_interface/sites/config_left_item.pike:1.49
Rev: server/config_interface/sites/site_content.pike:1.106
Rev: server/config_interface/sites/site_header.pike:1.18
Rev: server/modules/scripting/cgi.pike:2.55
Rev: server/modules/scripting/fastcgi.pike:2.8
Rev: server/modules/scripting/perl.pike:2.16
Rev: server/modules/scripting/php4.pike:2.15
Rev: server/modules/scripting/pikescript.pike:1.70
Rev: server/modules/scripting/servlet.pike:2.19

276:   {    return "";   } + string strip_leading( string what ) + { +  sscanf( (string)what, "%*s:%s", what ); +  return what; + }    -  +    function describe_module_normal( int image )   {    return lambda( object module, object block)
311:    </td>    </tr>   ", -  Roxen.html_encode_string(module->get_name()), +  Roxen.html_encode_string(strip_leading(module->get_name())),    (image?module_image(module->type):""),    module->sname,    LOCALE(251, "Add Module"),
383:    </td><td valign='top'>%s<p>%s</p></td>    </tr>   ", -  Roxen.html_encode_string(module->get_name()), +  Roxen.html_encode_string(strip_leading(module->get_name())),    module_image(module->type),    module->sname, -  Roxen.html_encode_string(module->get_name()), +  Roxen.html_encode_string(strip_leading(module->get_name())),    module->get_description(),    LOCALE(266, "Will be loaded from: ")+module->filename    );
452:   string describe_module_compact( object module, object block )   {    if(!block) -  return "<option value='"+module->sname+"'>"+Roxen.html_encode_string(module->get_name())+"</option>"; +  return "<option value='"+module->sname+"'>"+Roxen.html_encode_string(strip_leading(module->get_name()))+"</option>";    return "";   }   
556:    num++;    res += "<tr><td colspan='3'><h2>"    +LOCALE(1,"Initial variables for ")+ -  Roxen.html_encode_string(mi->get_name())+"</h2></td></tr>" +  Roxen.html_encode_string(strip_leading(mi->get_name())) +  +"</h2></td></tr>"    "<emit source='module-variables' "    " configuration=\""+conf->name+"\""    " module=\""+mod+#"\"/>