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/general.lib.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/general.lib.php')
-rw-r--r-- | lib/general.lib.php | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index e43736e5..5c80606b 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) 2001 - 2008 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -21,29 +21,6 @@ /** - * ip2int - * turns a dotted quad ip into an int - */ -function ip2int($ip) { - - $a=explode(".",$ip); - return $a[0]*256*256*256+$a[1]*256*256+$a[2]*256+$a[3]; - -} // ip2int - -/*! - @function int2ip - @discussion turns a int into a dotted quad -*/ -function int2ip($i) { - $d[0]=(int)($i/256/256/256); - $d[1]=(int)(($i-$d[0]*256*256*256)/256/256); - $d[2]=(int)(($i-$d[0]*256*256*256-$d[1]*256*256)/256); - $d[3]=$i-$d[0]*256*256*256-$d[1]*256*256-$d[2]*256; - return "$d[0].$d[1].$d[2].$d[3]"; -} // int2ip - -/** * session_exists * checks to make sure they've specified a valid session, can handle xmlrpc */ |