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 : format('H:i d.m.Y') ?>
- Traffic Restant : Go (%)
-
- + Expiration : format('H:i d.m.Y') ?>
+ Traffic Restant : Go (%)
+
+
+ Liste des fichiers a traiter :
+ + + + + + + + + + + + + + +
Date + Filename + IP +
+ Liste des fichiers en cours :
+ + + + + + + + + + + + + + +
Date + Filename + IP +
+ Liste des fichiers terminés :
+ + + + + + + + + + + + + + +
Date + Filename + IP +
+