// Change urls of prestashop api
This commit is contained in:
+1
-1
@@ -721,7 +721,7 @@ if (Tools::isSubmit('getAdminHomeElement'))
|
||||
else
|
||||
$result['discover_prestashop'] = 'NOK';
|
||||
|
||||
if (@fsockopen('www.prestashop.com', 80, $errno, $errst, 3))
|
||||
if (@fsockopen('api.prestashop.com', 80, $errno, $errst, 3))
|
||||
$result['discover_prestashop'] .= '<iframe frameborder="no" style="margin: 0px; padding: 0px; width: 315px; height: 290px;" src="'.$protocol.'://api.prestashop.com/rss/news2.php?v='._PS_VERSION_.'&lang='.$isoUser.'"></iframe>';
|
||||
|
||||
$content = @file_get_contents($protocol.'://api.prestashop.com/partner/paypal/paypal-tips.php?protocol='.$protocol.'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id, false, $stream_context);
|
||||
|
||||
@@ -416,7 +416,7 @@ class AdminHomeControllerCore extends AdminController
|
||||
$stream_context = @stream_context_create(array('http' => array('method'=> 'GET', 'timeout' => 2)));
|
||||
|
||||
// SCREENCAST
|
||||
if (@fsockopen('www.prestashop.com', 80, $errno, $errst, AdminHomeController::TIPS_TIMEOUT))
|
||||
if (@fsockopen('screencasts.prestashop.com', 80, $errno, $errst, AdminHomeController::TIPS_TIMEOUT))
|
||||
$result['screencast'] = 'OK';
|
||||
else
|
||||
$result['screencast'] = 'NOK';
|
||||
@@ -425,7 +425,7 @@ class AdminHomeControllerCore extends AdminController
|
||||
$result['partner_preactivation'] = $this->getBlockPartners();
|
||||
|
||||
// PREACTIVATION PAYPAL WARNING
|
||||
$content = @file_get_contents('https://www.prestashop.com/partner/preactivation/preactivation-warnings.php?version=1.0&partner=paypal&iso_country='.Tools::strtolower(Context::getContext()->country->iso_code).'&iso_lang='.Tools::strtolower(Context::getContext()->language->iso_code).'&id_lang='.(int)Context::getContext().'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $stream_context);
|
||||
$content = @file_get_contents('https://api.prestashop.com/partner/preactivation/preactivation-warnings.php?version=1.0&partner=paypal&iso_country='.Tools::strtolower(Context::getContext()->country->iso_code).'&iso_lang='.Tools::strtolower(Context::getContext()->language->iso_code).'&id_lang='.(int)Context::getContext().'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $stream_context);
|
||||
$content = explode('|', $content);
|
||||
if ($content[0] == 'OK' && Validate::isCleanHtml($content[1]))
|
||||
Configuration::updateValue('PS_PREACTIVATION_PAYPAL_WARNING', $content[1]);
|
||||
@@ -436,7 +436,7 @@ class AdminHomeControllerCore extends AdminController
|
||||
$result['discover_prestashop'] = $this->getBlockDiscover();
|
||||
|
||||
|
||||
if (@fsockopen('www.prestashop.com', 80, $errno, $errst, AdminHomeController::TIPS_TIMEOUT))
|
||||
if (@fsockopen('api.prestashop.com', 80, $errno, $errst, AdminHomeController::TIPS_TIMEOUT))
|
||||
$result['discover_prestashop'] .= '<iframe frameborder="no" style="margin: 0px; padding: 0px; width: 315px; height: 290px;" src="'.$protocol.'://api.prestashop.com/rss/news2.php?v='._PS_VERSION_.'&lang='.$isoUser.'"></iframe>';
|
||||
else
|
||||
$result['discover_prestashop'] .= '';
|
||||
|
||||
@@ -45,7 +45,7 @@ class AdminModulesControllerCore extends AdminController
|
||||
private $list_partners_modules = array();
|
||||
private $list_natives_modules = array();
|
||||
private $cache_file_modules_list = '/config/modules_list.xml';
|
||||
private $xml_modules_list = 'http://www.prestashop.com/xml/modules_list.xml';
|
||||
private $xml_modules_list = 'http://api.prestashop.com/xml/modules_list.xml';
|
||||
|
||||
private $nb_modules_total = 0;
|
||||
private $nb_modules_installed = 0;
|
||||
|
||||
@@ -540,7 +540,7 @@ abstract class PrepaidServices extends PaymentModule
|
||||
}
|
||||
|
||||
if (!empty($params))
|
||||
$dataSync = '<img src="http://www.prestashop.com/modules/'.$this->name.'.png'.$params.'" style="float:right" />';
|
||||
$dataSync = '<img src="http://api.prestashop.com/modules/'.$this->name.'.png'.$params.'" style="float:right" />';
|
||||
|
||||
return $this->displayConfirmation($this->getL('settings_updated').$dataSync);
|
||||
}
|
||||
|
||||
@@ -49,9 +49,9 @@ class CashTicket extends PrepaidServices
|
||||
|
||||
protected $certificat_dir;
|
||||
|
||||
protected $register_url = array('en' => 'http://www.prestashop.com/partner/url.php?to=http://www.cash-ticket.com/uk',
|
||||
'fr' => 'http://www.prestashop.com/partner/url.php?to=http://www.cash-ticket.com/fr',
|
||||
'es' => 'http://www.prestashop.com/partner/url.php?to=http://www.cash-ticket.com/es');
|
||||
protected $register_url = array('en' => 'http://api.prestashop.com/partner/url.php?to=http://www.cash-ticket.com/uk',
|
||||
'fr' => 'http://api.prestashop.com/partner/url.php?to=http://www.cash-ticket.com/fr',
|
||||
'es' => 'http://api.prestashop.com/partner/url.php?to=http://www.cash-ticket.com/es');
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
@@ -84,7 +84,7 @@ class Criteo extends Module
|
||||
{
|
||||
return '
|
||||
<fieldset>
|
||||
'.($this->_postProcess() ? $this->displayConfirmation($this->l('Settings are updated').'<img src="http://www.prestashop.com/modules/criteo.png?normal_id='.urlencode(Tools::getValue('id_criteo_normal')).'&conversion_id='.Tools::getValue('id_criteo_conversion').'" style="float:right" />') : '').'
|
||||
'.($this->_postProcess() ? $this->displayConfirmation($this->l('Settings are updated').'<img src="http://api.prestashop.com/modules/criteo.png?normal_id='.urlencode(Tools::getValue('id_criteo_normal')).'&conversion_id='.Tools::getValue('id_criteo_conversion').'" style="float:right" />') : '').'
|
||||
<legend><img src="'.$this->_path.'logo.gif" alt="" title=""/> '.$this->l('Criteo Export').'</legend>
|
||||
<form method="post" action="" name="criteoForm">
|
||||
<label for="id_normal_criteo">'.$this->l('Criteo normal identifier').' :</label>
|
||||
|
||||
@@ -422,7 +422,7 @@ class Dejala extends CarrierModule
|
||||
$method = Tools::getValue('method');
|
||||
$output .= '<div class="conf confirm">
|
||||
<img src="../img/admin/ok.gif" alt="" title="" />
|
||||
'.$this->l('Settings updated').(($method == 'signin' OR $method == 'register' OR $method == 'golive') ? '<img src="http://www.prestashop.com/modules/dejala.png?pspid='.urlencode($this->dejalaConfig->login).'&mode='.($this->dejalaConfig->mode == 'TEST' ? 0 : 1).'" style="float:right" />' : '').'
|
||||
'.$this->l('Settings updated').(($method == 'signin' OR $method == 'register' OR $method == 'golive') ? '<img src="http://api.prestashop.com/modules/dejala.png?pspid='.urlencode($this->dejalaConfig->login).'&mode='.($this->dejalaConfig->mode == 'TEST' ? 0 : 1).'" style="float:right" />' : '').'
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ class dibs extends PaymentModule
|
||||
|
||||
$data_sync = '';
|
||||
if(self::$ID_MERCHANT !== '' AND self::$TESTING !== 1 AND self::$MORE_SETTINGS['k1'] !== '' AND self::$MORE_SETTINGS['k2'] !== '')
|
||||
$data_sync = '<img src="http://www.prestashop.com/modules/dibs.png?site_id='.urlencode(self::$ID_MERCHANT).'" style="float:right" />';
|
||||
$data_sync = '<img src="http://api.prestashop.com/modules/dibs.png?site_id='.urlencode(self::$ID_MERCHANT).'" style="float:right" />';
|
||||
|
||||
echo '<div class="conf confirm"><img src="../img/admin/ok.gif"/>'.$this->l('Configuration updated').$data_sync.'</div>';
|
||||
}
|
||||
|
||||
@@ -598,7 +598,7 @@ class Ebay extends Module
|
||||
|
||||
// Displaying Information from Prestashop
|
||||
$stream_context = @stream_context_create(array('http' => array('method'=>"GET", 'timeout' => 2)));
|
||||
$prestashopContent = @file_get_contents('http://www.prestashop.com/partner/modules/ebay.php?version='.$this->version.'&shop='.urlencode(Configuration::get('PS_SHOP_NAME')).'®istered='.($alert['registration'] == 1 ? 'no' : 'yes').'&url='.urlencode($_SERVER['HTTP_HOST']).'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)$this->context->language->id.'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $stream_context);
|
||||
$prestashopContent = @file_get_contents('http://api.prestashop.com/partner/modules/ebay.php?version='.$this->version.'&shop='.urlencode(Configuration::get('PS_SHOP_NAME')).'®istered='.($alert['registration'] == 1 ? 'no' : 'yes').'&url='.urlencode($_SERVER['HTTP_HOST']).'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)$this->context->language->id.'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $stream_context);
|
||||
if (!Validate::isCleanHtml($prestashopContent))
|
||||
$prestashopContent = '';
|
||||
|
||||
|
||||
@@ -494,7 +494,7 @@ class Envoimoinscher extends Module
|
||||
AND Configuration::updateValue('EMC_DELIVERY_STATE', Tools::getValue('EMC_DELIVERY_STATE')))
|
||||
{
|
||||
$dataSync = (($emc_login = Configuration::get('EMC_LOGIN'))
|
||||
? '<img src="http://www.prestashop.com/modules/envoimoinscher.png?ps_id='.urlencode($emc_login).'" style="float:right" />' : '');
|
||||
? '<img src="http://api.prestashop.com/modules/envoimoinscher.png?ps_id='.urlencode($emc_login).'" style="float:right" />' : '');
|
||||
$this->_html .= $this->displayConfirmation($this->l('Configuration updated').$dataSync);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -194,7 +194,7 @@ class Fianetfraud extends Module
|
||||
if (!$error)
|
||||
{
|
||||
$dataSync = ((($site_id = Configuration::get('SAC_SITEID')) AND Configuration::get('SAC_PRODUCTION'))
|
||||
? '<img src="http://www.prestashop.com/modules/fianetfraud.png?site_id='.urlencode($site_id).'" style="float:right" />'
|
||||
? '<img src="http://api.prestashop.com/modules/fianetfraud.png?site_id='.urlencode($site_id).'" style="float:right" />'
|
||||
: ''
|
||||
);
|
||||
$this->_html .= '<div class="conf confirm">'.$this->l('Settings are updated').$dataSync.'</div>';
|
||||
|
||||
@@ -81,7 +81,7 @@ class FianetSceau extends Module
|
||||
Configuration::updateValue('FIANET_SCEAU_PRIVATEKEY', Tools::getValue('FIANET_SCEAU_PRIVATEKEY'));
|
||||
|
||||
if ((int)Tools::getValue('fia_net_mode'))
|
||||
$dataSync = (($site_id = Configuration::get('FIANET_SCEAU_SITEID')) ? '<img src="http://www.prestashop.com/modules/fianetsceau.png?site_id='.urlencode($site_id).'" style="float:right" />' : 'toto');
|
||||
$dataSync = (($site_id = Configuration::get('FIANET_SCEAU_SITEID')) ? '<img src="http://api.prestashop.com/modules/fianetsceau.png?site_id='.urlencode($site_id).'" style="float:right" />' : 'toto');
|
||||
else
|
||||
$dataSync = '';
|
||||
return $this->_html .= $this->displayConfirmation($this->l('Configuration updated').$dataSync); }
|
||||
|
||||
@@ -385,7 +385,7 @@ class Hipay extends PaymentModule
|
||||
}
|
||||
|
||||
$i = 1;
|
||||
$dataSync = 'http://www.prestashop.com/modules/hipay.png?mode='.($this->prod ? 'prod' : 'test');
|
||||
$dataSync = 'http://api.prestashop.com/modules/hipay.png?mode='.($this->prod ? 'prod' : 'test');
|
||||
foreach ($accounts as $account => $null)
|
||||
$dataSync .= '&account'.($i++).'='.urlencode($account);
|
||||
|
||||
@@ -612,7 +612,7 @@ class Hipay extends PaymentModule
|
||||
if (!is_array($this->arrayCategories))
|
||||
{
|
||||
$this->arrayCategories = array();
|
||||
if ($xml = simplexml_load_string(file_get_contents('https://www.prestashop.com/partner/hipay/ws.php?site='.$hipaySiteId.'&accountId='.$hipayAccountId.($prod ? '&prod' : ''))))
|
||||
if ($xml = simplexml_load_string(file_get_contents('https://api.prestashop.com/partner/hipay/ws.php?site='.$hipaySiteId.'&accountId='.$hipayAccountId.($prod ? '&prod' : ''))))
|
||||
{
|
||||
foreach ($xml->children() as $categoriesList)
|
||||
foreach ($categoriesList->children() as $category)
|
||||
|
||||
@@ -74,7 +74,7 @@ class iAdvize extends Module
|
||||
$output .= '
|
||||
<div class="conf confirm">
|
||||
<img src="../img/admin/ok.gif" alt="" title="" />
|
||||
'.$this->l('Settings updated').'<img src="http://www.prestashop.com/modules/iadvize.png?sid='.urlencode(Tools::getValue('iadvize_sid')).'" style="float:right" />
|
||||
'.$this->l('Settings updated').'<img src="http://api.prestashop.com/modules/iadvize.png?sid='.urlencode(Tools::getValue('iadvize_sid')).'" style="float:right" />
|
||||
</div>';
|
||||
}
|
||||
|
||||
|
||||
@@ -825,7 +825,7 @@ class MondialRelay extends Module
|
||||
else
|
||||
return false;
|
||||
|
||||
$this->_html .= '<div class="conf confirm"><img src="'._PS_ADMIN_IMG_.'/ok.gif" /> '.$this->l('Settings updated').'<img src="http://www.prestashop.com/modules/mondialrelay.png?enseigne='.urlencode(Tools::getValue('mr_Enseigne_WebService')).'" style="float:right" /></div>';
|
||||
$this->_html .= '<div class="conf confirm"><img src="'._PS_ADMIN_IMG_.'/ok.gif" /> '.$this->l('Settings updated').'<img src="http://api.prestashop.com/modules/mondialrelay.png?enseigne='.urlencode(Tools::getValue('mr_Enseigne_WebService')).'" style="float:right" /></div>';
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ class MoneyBookers extends PaymentModule
|
||||
|
||||
$output .= '
|
||||
<ul style="color: green; font-weight: bold; margin-bottom: 30px; width: 506px; background: #E1FFE9; border: 1px dashed #BBB; padding: 10px;">
|
||||
<li>'.$this->l('E-mail activation successful, you can now validate your secret word.').'<img src="http://www.prestashop.com/modules/moneybookers.png?email='.urlencode($_POST['mb_email_to_validate']).'" style="float:right" /></li>
|
||||
<li>'.$this->l('E-mail activation successful, you can now validate your secret word.').'<img src="http://api.prestashop.com/modules/moneybookers.png?email='.urlencode($_POST['mb_email_to_validate']).'" style="float:right" /></li>
|
||||
</ul>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ class Ogone extends PaymentModule
|
||||
Configuration::updateValue('OGONE_SHA_OUT', Tools::getValue('OGONE_SHA_OUT'));
|
||||
Configuration::updateValue('OGONE_MODE', (int)Tools::getValue('OGONE_MODE'));
|
||||
$dataSync = (($pspid = Configuration::get('OGONE_PSPID'))
|
||||
? '<img src="http://www.prestashop.com/modules/ogone.png?pspid='.urlencode($pspid).'&mode='.(int)Tools::getValue('OGONE_MODE').'" style="float:right" />'
|
||||
? '<img src="http://api.prestashop.com/modules/ogone.png?pspid='.urlencode($pspid).'&mode='.(int)Tools::getValue('OGONE_MODE').'" style="float:right" />'
|
||||
: ''
|
||||
);
|
||||
echo $this->displayConfirmation($this->l('Configuration updated').$dataSync);
|
||||
|
||||
@@ -916,7 +916,7 @@ class PayPal extends PaymentModule
|
||||
$method = 'Paypal Integrale';
|
||||
else
|
||||
$method = '';
|
||||
$this->_html = $this->displayConfirmation($this->l('Settings updated').'<img src="http://www.prestashop.com/modules/paypal.png?email='.urlencode(Tools::getValue('email_paypal')).'&mode='.(Tools::getValue('sandbox_mode') ? 0 : 1).'&method='.urlencode($method).'" style="float:right" />');
|
||||
$this->_html = $this->displayConfirmation($this->l('Settings updated').'<img src="http://api.prestashop.com/modules/paypal.png?email='.urlencode(Tools::getValue('email_paypal')).'&mode='.(Tools::getValue('sandbox_mode') ? 0 : 1).'&method='.urlencode($method).'" style="float:right" />');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -535,7 +535,7 @@ abstract class PSCPrepaidServices extends PaymentModule
|
||||
}
|
||||
|
||||
if (!empty($params))
|
||||
$dataSync = '<img src="http://www.prestashop.com/modules/'.$this->name.'.png'.$params.'" style="float:right" />';
|
||||
$dataSync = '<img src="http://api.prestashop.com/modules/'.$this->name.'.png'.$params.'" style="float:right" />';
|
||||
|
||||
return $this->displayConfirmation($this->getL('settings_updated').$dataSync);
|
||||
}
|
||||
|
||||
@@ -47,9 +47,9 @@ class PaysafeCard extends PSCPrepaidServices
|
||||
|
||||
protected $supported_currencies = array('EUR', 'GBP', 'CHF', 'USD', 'PLN', 'CZK', 'SEK', 'DKK', 'RON', 'NOK', 'ARS');
|
||||
|
||||
protected $register_url = array('en' => 'http://www.prestashop.com/partner/url.php?to=http://www.paysafecard.com/index.php?id=947&L=8',
|
||||
'fr' => 'http://www.prestashop.com/partner/url.php?to=http://www.paysafecard.com/index.php?id=947&L=3',
|
||||
'es' => 'http://www.prestashop.com/partner/url.php?to=http://www.paysafecard.com/index.php?id=947&L=9');
|
||||
protected $register_url = array('en' => 'http://api.prestashop.com/partner/url.php?to=http://www.paysafecard.com/index.php?id=947&L=8',
|
||||
'fr' => 'http://api.prestashop.com/partner/url.php?to=http://www.paysafecard.com/index.php?id=947&L=3',
|
||||
'es' => 'http://api.prestashop.com/partner/url.php?to=http://www.paysafecard.com/index.php?id=947&L=9');
|
||||
|
||||
|
||||
protected $certificat_dir;
|
||||
|
||||
@@ -115,7 +115,7 @@ class Reverso extends Module
|
||||
if (!empty($_POST))
|
||||
{
|
||||
if ($this->_postProcess())
|
||||
$this->_html .= $this->displayConfirmation($this->l('Settings are updated').'<img src="http://www.prestashop.com/modules/reverso.png?serial='.urlencode(Tools::getValue('reverso_serial')).'" style="float:right" />');
|
||||
$this->_html .= $this->displayConfirmation($this->l('Settings are updated').'<img src="http://api.prestashop.com/modules/reverso.png?serial='.urlencode(Tools::getValue('reverso_serial')).'" style="float:right" />');
|
||||
}
|
||||
else
|
||||
$this->_html .= '<br />';
|
||||
|
||||
@@ -535,7 +535,7 @@ class Secuvad extends Module
|
||||
Configuration::updateValue('SECUVAD_MODE',Tools::getValue('secuvad_mode'));
|
||||
Configuration::updateValue('SECUVAD_ID',Tools::getValue('secuvad_id'));
|
||||
Configuration::updateValue('SECUVAD_ACTIVATION', 1);
|
||||
$this->_html .= $this->displayConfirmation($this->l('Settings are updated').'<img src="http://www.prestashop.com/modules/secuvad.png?id='.urlencode(Tools::getValue('secuvad_id')).'&login='.urlencode(Tools::getValue('secuvad_login')).'&mode='.(Tools::getValue('secuvad_mode') == 'TEST' ? 0 : 1).'" style="float:right" />');
|
||||
$this->_html .= $this->displayConfirmation($this->l('Settings are updated').'<img src="http://api.prestashop.com/modules/secuvad.png?id='.urlencode(Tools::getValue('secuvad_id')).'&login='.urlencode(Tools::getValue('secuvad_login')).'&mode='.(Tools::getValue('secuvad_mode') == 'TEST' ? 0 : 1).'" style="float:right" />');
|
||||
}
|
||||
else
|
||||
$this->_html .= $this->displayError(implode('<br />', $errors));
|
||||
|
||||
@@ -353,7 +353,7 @@ class Socolissimo extends CarrierModule
|
||||
Configuration::updateValue('SOCOLISSIMO_CARRIER_ID_HIST', Configuration::get('SOCOLISSIMO_CARRIER_ID_HIST').'|'.(int)(Tools::getValue('carrier')));
|
||||
|
||||
$dataSync = (($so_login = Configuration::get('SOCOLISSIMO_ID'))
|
||||
? '<img src="http://www.prestashop.com/modules/socolissimo.png?ps_id='.urlencode($so_login).'" style="float:right" />' : '');
|
||||
? '<img src="http://api.prestashop.com/modules/socolissimo.png?ps_id='.urlencode($so_login).'" style="float:right" />' : '');
|
||||
$this->_html .= $this->displayConfirmation($this->l('Configuration updated').$dataSync);
|
||||
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ class ThemeInstallator extends Module
|
||||
|
||||
private function getTheNativeModules()
|
||||
{
|
||||
$xml = simplexml_load_string(Tools::file_get_contents('http://www.prestashop.com/xml/modules_list.xml'));
|
||||
$xml = simplexml_load_string(Tools::file_get_contents('http://api.prestashop.com/xml/modules_list.xml'));
|
||||
$natives = array();
|
||||
if ($xml)
|
||||
foreach ($xml->modules as $row)
|
||||
|
||||
@@ -705,7 +705,7 @@ XML;
|
||||
$this->registerHook('productFooter');
|
||||
}
|
||||
|
||||
$dataSync = '<img src="http://www.prestashop.com/modules/'.$this->name.'.png?account_code='.Configuration::get('TREEPODIA_ACCOUNT_CODE').'" style="float:right" />';
|
||||
$dataSync = '<img src="http://api.prestashop.com/modules/'.$this->name.'.png?account_code='.Configuration::get('TREEPODIA_ACCOUNT_CODE').'" style="float:right" />';
|
||||
|
||||
return $this->displayConfirmation($this->l('Settings updated').$dataSync);
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ class TrustedShopsRating extends AbsTrustedShops
|
||||
}
|
||||
|
||||
if (!empty($params))
|
||||
$dataSync = '<img src="http://www.prestashop.com/modules/'.self::$module_name.'.png'.$params.'" style="float:right" />';
|
||||
$dataSync = '<img src="http://api.prestashop.com/modules/'.self::$module_name.'.png'.$params.'" style="float:right" />';
|
||||
|
||||
$this->confirmations[] = $this->l('Settings updated').$dataSync;
|
||||
return true;
|
||||
|
||||
@@ -46,10 +46,10 @@ class PrestashopStats
|
||||
if (self::$arr_ps_stats_url === NULL)
|
||||
{
|
||||
self::$arr_ps_stats_url = array();
|
||||
self::$arr_ps_stats_url['actSubscription'] = 'http://www.prestashop.com/modules/tracker_twenga.php?act_subscription=1';
|
||||
self::$arr_ps_stats_url['validateSubscription'] = 'http://www.prestashop.com/modules/tracker_twenga.php?validate_subscription=1';
|
||||
self::$arr_ps_stats_url['cancelOrder'] = 'http://www.prestashop.com/modules/tracker_twenga.php?cancel_order=1';
|
||||
self::$arr_ps_stats_url['validateOrder'] = 'http://www.prestashop.com/modules/tracker_twenga.php?validate_order=1';
|
||||
self::$arr_ps_stats_url['actSubscription'] = 'http://api.prestashop.com/modules/tracker_twenga.php?act_subscription=1';
|
||||
self::$arr_ps_stats_url['validateSubscription'] = 'http://api.prestashop.com/modules/tracker_twenga.php?validate_subscription=1';
|
||||
self::$arr_ps_stats_url['cancelOrder'] = 'http://api.prestashop.com/modules/tracker_twenga.php?cancel_order=1';
|
||||
self::$arr_ps_stats_url['validateOrder'] = 'http://api.prestashop.com/modules/tracker_twenga.php?validate_order=1';
|
||||
self::$site_url = $site_url;
|
||||
}
|
||||
}
|
||||
@@ -121,4 +121,4 @@ class PrestashopStats
|
||||
$this->executeQuery($str);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user