1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 09:10:23 +02:00

Issue #6 - Removed URLs from LANs

This commit is contained in:
Cameron
2015-08-31 17:17:28 -07:00
parent 6673575a82
commit 44a6298b79
8 changed files with 125 additions and 85 deletions

View File

@@ -138,10 +138,13 @@ if ($type == "file")
if (check_class($row['download_category_class']) && check_class($row['download_class']))
{
if ($row['download_active'] == 0)
{ // Inactive download - don't allow
if ($row['download_active'] == 0) // Inactive download - don't allow
{
require_once(HEADERF);
$ns->tablerender(LAN_ERROR, "<div style='text-align:center'>".str_replace('--LINK--',e_HTTP.'download.php',LAN_dl_78).'</div>');
$search = array("[","]");
$replace = array("<a href='".e_HTTP."download.php'>", "</a>");
$ns->tablerender(LAN_ERROR, "<div class='alert alert-warning' style='text-align:center'>".str_replace($search, $replace, LAN_dl_78).'</div>');
require_once(FOOTERF);
exit();
}