X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freferral-functions.php;h=5c4ce145541c5e48299150e1f99a3837b9b3dc04;hb=8848f4a3fd7b32a1bbd9139766171701b94b2f42;hp=4747f3123ca83ce23ba7fa660bb946af0cbc9cc2;hpb=4373e155854012d687fdfcae4c69d1a940883fab;p=mailer.git diff --git a/inc/referral-functions.php b/inc/referral-functions.php index 4747f3123c..5c4ce14554 100644 --- a/inc/referral-functions.php +++ b/inc/referral-functions.php @@ -11,7 +11,7 @@ * Kurzbeschreibung : Alle zum Referral-System gehoerenden Funktionen * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -817,7 +817,7 @@ function determineReferralId () { if (isValidReferralId()) { // Do not determine it, just return it return getReferralId(); - } elseif ((!isHtmlOutputMode()) && (basename($_SERVER['PHP_SELF']) != 'ref.php')) { + } elseif ((!isHtmlOutputMode()) && (getModule() != 'ref')) { // Skip this in non-html-mode and outside ref.php return FALSE; } @@ -838,7 +838,7 @@ function determineReferralId () { // Set refid=ref (the referral link uses such variable) //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Using ref from GET data (' . getRequestElement('ref') . ')'); setReferralId(getRequestElement('ref')); - } elseif ((isGetRequestElementSet('user')) && (basename($_SERVER['PHP_SELF']) == 'click.php')) { + } elseif ((isGetRequestElementSet('user')) && (getModule() == 'click')) { // The variable user comes from click.php //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Using user from GET data (' . getRequestElement('user') . ')'); setReferralId(bigintval(getRequestElement('user')));