1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Dynamic Download URL support (using shortcodes). Quick View added to downloads admin area.

This commit is contained in:
Cameron
2017-03-26 16:35:06 -07:00
parent 0416c97400
commit 0846180664
2 changed files with 9 additions and 3 deletions

View File

@@ -215,8 +215,11 @@ if ($type == "file")
echo $binary_data;
exit();
}
if (strstr($download_url, "http://") || strstr($download_url, "ftp://") || strstr($download_url, "https://")) {
header("Location: {$download_url}");
if (strstr($download_url, "http://") || strstr($download_url, "ftp://") || strstr($download_url, "https://"))
{
$download_url = e107::getParser()->parseTemplate($download_url,true); // support for shortcode-driven dynamic URLS.
e107::redirect($download_url);
// header("Location: {$download_url}");
exit();
}
else