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

version» Context lines:

Roxen.git/server/config_interface/sites/add_module.pike:313:    </form>    </td>    <td valign='top'>    %s    <p>    %s    </p>    </td>    </tr>   ", -  Roxen.html_encode_string(strip_leading(module->get_name())), +  //Roxen.html_encode_string(strip_leading(module->get_name())), +  Roxen.html_encode_string(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 "";
Roxen.git/server/config_interface/sites/add_module.pike:389:   return sprintf(   #"    <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(strip_leading(module->get_name())), +  Roxen.html_encode_string(module->get_name()),    Roxen.html_encode_string (module->sname),    module_image(module->type),    module->sname, -  Roxen.html_encode_string(strip_leading(module->get_name())), +  //Roxen.html_encode_string(strip_leading(module->get_name())), +  Roxen.html_encode_string(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:461:    if(first++)    res = "</select><br /><submit-gbutton> "+LOCALE(251, "Add Module")+" </submit-gbutton> ";    res += "<p><a name="+Roxen.http_encode_string(c)+    "></a><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) { -  string modname = strip_leading (module->get_name()); +  //string modname = strip_leading (module->get_name()); +  string modname = 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 )
Roxen.git/server/config_interface/sites/add_module.pike:513:    roxen->clear_all_modules_cache();    }       array mods;    roxenloader.push_compile_error_handler( ec );    mods = roxen->all_modules();    roxenloader.pop_compile_error_handler();       sort(map(mods->get_name(), lambda(LocaleString in) {    in = lower_case((string)in); -  sscanf(in, "%*s: %s", in); +  //sscanf(in, "%*s: %s", in);    return in;    }), mods);    string res = "";       mixed r;    if( (r = class_visible_compact( LOCALE(258,"Add module"),    LOCALE(273,"Select one or several modules to add.")    , id )) && r[0] ) {    res += r[1];    foreach(mods, object q) {
Roxen.git/server/config_interface/sites/add_module.pike:574:    {    ModuleInfo mi = roxen.find_module( (mod/"!")[0] );    RoxenModule moo = conf->find_module( replace(mod,"!","#") );    foreach( indices(moo->query()), string v )    {    if( moo->getvar( v )->get_flags() & VAR_INITIAL )    {    num++;    res += "<tr><td colspan='3'><h2>"    +LOCALE(1,"Initial variables for ")+ -  Roxen.html_encode_string(strip_leading(mi->get_name())) +  //Roxen.html_encode_string(strip_leading(mi->get_name())) +  Roxen.html_encode_string(mi->get_name())    +"</h2></td></tr>"    "<emit source='module-variables' "    " configuration=\""+conf->name+"\""    " module=\""+mod+#"\"/>    <emit noset='1' source='module-variables' "    " configuration=\""+conf->name+"\""    " module=\""+mod+#"\">    <tr>    <td width='150' valign='top' colspan='2'><b>&_.name;</b></td>    <td valign='top'><eval>&_.form:none;</eval></td></tr>