// merge 1.4 (5397)
This commit is contained in:
+4
-2
@@ -610,7 +610,7 @@ if (Tools::isSubmit('getAdminHomeElement'))
|
||||
$isoCountry = Country::getIsoById(Configuration::get('PS_COUNTRY_DEFAULT'));
|
||||
|
||||
$context = stream_context_create(array('http' => array('method'=>"GET", 'timeout' => 5)));
|
||||
$content = @file_get_contents('https://www.prestashop.com/partner/preactivation/preactivation-block.php?version=1.0&shop='.urlencode(Configuration::get('PS_SHOP_NAME')).'&protocol='.$protocol.'&url='.urlencode($_SERVER['HTTP_HOST']).'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)$cookie->id_lang.'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $context);
|
||||
$content = @file_get_contents('https://www.prestashop.com/partner/preactivation/preactivation-block.php?version=1.0&shop='.urlencode(Configuration::get('PS_SHOP_NAME')).'&protocol='.$protocol.'&url='.urlencode($_SERVER['HTTP_HOST']).'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)$cookie->id_lang.'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&date_creation='._PS_CREATION_DATE_.'&v='._PS_VERSION_.'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $context);
|
||||
if (!$content)
|
||||
die('NOK');
|
||||
$content = explode('|', $content);
|
||||
@@ -629,6 +629,8 @@ if (Tools::isSubmit('getAdminHomeElement'))
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
$result['partner_preactivation'] = '';
|
||||
|
||||
// DISCOVER PRESTASHOP
|
||||
$content = @file_get_contents('https://www.prestashop.com/partner/prestashop/prestashop-link.php?iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)$cookie->id_lang, false, $context);
|
||||
@@ -648,4 +650,4 @@ if (Tools::isSubmit('getAdminHomeElement'))
|
||||
|
||||
|
||||
die(Tools::jsonEncode($result));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user