Add Ceneo Trusted Reviews module with initial implementation
- Created Html helper class for displaying information and translations. - Added index.php files for various directories to prevent direct access. - Implemented Polish translations for the module. - Set up upgrade scripts for future module updates. - Included Composer autoloading files and configurations. - Added template files for displaying header and order confirmation scripts. - Established .htaccess rules for security in vendor directory.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTICE OF LICENSE.
|
||||
* This file is licenced under the Software License Agreement.
|
||||
* With the purchase or the installation of the software in your application
|
||||
* you accept the licence agreement.
|
||||
* You must not modify, adapt or create derivative works of this source code
|
||||
*
|
||||
* @author 2022 Ceneo.pl sp. z o.o.
|
||||
* @copyright Ceneo.pl
|
||||
* @license LICENSE.txt
|
||||
* @description Integrates store with Ceneo.pl Trusted Reviews Program
|
||||
*/
|
||||
class AdminCeneoTrustedreviewsController extends ModuleAdminController
|
||||
{
|
||||
public function init()
|
||||
{
|
||||
Tools::redirectAdmin(
|
||||
Context::getContext()->link->getAdminLink('AdminModules') . '&configure=ceneo_trustedreviews'
|
||||
);
|
||||
}
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->module = 'ceneo_trustedreviews';
|
||||
$this->bootstrap = true;
|
||||
$this->context = Context::getContext();
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
19
modules/ceneo_trustedreviews/controllers/admin/index.php
Normal file
19
modules/ceneo_trustedreviews/controllers/admin/index.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTICE OF LICENSE.
|
||||
* This file is licenced under the Software License Agreement.
|
||||
* With the purchase or the installation of the software in your application
|
||||
* you accept the licence agreement.
|
||||
* You must not modify, adapt or create derivative works of this source code
|
||||
*
|
||||
* @author 2022 Ceneo.pl sp. z o.o.
|
||||
* @copyright Ceneo.pl
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
Reference in New Issue
Block a user