get_value('new_torrent_stats')) { $DB->query("SELECT COUNT(ID), SUM(Size), SUM(FileCount) FROM torrents"); list($TorrentCount, $TotalSize, $TotalFiles) = $DB->next_record(); $DB->query("SELECT COUNT(ID) FROM users_main WHERE Enabled='1'"); list($NumUsers) = $DB->next_record(); $DB->query("SELECT COUNT(ID), SUM(Size), SUM(FileCount) FROM torrents WHERE Time > SUBDATE('".sqltime()."', INTERVAL 1 DAY)"); list($DayNum, $DaySize, $DayFiles) = $DB->next_record(); $DB->query("SELECT COUNT(ID), SUM(Size), SUM(FileCount) FROM torrents WHERE Time > SUBDATE('".sqltime()."', INTERVAL 7 DAY)"); list($WeekNum, $WeekSize, $WeekFiles) = $DB->next_record(); $DB->query("SELECT COUNT(ID), SUM(Size), SUM(FileCount) FROM torrents WHERE Time > SUBDATE('".sqltime()."', INTERVAL 30 DAY)"); list($MonthNum, $MonthSize, $MonthFiles) = $DB->next_record(); $Cache->cache_value('new_torrent_stats',array($TorrentCount,$TotalSize,$TotalFiles, $NumUsers,$DayNum,$DaySize,$DayFiles, $WeekNum,$WeekSize,$WeekFiles,$MonthNum, $MonthSize,$MonthFiles),3600); } else { list($TorrentCount,$TotalSize,$TotalFiles,$NumUsers,$DayNum,$DaySize,$DayFiles, $WeekNum,$WeekSize,$WeekFiles,$MonthNum,$MonthSize,$MonthFiles) = $TorrentStats; } ?>
Overall stats
  • Total torrents:
  • Total size:
  • Total files:

  • Mean torrents per user:
  • Mean torrent size:
  • Mean files per torrent:
  • Mean filesize:

Upload frequency
  • Torrents today:
  • Size today:
  • Files today:

  • Torrents this week:
  • Size this week:
  • Files this week:

  • Torrents per day this week:
  • Size per day this week:
  • Files per day this week:

  • Torrents this month:
  • Size this month:
  • Files this month:

  • Torrents per day this month:
  • Size per day this month:
  • Files per day this month: