Gestion download au travers de premiumizeme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
913 B

6 years ago
5 years ago
6 years ago
6 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. include __DIR__.'/../include/config.php';
  3. if (!isset($_GET['action'])) {
  4. exit();
  5. }
  6. switch($_GET['action']) {
  7. case 'stream':
  8. // http://mydl.cabillot.eu/stream/?myurl=https://1fichier.com/?fgrh5c7roq
  9. include __DIR__.'/../controller/stream.php';
  10. getStream();
  11. break;
  12. case 'download':
  13. // http://mydl.cabillot.eu/download/?myurls[]=https://1fichier.com/?fgrh5c7roq
  14. include __DIR__.'/../controller/download.php';
  15. addDownload();
  16. break;
  17. case 'launchdownload':
  18. // http://mydl.cabillot.eu/launchdownload/
  19. Download::launchNextDownload();
  20. break;
  21. case 'cleanList':
  22. // https://mydl.cabillot.eu/?action=cleanList&state=dupp
  23. include __DIR__.'/../controller/status.php';
  24. cleanList();
  25. break;
  26. case 'getHostersList':
  27. echo json_encode(PremiumizeMe::getHosters()['hostershort']);
  28. }