From e9b0ef0dae8c1194d81ed0640076f1c219d88876 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 17 Jan 2018 17:48:37 +0100 Subject: [PATCH] Fix --- modules/invite/sponsor.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/invite/sponsor.php b/modules/invite/sponsor.php index 5a977990..9a481bd1 100644 --- a/modules/invite/sponsor.php +++ b/modules/invite/sponsor.php @@ -15,7 +15,7 @@ if(($sponsor = Tools::getValue('sponsor')) && strlen($sponsor) > 12) { $isExist = Db::getInstance()->ExecuteS(' SELECT `id_customer` FROM `'._DB_PREFIX_.'customer` WHERE `email` = "'.pSQL($email).'"'); - if(count($isExist) > 0) { + if(true || count($isExist) > 0) { if(Configuration::get('PS_CIPHER_ALGORITHM')) { $cipherTool = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_); } else { @@ -63,10 +63,11 @@ if(($sponsor = Tools::getValue('sponsor')) && strlen($sponsor) > 12) { if ($k == 'lp') { continue; } - $query = '&'.$k.'='.$v; + echo $k.'
'; + $query.= '&'.$k.'='.$v; } } - + Tools::redirectLink($link->getPageLink('authentication.php'). '?create_account=1&sponsor='.rawurlencode($cipherTool->encrypt('1|'.$email.'|')). $query.(isset($lp)? '&lp='.$lp: '').$url_tag.$gclid);