summaryrefslogtreecommitdiffstats
path: root/lib/class/user.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-02-28 05:44:49 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-02-28 05:44:49 +0000
commit31d5e782dedb0a09b5d73e7bac61dccfe25e73f1 (patch)
treeb46198c3cb0137a3c4d8e4faf99a9022a9d87f88 /lib/class/user.class.php
parent4626bc1ff1a2c2a8bc2b37f5aece23a2ee6d9104 (diff)
downloadampache-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/user.class.php')
-rw-r--r--lib/class/user.class.php16
1 files changed, 8 insertions, 8 deletions
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 <a href values
- */
- function format_favorites($items) {
+ /**
+ * format_favorites
+ * takes an array of objects and formats them corrrectly
+ * and returns a simply array with just <a href values
+ */
+ public function format_favorites($items) {
// The length of the longest item
$maxlen = strlen($items[0]->count);