Roxen.git
/
server
/
config_interface
/
sites
/
add_module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/config_interface/sites/add_module.pike:1:
-
// $Id: add_module.pike,v 1.
89
2008
/
10
/
01
09
:
20
:
18
jonasw Exp $
+
// $Id: add_module.pike,v 1.
90
2009
/
03
/
17
16
:
37
:
52
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:340:
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() ||
-
LOCALE(
0
, "Undocumented")));
+
LOCALE(
1023
, "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() || LOCALE(
0
, "Undocumented"),
+
module->get_description() || LOCALE(
1023
, "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() || LOCALE(
0
, "Undocumented"),
+
module->get_description() || LOCALE(
1023
, "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,