diff --git a/controller/status.php b/controller/status.php index 69878fe..875ce91 100644 --- a/controller/status.php +++ b/controller/status.php @@ -2,6 +2,17 @@ function getStatus() { + $db = DbMongo::get(); + $coll = $db->download; + $listAdded = $coll->find( + ['cstate' => 'added'] + ); + $listDownloading = $coll->find( + ['cstate' => 'downloading'] + ); + $listDownloaded = $coll->find( + ['cstate' => 'downloaded'] + ); $infos = PremiumizeMe::getStatus(); include dirname(__FILE__).'/../templates/status.php'; } diff --git a/templates/status.php b/templates/status.php index e40425f..a4d3cfb 100644 --- a/templates/status.php +++ b/templates/status.php @@ -6,9 +6,79 @@
- Expiration : = $infos['expires']->format('H:i d.m.Y') ?>| Date + | Filename + | IP + |
|---|---|---|
| = $result['timestamp']; ?> | += $result['filename']; ?> | += $result['event'][0]['ip']; ?> | +
| Date + | Filename + | IP + |
|---|---|---|
| = $result['timestamp']; ?> | += $result['filename']; ?> | += $result['event'][0]['ip']; ?> | +
| Date + | Filename + | IP + |
|---|---|---|
| = $result['timestamp']; ?> | += $result['filename']; ?> | += $result['event'][0]['ip']; ?> | +