From 31d5e782dedb0a09b5d73e7bac61dccfe25e73f1 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 28 Feb 2008 05:44:49 +0000 Subject: removed ip2int, int2ip custom functions fixed browse issues when adding filters in specific order --- lib/class/user.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/class/user.class.php') diff --git a/lib/class/user.class.php b/lib/class/user.class.php index d548f1f3..5c7a2124 100644 --- a/lib/class/user.class.php +++ b/lib/class/user.class.php @@ -553,7 +553,7 @@ class User { $sip = $_SERVER['REMOTE_ADDR']; debug_event('User Ip', 'Login from ip adress: ' . $sip,'3'); } - $ip = ip2int($sip); + $ip = ip2long($sip); $date = time(); $user = $this->id; @@ -658,16 +658,16 @@ class User { /* Get Users Last ip */ $data = $this->get_ip_history(1); - $this->ip_history = int2ip($data['0']['ip']); + $this->ip_history = long2ip($data['0']['ip']); } // format_user - /*! - @function format_favorites - @discussion takes an array of objects and formats them corrrectly - and returns a simply array with just count); -- cgit