hello I found a bug in the download if I copy a download link for a premium account I little run directly from another pc another ip without even his return to me why his page normally it will have refused Download
// remove session
if (isset($_SESSION['showDownload']))
{
$clearSession = true;
// fixes android snag which requests files twice
if (deviceIsAndroid())
{
if (!isset($_SESSION['showDownloadFirstRun']))
{
$_SESSION['showDownloadFirstRun'] = true;
$clearSession = false;
}
else
{
$_SESSION['showDownloadFirstRun'] = null;
unset($_SESSION['showDownloadFirstRun']);
}
}
if ($clearSession == true)
{
// reset session variable for next time
$_SESSION['showDownload'] = null;
unset($_SESSION['showDownload']);
session_write_close();
}
}
// remove session
if (isset($_SESSION['showDownload']))
{
$clearSession = true;
// fixes android snag which requests files twice
if (deviceIsAndroid())
{
if (!isset($_SESSION['showDownloadFirstRun']))
{
$_SESSION['showDownloadFirstRun'] = true;
$clearSession = false;
}
else
{
$_SESSION['showDownloadFirstRun'] = null;
unset($_SESSION['showDownloadFirstRun']);
}
}
if ($clearSession == true)
{
// reset session variable for next time
$_SESSION['showDownload'] = null;
unset($_SESSION['showDownload']);
session_write_close();
}
}
if(!$downloadToken || empty($downloadToken))
{
output404();
}
if ($downloadToken != null)
if ($downloadToken !== null)
$tokenData =
<?php echo $file->generateDirectDownloadUrlForMedia(); ?>
'.$file->getFullShortUrl(true).'?df=1&dt='.$embedToken.'