// Change URLs calling for prestashop.com
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
$c = addslashes(strtolower($_GET['country_iso_code']));
|
||||
|
||||
$stream_context = @stream_context_create(array('http' => array('method'=>"GET", 'timeout' => 5)));
|
||||
$content = @file_get_contents('http://www.prestashop.com/partner/preactivation/fields.php?version=1.0&partner='.$p.'&country_iso_code='.$c, false, $stream_context);
|
||||
$content = @file_get_contents('http://api.prestashop.com/partner/preactivation/fields.php?version=1.0&partner='.$p.'&country_iso_code='.$c, false, $stream_context);
|
||||
|
||||
if ($content && $content[0] == '<')
|
||||
{
|
||||
@@ -103,7 +103,7 @@
|
||||
if ($_GET['request'] == 'send')
|
||||
{
|
||||
$stream_context = @stream_context_create(array('http' => array('method'=>"GET", 'timeout' => 5)));
|
||||
$url = 'http://www.prestashop.com/partner/preactivation/actions.php?version=1.0&partner='.addslashes($_GET['partner']);
|
||||
$url = 'http://api.prestashop.com/partner/preactivation/actions.php?version=1.0&partner='.addslashes($_GET['partner']);
|
||||
|
||||
// Protect fields
|
||||
foreach ($_GET as $key => $value)
|
||||
|
||||
Reference in New Issue
Block a user