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.
23
1997/
08
/
24
23
:
14
:
01
peter
Exp $ */
+
/* $Id: module.pike,v 1.
24
1997/
09
/
27
13
:
24
:
52
grubba
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 $" }), ({"","",""}));
Roxen.git/server/base_server/module.pike:335:
* Parse and return a parsed version of the security levels for this module * */ class IP_with_mask { int net; int mask; static private int ip_to_int(string ip) { int res;
-
foreach(ip/".", string num) {
+
foreach(
((
ip/"."
) + ({ "0"
,
"0", "0" }))[..3],
string num) {
res = res*256 + (int)num; } return(res); } void create(string _ip, string|int _mask) { net = ip_to_int(_ip); if (intp(_mask)) { if (_mask > 32) { report_error(sprintf("Bad netmask: %s/%d\n"