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.
83
2006/
01
/
25
10:
22
:
30
anders
Exp $
+
// $Id: add_module.pike,v 1.
84
2006/
02
/
07
10:
52
:
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:905:
if( !config_perm( "Site:"+conf->name ) ) return LOCALE(226,"Permission denied"); if( !conf->inited ) conf->enable_all_modules(); string method = get_method(id); if (id->variables->mod_query) {
+
// Force UTF-8 to please some browsers that can't guess charset in
+
// XMLHttpRequest communication.
+
id->set_output_charset && id->set_output_charset("UTF-8");
+
// This can be invoked from both Normal and Faster methods return (method == "faster" ? page_faster_search(id) : page_normal_search(id, 1)); } return this_object()["page_" + method]( id ); }