mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 02:42:40 +02:00
Issue #6 - Removed URLs from LANs
This commit is contained in:
@@ -64,7 +64,7 @@ define("LAN_dl_51", "Reporting download: ");
|
||||
//define("LAN_dl_52", "Guest");//LAN_GUEST
|
||||
define("LAN_dl_53", "Click to view download");
|
||||
define("LAN_dl_54", "An administrator will be made aware of this download, please leave a message if you feel it necessary.");
|
||||
define("LAN_dl_55", "<b>Do not</b> use this form to contact the admin for any other reason.");
|
||||
define("LAN_dl_55", "Do not use this form to contact the admin for any other reason.");
|
||||
// define("LAN_dl_56", "Report broken download"); already defined above.
|
||||
define("LAN_dl_57", "reported by");
|
||||
define("LAN_dl_58", "The following download has been reported as broken from site");
|
||||
@@ -93,6 +93,6 @@ define("LAN_dl_75", "no image available ");
|
||||
//define("LAN_dl_76", "Go to page"); //FIXME Use Generic
|
||||
define("LAN_dl_77", "Downloads"); // Intentional duplicate - some languages need it to be different. This is for number of downloads
|
||||
|
||||
define('LAN_dl_78', "That download has been disabled or discontinued. Please check in the [link=--LINK--]downloads area[/link] for a more recent version.");
|
||||
define('LAN_dl_78', "That download has been disabled or discontinued. Please check in the [downloads area] for a more recent version.");
|
||||
|
||||
?>
|
||||
|
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user