Merge remote-tracking branch 'origin/ticket/r15224-balises' into develop

This commit is contained in:
Michael RICOIS 2018-01-17 17:49:03 +01:00
commit 18258a9db5

View File

@ -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.'<br/>';
$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);