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.

23 lines
475 B

5 years ago
5 years ago
  1. <?php
  2. function getStream()
  3. {
  4. if (!isset($_GET['myurl'])) {
  5. // TODO : ajouter log
  6. echo 'pas de get';
  7. exit();
  8. }
  9. // TODO : ajouter une ligne de log ici
  10. $premInfos = PremiumizeMe::getLink($_GET['myurl']);
  11. // TODO : si pas d'exception changer le statut
  12. $myStream = new Stream(
  13. $_GET['myurl'],
  14. $premInfos['location'],
  15. $premInfos['filename'],
  16. $_SERVER['REMOTE_ADDR']
  17. );
  18. $myStream->get();
  19. }