aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-05-09 14:07:33 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-05-09 14:07:33 +0000
commit8043f50781f84390aea612e0f2e0e516f64decde (patch)
tree4982dbd7e39ab54630de5291a73c1d72a4985f42 /phpBB/includes/functions.php
parent2d7bfa5c61dd98300b8e57d73e46c7df0470d48e (diff)
downloadforums-8043f50781f84390aea612e0f2e0e516f64decde.tar
forums-8043f50781f84390aea612e0f2e0e516f64decde.tar.gz
forums-8043f50781f84390aea612e0f2e0e516f64decde.tar.bz2
forums-8043f50781f84390aea612e0f2e0e516f64decde.tar.xz
forums-8043f50781f84390aea612e0f2e0e516f64decde.zip
IP related updates + fixed gc in sessions
git-svn-id: file:///svn/phpbb/trunk@2558 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index f43ba358c0..56ce116417 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -297,18 +297,6 @@ function setup_style($style)
return $row;
}
-function encode_ip($dotquad_ip)
-{
- $ip_sep = explode('.', $dotquad_ip);
- return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
-}
-
-function decode_ip($int_ip)
-{
- $hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
- return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
-}
-
//
// Create date/time from format and timezone
//