Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
-
/* $Id: module.pike,v 1.
47
1999/10/
04
15
:
11
:
54
per Exp $ */
+
/* $Id: module.pike,v 1.
48
1999/10/
12
13
:
19
:
17
per Exp $ */
#include <module.h> #include <request_trace.h> mapping (string:mixed *) variables=([]); object this = this_object(); constant module_type = MODULE_PARSER; constant module_name = "Unnamed module"; constant module_doc = "Undocumented"; constant module_unique = 1;
Roxen.git/server/base_server/module.pike:91:
string info(object conf) { return (this->register_module(conf)[2]); } static class ConfigurableWrapper { int mode; function f;
-
int check()
+
int check(
int|void more, int|void expert
)
{
-
if ((mode & VAR_EXPERT) &&
-
(
!
roxen->configuration_interface()->
expert
_mode
)
) {
+
if ((mode & VAR_EXPERT) && !expert)
return 1;
-
}
-
if ((mode & VAR_MORE) &&
-
(
!
roxen->configuration_interface()->
more
_mode
)
) {
+
if ((mode & VAR_MORE) && !more)
return 1;
-
+
return f();
}
-
return(f());
-
}
+
void create(int mode_, function f_) { mode = mode_; f = f_; } }; constant reg_s_loc = Locale.Roxen.standard.register_module_doc; // Define a variable, with more than a little error checking...