1 |
tomk 10/10/05 14:30:36 |
2 |
|
3 |
Modified: functions.php |
4 |
Log: |
5 |
incorrect year in comments |
6 |
|
7 |
Revision Changes Path |
8 |
1.31 forums/htdocs/includes/functions.php |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/includes/functions.php?rev=1.31&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/includes/functions.php?rev=1.31&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/includes/functions.php?r1=1.30&r2=1.31 |
13 |
|
14 |
Index: functions.php |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/functions.php,v |
17 |
retrieving revision 1.30 |
18 |
retrieving revision 1.31 |
19 |
diff -u -r1.30 -r1.31 |
20 |
--- functions.php 9 Sep 2010 22:18:32 -0000 1.30 |
21 |
+++ functions.php 5 Oct 2010 14:30:36 -0000 1.31 |
22 |
@@ -7,7 +7,7 @@ |
23 |
* copyright : (C) 2001 The phpBB Group |
24 |
* email : support@×××××.com |
25 |
* |
26 |
- * $Id: functions.php,v 1.30 2010/09/09 22:18:32 tomk Exp $ |
27 |
+ * $Id: functions.php,v 1.31 2010/10/05 14:30:36 tomk Exp $ |
28 |
* |
29 |
* |
30 |
***************************************************************************/ |
31 |
@@ -558,7 +558,7 @@ |
32 |
return $row; |
33 |
} |
34 |
|
35 |
-// 2005-01-15 tomk - Added CIDR format compatability |
36 |
+// 2006-01-15 tomk - Added CIDR format compatability |
37 |
function encode_ip($dotquad_ip) |
38 |
{ |
39 |
$slash_idx = strpos($dotquad_ip, '/'); |
40 |
@@ -574,7 +574,7 @@ |
41 |
return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]) . $slash; |
42 |
} |
43 |
|
44 |
-// 2005-01-15 tomk - Added CIDR format compatability |
45 |
+// 2006-01-15 tomk - Added CIDR format compatability |
46 |
function decode_ip($int_ip) |
47 |
{ |
48 |
$slash_idx = strpos($int_ip, '/'); |
49 |
@@ -590,7 +590,7 @@ |
50 |
return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]) . $slash; |
51 |
} |
52 |
|
53 |
-// 2005-01-15 tomk - Function to convert CIDR IP addresses into binary |
54 |
+// 2006-01-15 tomk - Function to convert CIDR IP addresses into binary |
55 |
function dec2bin_ip($dotquad_ip, $slash = 32) |
56 |
{ |
57 |
$ip_sep = explode('.', $dotquad_ip); |