On rajoute encore quelques modules
This commit is contained in:
35
modules/iqitmegamenu/upgrade/index.php
Normal file
35
modules/iqitmegamenu/upgrade/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* 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@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 <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
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;
|
||||
22
modules/iqitmegamenu/upgrade/install-1.0.1.php
Normal file
22
modules/iqitmegamenu/upgrade/install-1.0.1.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 IQIT-COMMERCE.COM
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
|
||||
* @copyright 2007-2015 IQIT-COMMERCE.COM
|
||||
* @license GNU General Public License version 2
|
||||
*
|
||||
* You can not resell or redistribute this software.
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_0_1($object)
|
||||
{
|
||||
Configuration::updateValue('iqitmegamenu_hor_bootstrap', 0);
|
||||
return true;
|
||||
}
|
||||
21
modules/iqitmegamenu/upgrade/install-1.0.2.php
Normal file
21
modules/iqitmegamenu/upgrade/install-1.0.2.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 IQIT-COMMERCE.COM
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
|
||||
* @copyright 2007-2015 IQIT-COMMERCE.COM
|
||||
* @license GNU General Public License version 2
|
||||
*
|
||||
* You can not resell or redistribute this software.
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_0_2($object)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
21
modules/iqitmegamenu/upgrade/install-1.0.5.php
Normal file
21
modules/iqitmegamenu/upgrade/install-1.0.5.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 IQIT-COMMERCE.COM
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
|
||||
* @copyright 2007-2015 IQIT-COMMERCE.COM
|
||||
* @license GNU General Public License version 2
|
||||
*
|
||||
* You can not resell or redistribute this software.
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_0_5($object)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
38
modules/iqitmegamenu/upgrade/install-1.1.0.php
Normal file
38
modules/iqitmegamenu/upgrade/install-1.1.0.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 IQIT-COMMERCE.COM
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
|
||||
* @copyright 2007-2015 IQIT-COMMERCE.COM
|
||||
* @license GNU General Public License version 2
|
||||
*
|
||||
* You can not resell or redistribute this software.
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_1_0($object)
|
||||
{
|
||||
Configuration::updateValue('iqitmegamenu_hor_hook', 0);
|
||||
$object->registerHook('displayIqitMenu');
|
||||
|
||||
Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'iqitmegamenu_tabs` ADD group_access TEXT NOT NULL AFTER submenu_border_i');
|
||||
|
||||
$groups = Group::getGroups(Context::getContext()->language->id);
|
||||
|
||||
$group_access = array();
|
||||
|
||||
foreach ($groups as $group) {
|
||||
$group_access[$group['id_group']] = true;
|
||||
}
|
||||
$group_access = serialize($group_access);
|
||||
|
||||
Db::getInstance()->execute('UPDATE `' . _DB_PREFIX_ . 'iqitmegamenu_tabs` SET group_access = "' . $group_access . '" WHERE 1');
|
||||
Db::getInstance()->execute('RENAME TABLE `' . _DB_PREFIX_ . 'iqitmegamenu` TO `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop`');
|
||||
|
||||
return true;
|
||||
}
|
||||
21
modules/iqitmegamenu/upgrade/install-1.1.1.php
Normal file
21
modules/iqitmegamenu/upgrade/install-1.1.1.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 IQIT-COMMERCE.COM
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
|
||||
* @copyright 2007-2015 IQIT-COMMERCE.COM
|
||||
* @license GNU General Public License version 2
|
||||
*
|
||||
* You can not resell or redistribute this software.
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_1_1($object)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user