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:
@@ -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
|
||||
|
Reference in New Issue
Block a user