public function __construct() { $this->name = 'trustedshops'; $this->tab = 'advertising_marketing'; $this->version = '2.3.1'; $this->author = 'silbersaiten'; $this->bootstrap = true; self::$template_version = version_compare(_PS_VERSION_, '1.6', '<') ? '1.5' : '1.6'; parent::__construct(); TSCommon::setTranslationObject($this); self::$obj_ts_common = new TSCommon(); self::$obj_ts_common->setEnvApi(TSCommon::ENV_MOD); self::$obj_ts_common->setModuleName($this->name); self::$obj_ts_common->setSmarty($this->context->smarty); if (!extension_loaded('soap')) { $this->warnings[] = $this->l('This module requires the SOAP PHP extension to function properly.'); } if (!empty(self::$obj_ts_common->warnings)) { $this->warnings = array_merge($this->warnings, self::$obj_ts_common->warnings); } if (!empty($this->warnings)) { $this->warning = implode(',<br />', $this->warnings) . '.'; } $this->displayName = $this->l('Trusted Shops Customer Reviews'); $this->description = $this->l('Easily collect, show and manage real customer reviews. Integrate the TrustedShops Trustbadge® within minutes and display trust at first glance.'); $this->confirmUninstall = $this->l('Are you sure you want to delete all your settings?'); }
<?php /** * 2014 silbersaiten The module is based on the trustedshops module originally developed by PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 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/osl-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 support@silbersaiten.de so we can send you a copy immediately. * * @author silbersaiten www.silbersaiten.de <*****@*****.**> * @copyright 2014 silbersaiten * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ include dirname(__FILE__) . '/../../config/config.inc.php'; include dirname(__FILE__) . '/../../init.php'; include dirname(__FILE__) . '/trustedshops.php'; if (Tools::getIsset('secure_key') && Tools::getValue('secure_key') != '' && Configuration::get(TSCommon::PREFIX_TABLE . 'SECURE_KEY') == Tools::getValue('secure_key')) { $ts_module = new TrustedShops(); TSCommon::setTranslationObject($ts_module); $bp = new TSCommon(); $bp->setModuleName($ts_module->name); $bp->cronTask(); }