summaryrefslogtreecommitdiffstats
path: root/lib/class/stats.class.php
diff options
context:
space:
mode:
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