summaryrefslogtreecommitdiffstats
path: root/lib/class/stats.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-29 00:51:53 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-29 00:51:53 +0000
commit9cfb075df5c8fcd0f83f019dee67fa907dae6265 (patch)
treed4cbb031a0534715d9caec54c27945e234c7aea1 /lib/class/stats.class.php
parent5038eb20d7322af95d1fef7035f6d533b49c25a6 (diff)
downloadampache-9cfb075df5c8fcd0f83f019dee67fa907dae6265.tar.gz
ampache-9cfb075df5c8fcd0f83f019dee67fa907dae6265.tar.bz2
ampache-9cfb075df5c8fcd0f83f019dee67fa907dae6265.zip
3.3.1-Alpha1 release
Diffstat (limited to 'lib/class/stats.class.php')
-rw-r--r--lib/class/stats.class.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/class/stats.class.php b/lib/class/stats.class.php
index f06f8f9f..057d2534 100644
--- a/lib/class/stats.class.php
+++ b/lib/class/stats.class.php
@@ -91,34 +91,6 @@ class Stats {
} // get_top
/**
- * get_ip_history
- * This returns the ip_history from the
- * last conf('user_ip_cardinality') days
- */
- function get_ip_history($count,$type,$user) {
-
- $count = intval($count);
- $type = $this->validate_type($type);
- $date = time() - (86400*conf('user_ip_cardinality'));
-
- /* Select ip history */
- $sql = "SELECT ip,date FROM ip_history" .
- " WHERE user='$user->username' AND date >= '$date'" .
- " ORDER BY `date` DESC LIMIT $count";
- $db_results = mysql_query($sql, dbh());
-
- $results = array();
-
- while ($r = mysql_fetch_assoc($db_results)) {
- $results[] = $r;
- }
-
- return $results;
-
- } // get_ip_history
-
-
- /**
* get_user
* This gets all stats for atype based on user with thresholds and all
* If full is passed, doesn't limit based on date