From c1443f8dd2a028e657e631b59d2857ae045fa429 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Thu, 29 Dec 2016 21:57:14 +0000 Subject: [PATCH] Update request.php --- e107_plugins/download/request.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_plugins/download/request.php b/e107_plugins/download/request.php index 50a49acd1..280a4815d 100644 --- a/e107_plugins/download/request.php +++ b/e107_plugins/download/request.php @@ -76,7 +76,7 @@ if(strstr(e_QUERY, "mirror")) 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); //header("Location: ".e_BASE."download.php?error.{$download_id}.1"); exit; @@ -249,7 +249,7 @@ if ($type == "file") (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); exit(); } @@ -383,7 +383,7 @@ function check_download_limits() if($row['count'] >= $limits['gen_intdata']) { // 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(e_BASE."download.php?error.{$cutoff}.2"); /* require_once(HEADERF); @@ -415,7 +415,7 @@ function check_download_limits() if($row['total_bw'] / 1024 > $limit['gen_user_id']) { //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(e_BASE."download.php?error.{$cutoff}.2"); /* require(HEADERF);