From: Roland Häder Date: Fri, 2 Jul 2010 03:47:51 +0000 (+0000) Subject: reseller was an old parameter where it was planed to write a shop system with this... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ecdeb0760bcb58accacb4e9c71750f2ce60d91b8;p=mailer.git reseller was an old parameter where it was planed to write a shop system with this engine --- diff --git a/click.php b/click.php index df08c519ee..b9d2af6a50 100644 --- a/click.php +++ b/click.php @@ -51,17 +51,14 @@ require('inc/config-global.php'); setContentType('text/html'); // Check required parameters -if (((isGetRequestParameterSet('user')) || (isGetRequestParameterSet('reseller'))) && (isGetRequestParameterSet('banner'))) { +if ((isGetRequestParameterSet('user')) && (isGetRequestParameterSet('banner'))) { // Update clicks counter... SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `clicks`=`clicks`+1 WHERE `id`=%s LIMIT 1", array(bigintval(getRequestParameter('banner'))), __FILE__, __LINE__); // A line has been updated? - if (SQL_AFFECTEDROWS() == 1) { - if (isGetRequestParameterSet('user')) { - redirectToUrl('ref.php?refid=' . bigintval(getRequestParameter('user'))); - } elseif (isGetRequestParameterSet('reseller')) { - redirectToUrl('shop_reseller.php?reseller=' . bigintval(getRequestParameter('reseller'))); - } + if ((SQL_AFFECTEDROWS() == 1) && (isGetRequestParameterSet('user'))) { + // Redirect to the user's referal link + redirectToUrl('ref.php?refid=' . bigintval(getRequestParameter('user'))); } // END - if } // END - if diff --git a/view.php b/view.php index 85275afd34..16a41a7f02 100644 --- a/view.php +++ b/view.php @@ -47,7 +47,7 @@ $GLOBALS['output_mode'] = -3; // Load the required file(s) require('inc/config-global.php'); -if (((isGetRequestParameterSet('user')) || (isGetRequestParameterSet('reseller'))) && (isGetRequestParameterSet('banner'))) { +if ((isGetRequestParameterSet('user')) && (isGetRequestParameterSet('banner'))) { // For later things... ;-) $result = SQL_QUERY_ESC("SELECT `url` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1", array(bigintval(getRequestParameter('banner'))), __FILE__, __LINE__);