1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Merge pull request #2214 from rica-carv/rica-carv-patch-download

Issue #1817 & Issue #2208 - Download Error messages.
This commit is contained in:
Cameron
2016-12-29 15:00:51 -08:00
committed by GitHub

View File

@@ -76,7 +76,7 @@ if(strstr(e_QUERY, "mirror"))
exit(); exit();
} }
$goUrl = e107::getUrl()->create('download/index')."?action=error&id=".$download_id; $goUrl = e107::getUrl()->create('download/index')."?action=error&id=1";
e107::redirect($goUrl); e107::redirect($goUrl);
//header("Location: ".e_BASE."download.php?error.{$download_id}.1"); //header("Location: ".e_BASE."download.php?error.{$download_id}.1");
exit; exit;
@@ -249,7 +249,7 @@ if ($type == "file")
(strpos($pref['download_denied'],"signup.php") && USER == TRUE) (strpos($pref['download_denied'],"signup.php") && USER == TRUE)
)) ))
{ {
$goUrl = e107::getUrl()->create('download/index')."?action=error&id=".$id; $goUrl = e107::getUrl()->create('download/index')."?action=error&id=1";
e107::redirect($goUrl); e107::redirect($goUrl);
exit(); exit();
} }
@@ -386,7 +386,7 @@ function check_download_limits()
if($row['count'] >= $limits['gen_intdata']) if($row['count'] >= $limits['gen_intdata'])
{ {
// Exceeded download count limit // Exceeded download count limit
$goUrl = e107::getUrl()->create('download/index')."?action=error&id=".$cutoff; $goUrl = e107::getUrl()->create('download/index')."?action=error&id=2";
e107::redirect($goUrl); e107::redirect($goUrl);
// e107::redirect(e_BASE."download.php?error.{$cutoff}.2"); // e107::redirect(e_BASE."download.php?error.{$cutoff}.2");
/* require_once(HEADERF); /* require_once(HEADERF);
@@ -418,7 +418,7 @@ function check_download_limits()
if($row['total_bw'] / 1024 > $limit['gen_user_id']) if($row['total_bw'] / 1024 > $limit['gen_user_id'])
{ //Exceed bandwith limit { //Exceed bandwith limit
$goUrl = e107::getUrl()->create('download/index')."?action=error&id=".$cutoff; $goUrl = e107::getUrl()->create('download/index')."?action=error&id=2";
e107::redirect($goUrl); e107::redirect($goUrl);
// e107::redirect(e_BASE."download.php?error.{$cutoff}.2"); // e107::redirect(e_BASE."download.php?error.{$cutoff}.2");
/* require(HEADERF); /* require(HEADERF);