diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-02-28 05:44:49 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-02-28 05:44:49 +0000 |
commit | 31d5e782dedb0a09b5d73e7bac61dccfe25e73f1 (patch) | |
tree | b46198c3cb0137a3c4d8e4faf99a9022a9d87f88 /lib/class/api.class.php | |
parent | 4626bc1ff1a2c2a8bc2b37f5aece23a2ee6d9104 (diff) | |
download | ampache-31d5e782dedb0a09b5d73e7bac61dccfe25e73f1.tar.gz ampache-31d5e782dedb0a09b5d73e7bac61dccfe25e73f1.tar.bz2 ampache-31d5e782dedb0a09b5d73e7bac61dccfe25e73f1.zip |
removed ip2int, int2ip custom functions fixed browse issues when adding filters in specific order
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r-- | lib/class/api.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 |