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
23 lines
475 B
<?php
|
|
|
|
function getStream()
|
|
{
|
|
if (!isset($_GET['myurl'])) {
|
|
// TODO : ajouter log
|
|
echo 'pas de get';
|
|
exit();
|
|
}
|
|
|
|
// TODO : ajouter une ligne de log ici
|
|
$premInfos = PremiumizeMe::getLink($_GET['myurl']);
|
|
// TODO : si pas d'exception changer le statut
|
|
|
|
$myStream = new Stream(
|
|
$_GET['myurl'],
|
|
$premInfos['location'],
|
|
$premInfos['filename'],
|
|
$_SERVER['REMOTE_ADDR']
|
|
);
|
|
|
|
$myStream->get();
|
|
}
|