first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
/*
* 2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
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;

View File

@@ -0,0 +1,36 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_3_2($module)
{
$sql = 'ALTER TABLE `' . _DB_PREFIX_ . 'arseopro_redirect`
ADD COLUMN `use_times` INT UNSIGNED NULL DEFAULT "0" AFTER `selected`,
ADD COLUMN `create_type` TINYINT UNSIGNED NULL DEFAULT "0" AFTER `use_times`,
ADD COLUMN `last_used_at` DATETIME NULL AFTER `created_at`';
Db::getInstance()->execute($sql);
Configuration::updateValue('ARSEO_REDIRECTS_LOG', 1);
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_3_5($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
Configuration::updateValue('ARSP_DISABLE_ANCHOR', 0);
Configuration::updateValue('ARSP_ENABLE_ATTR', 0);
Configuration::updateValue('ARSP_DISABLE_DEFAULT_ATTR_ANCHOR', 1);
Configuration::updateValue('ARSP_DISABLE_DEFAULT_ATTR', 1);
return $return;
}

View File

@@ -0,0 +1,31 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_4_1($module)
{
$module->registerHook('actionObjectProductAddAfter');
$module->registerHook('actionObjectProductUpdateAfter');
return true;
}

View File

@@ -0,0 +1,29 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_4_7($module)
{
@rename($module->normalizePath(_PS_ROOT_DIR_ . '/sitemap'), $module->normalizePath(_PS_ROOT_DIR_ . '/sitemaps'));
return true;
}

View File

@@ -0,0 +1,33 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_5_5($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
return $return;
}

View File

@@ -0,0 +1,45 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
include_once dirname(__FILE__).'/../classes/jsonld/ArSeoProJsonLDGeneral.php';
include_once dirname(__FILE__).'/../classes/jsonld/ArSeoProJsonLDProduct.php';
include_once dirname(__FILE__).'/../classes/jsonld/ArSeoProJsonLDAdvanced.php';
function upgrade_module_1_6_2($module)
{
$config = new ArSeoProJsonLDGeneral($module);
$config->loadDefaults();
$config->saveToConfig();
$config = new ArSeoProJsonLDProduct($module);
$config->loadDefaults();
$config->saveToConfig();
$config = new ArSeoProJsonLDAdvanced($module);
$config->loadDefaults();
$config->saveToConfig();
$module->registerHook('displayBeforeBodyClosingTag');
return true;
}

View File

@@ -0,0 +1,33 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_6_4($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
return $return;
}

View File

@@ -0,0 +1,31 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_6_5($module)
{
$module->registerHook('actionProductSearchAfter');
$module->registerHook('actionProductListModifier');
$module->registerHook('displayFooter');
return true;
}

View File

@@ -0,0 +1,33 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_6_9($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
return $return;
}

View File

@@ -0,0 +1,33 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_7_1($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
return $return;
}

View File

@@ -0,0 +1,33 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_7_2($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
return $return;
}

View File

@@ -0,0 +1,33 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_7_3($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
return $return;
}

View File

@@ -0,0 +1,85 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_7_5($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
$sqls = array(
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_meta`
COLLATE='utf8mb4_general_ci',
CHANGE COLUMN `name` `name` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `id_shop`,
CHANGE COLUMN `rule_type` `rule_type` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `name`,
CHANGE COLUMN `meta_title` `meta_title` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `rule_type`,
CHANGE COLUMN `meta_description` `meta_description` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `meta_title`,
CHANGE COLUMN `meta_keywords` `meta_keywords` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `meta_description`,
CHANGE COLUMN `fb_admins` `fb_admins` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `meta_keywords`,
CHANGE COLUMN `fb_app` `fb_app` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `fb_admins`,
CHANGE COLUMN `fb_title` `fb_title` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `fb_app`,
CHANGE COLUMN `fb_description` `fb_description` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `fb_title`,
CHANGE COLUMN `fb_type` `fb_type` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `fb_description`,
CHANGE COLUMN `fb_custom_image` `fb_custom_image` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `fb_image`,
CHANGE COLUMN `tw_type` `tw_type` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `fb_custom_image`,
CHANGE COLUMN `tw_account` `tw_account` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `tw_type`,
CHANGE COLUMN `tw_title` `tw_title` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `tw_account`,
CHANGE COLUMN `tw_description` `tw_description` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `tw_title`,
CHANGE COLUMN `tw_custom_image` `tw_custom_image` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `tw_image`,
CHANGE COLUMN `tw_ch1` `tw_ch1` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `tw_custom_image`,
CHANGE COLUMN `tw_ch2` `tw_ch2` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' AFTER `tw_ch1`;",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_meta_rel`
COLLATE='utf8mb4_general_ci',
CHANGE COLUMN `rel_object` `rel_object` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci' AFTER `id_rule`;",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_redirect`
COLLATE='utf8mb4_general_ci',
CHANGE COLUMN `from` `from` VARCHAR(1024) NOT NULL COLLATE 'utf8mb4_general_ci' AFTER `id_redirect`,
CHANGE COLUMN `to` `to` TEXT NOT NULL COLLATE 'utf8mb4_general_ci' AFTER `from`;",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_rule`
COLLATE='utf8mb4_general_ci',
CHANGE COLUMN `name` `name` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci' AFTER `id_shop`,
CHANGE COLUMN `rule` `rule` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_general_ci' AFTER `name`;",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_rule_category`
COLLATE='utf8mb4_general_ci';",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_sitemap_category`
COLLATE='utf8mb4_general_ci';",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_sitemap_cms`
COLLATE='utf8mb4_general_ci';",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_sitemap_manufacturer`
COLLATE='utf8mb4_general_ci';",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_sitemap_meta`
COLLATE='utf8mb4_general_ci';",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_sitemap_product`
COLLATE='utf8mb4_general_ci';",
"ALTER TABLE `" . _DB_PREFIX_ . "arseopro_sitemap_supplier`
COLLATE='utf8mb4_general_ci';"
);
foreach ($sqls as $sql) {
Db::getInstance()->execute($sql);
}
return $return;
}

View File

@@ -0,0 +1,57 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
include_once dirname(__FILE__).'/../classes/ArSeoProCanonical.php';
include_once dirname(__FILE__).'/../classes/canonical/ArSeoProCanonicalProduct.php';
include_once dirname(__FILE__).'/../classes/canonical/ArSeoProCanonicalCategory.php';
function upgrade_module_1_8_1($module)
{
$return = true;
$return = $return && $module->uninstallOverrides();
$return = $return && $module->getInstaller()->prepareOverrides();
$return = $return && $module->installOverrides();
$config = new ArSeoProCanonical($module, 'arscc_');
$config->loadDefaults();
$config->saveToConfig(false);
$module->registerHook('actionProductUpdate');
$module->registerHook('actionCategoryUpdate');
$module->registerHook('displayAdminProductsSeoStepBottom');
$module->registerHook('displayBackOfficeCategory');
$module->registerHook('actionObjectProductUpdateBefore');
if (Configuration::get('ARSEO_REDIRECTS')) {
Configuration::updateValue('ARSR_ENABLE', 1);
}
if (Configuration::get('ARSEO_REDIRECTS_LOG')) {
Configuration::updateValue('ARSR_LOG', 1);
}
$return = $return && ArSeoProCanonicalProduct::installTable();
$return = $return && ArSeoProCanonicalCategory::installTable();
return $return;
}

View File

@@ -0,0 +1,46 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_8_6($module)
{
$return = true;
$module->getLogger()->log('Upgrade to 1.8.6');
$res = $module->uninstallOverrides();
$module->getLogger()->log('Uninstall overrides: ' . (int)$res);
$return = $return && $res;
$res = $module->getInstaller()->prepareOverrides();
$module->getLogger()->log('Preparing overrides: ' . (int)$res);
$return = $return && $res;
$res = $module->installOverrides();
$module->getLogger()->log('Install overrides: ' . (int)$res);
$return = $return && $res;
$module->getInstaller()->clearDefaultRoutes();
$module->getLogger()->log('Upgrade complete' . PHP_EOL);
return $return;
}

View File

@@ -0,0 +1,53 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_8_7($module)
{
$return = true;
$module->getLogger()->log('Upgrade to 1.8.7');
$res = $module->uninstallOverrides();
$module->getLogger()->log('Uninstall overrides: ' . (int)$res);
$return = $return && $res;
$res = $module->getInstaller()->prepareOverrides();
$module->getLogger()->log('Preparing overrides: ' . (int)$res);
$return = $return && $res;
$res = $module->installOverrides();
$module->getLogger()->log('Install overrides: ' . (int)$res);
$return = $return && $res;
Configuration::updateValue('ARSP_REDIRECT_CODE', '301');
Configuration::updateValue('ARSP_REDIRECT_NOT_ACTIVE_CODE', '301');
Configuration::updateValue('ARSC_REDIRECT_CODE', '301');
Configuration::updateValue('ARSM_REDIRECT_CODE', '301');
Configuration::updateValue('ARSS_REDIRECT_CODE', '301');
Configuration::updateValue('ARSCMS_REDIRECT_CODE', '301');
Configuration::updateValue('ARSCMSC_REDIRECT_CODE', '301');
$module->getLogger()->log('Upgrade complete' . PHP_EOL);
return $return;
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* 2012-2018 Areama
*
* NOTICE OF LICENSE
*
* 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@areama.net so we can send you a copy immediately.
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_8_8($module)
{
$return = true;
$module->getLogger()->log('Upgrade to 1.8.8');
$res = $module->uninstallOverrides();
$module->getLogger()->log('Uninstall overrides: ' . (int)$res);
$return = $return && $res;
$res = $module->getInstaller()->prepareOverrides();
$module->getLogger()->log('Preparing overrides: ' . (int)$res);
$return = $return && $res;
$res = $module->installOverrides();
$module->getLogger()->log('Install overrides: ' . (int)$res);
$return = $return && $res;
$module->getLogger()->log('Upgrade complete' . PHP_EOL);
return $return;
}