public function __construct() { global $smarty; $this->name = 'trustedshops'; $this->tab = 'payment_security'; $this->version = '1.3.3'; parent::__construct(); if (empty(self::$objects_list)) { TSBuyerProtection::setTranslationObject($this); $obj_ts_rating = new TrustedShopsRating(); $obj_ts_buyerprotection = new TSBuyerProtection(); $obj_ts_buyerprotection->_setEnvApi(TSBuyerProtection::ENV_PROD); self::$objects_list = array($obj_ts_rating, $obj_ts_buyerprotection); self::$objects_list[0]->setModuleName($this->name); self::$objects_list[0]->setSmarty($smarty); } if (!extension_loaded('soap')) { $this->warnings[] = $this->l('This module requires the SOAP PHP extension to function properly.'); } foreach (self::$objects_list as $object) { $this->limited_countries = array_merge($this->limited_countries, $object->limited_countries); if (!empty($object->warnings)) { $this->warnings = array_merge($this->warnings, $object->warnings); } } if (!empty($this->warnings)) { $this->warning = implode(',<br />', $this->warnings) . '.'; } $this->displayName = $this->l('Trusted Shops trust solutions'); $this->description = $this->l('Build confidence in your online shop with the Trusted Shops quality seal, buyer protection and customer rating.'); $this->confirmUninstall = $this->l('Are you sure you want to delete all your settings?'); }
* * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 14011 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include dirname(__FILE__) . '/../../config/config.inc.php'; include dirname(__FILE__) . '/../../init.php'; include dirname(__FILE__) . '/trustedshops.php'; if (isset($_GET['secure_key']) and !empty($_GET['secure_key']) and Configuration::get(TSBuyerProtection::PREFIX_TABLE . 'SECURE_KEY') == $_GET['secure_key']) { $ts_module = new TrustedShops(); TSBuyerProtection::setTranslationObject($ts_module); $bp = new TSBuyerProtection(); $bp->setModuleName($ts_module->name); $bp->cronTask(); }