Browse Source

ajout du purge (pas de lien pour le moment

master
jcabillot 6 years ago
parent
commit
7dad36f241
2 changed files with 17 additions and 0 deletions
  1. 13
      controller/status.php
  2. 4
      root/index.php

13
controller/status.php

@ -28,3 +28,16 @@ function getStatus()
$infos = PremiumizeMe::getStatus();
include dirname(__FILE__).'/../templates/status.php';
}
function cleanList()
{
if (!isset($_GET['state']) || empty($_GET['state'])) {
echo 'pas de state, exit';
exit();
}
$db = DbMongo::get();
$coll = $db->download;
$coll->remove(['cstate' => $_GET['state']]);
}

4
root/index.php

@ -21,4 +21,8 @@ switch($_GET['action']) {
// http://mydl.cabillot.eu/launchdownload/
Download::launchNextDownload();
break;
case 'cleanList':
// https://mydl.cabillot.eu/?action=cleanList&state=dupp
include dirname(__FILE__).'/../controller/status.php';
cleanList();
}
Loading…
Cancel
Save