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/api.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/class/api.class.php') diff --git a/lib/class/api.class.php b/lib/class/api.class.php index 8e15c136..f1ff7a33 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -65,10 +65,10 @@ class Api { // Clean incomming variables $user_id = Dba::escape($user_id); $timestamp = intval($timestamp); - $ip = ip2int($ip); + $ip = ip2long($ip); // Log this attempt - debug_event('API','Login Attempt, IP:' . int2ip($ip) . ' Time:' . $timestamp . ' User:' . $user_id . ' Auth:' . $passphrase,'1'); + debug_event('API','Login Attempt, IP:' . long2ip($ip) . ' Time:' . $timestamp . ' User:' . $user_id . ' Auth:' . $passphrase,'1'); // Run the query and return the passphrases as we'll have to mangle them // to figure out if they match what we've got -- cgit