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.88 2008/06/12 07:24:19 erikd Exp $ + // $Id: add_module.pike,v 1.89 2008/10/01 09:20:18 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:327:    string doubles="", already="";    array w = map(mods, module_class, id);       mapping classes = ([]);    sort(w,mods);    for(int i=0; i<sizeof(w); i++)    {    mixed r = w[i];    if(!classes[r[0]])    classes[r[0]] = ([ "doc":r[1], "modules":({}) ]); -  if( mods[i]->get_description() ) +     classes[r[0]]->modules += ({ mods[i] });    }       multiset(ModuleInfo) search_modules;    if (string mod_query = id->variables->mod_query) {    array(string) mod_query_words = (lower_case(mod_query) / " ") - ({ "" });    search_modules = (< >);    foreach(mods, ModuleInfo m) {    string compare =    lower_case(((string) m->get_name() || "") + "\0" +    m->sname + "\0" +    m->filename + "\0" + -  Roxen.html_decode_string((string) m->get_description()||"")); +  Roxen.html_decode_string((string) m->get_description() || +  LOCALE(0, "Undocumented")));    search_miss:    {    foreach(mod_query_words, string w)    if (!has_value(compare, w))    break search_miss;    search_modules[m] = 1;    }    }    }   
Roxen.git/server/config_interface/sites/add_module.pike:446:    <p class='dimtext'>%s</p>    </td>    </tr>   ",    //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(), +  module->get_description() || LOCALE(0, "Undocumented"),    LOCALE(266, "Will be loaded from: ")+module->filename   );    } else {    if( block == module )    return "";    return "";    }    };   }   
Roxen.git/server/config_interface/sites/add_module.pike:553:    </td><td valign='top'>%s<p class='dimtext'>%s</p></td>    </tr>   ",    //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(module->get_name()), -  module->get_description(), +  module->get_description() || LOCALE(0, "Undocumented"),    LOCALE(266, "Will be loaded from: ")+module->filename    );    } else {    if( block == module )    return "";    return "";    }   }      array(int|string) class_visible_faster( string c, string d, int size,