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.
22
1997/08/
19
00
:
36
:
11
grubba
Exp $ */
+
/* $Id: module.pike,v 1.
23
1997/08/
24
23
:
14
:
01
peter
Exp $ */
#include <module.h> mapping (string:mixed *) variables=([]); object this = this_object(); int module_type; string fix_cvs(string from) { from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""})); sscanf(from, "%*s,v %s", from); return from; }
-
+
int module_dependencies(object configuration, array (string) modules)
+
{
+
if(configuration)
+
{
+
foreach (modules, string module)
+
{
+
if(!configuration->modules[module] ||
+
(!configuration->modules[module]->copies &&
+
!configuration->modules[module]->master))
+
configuration->enable_module(module+"#0");
+
}
+
if(roxen->root)
+
roxen->configuration_interface()->build_root(roxen->root);
+
}
+
_do_call_outs();
+
return 1;
+
}
+
string file_name_and_stuff() { return ("<b>Loaded from:</b> "+(roxen->filename(this))+"<br>"+ (this->cvs_version?"<b>CVS Version: </b>"+fix_cvs(this->cvs_version)+"<nr>\n":"")); } object my_configuration() { object conf; foreach(roxen->configurations, conf)