From 4f99b4d995fe8ef5c228d81ee54a75cf8ccad897 Mon Sep 17 00:00:00 2001 From: Emiliano 'AlberT' Gabrielli Date: Sun, 23 Oct 2016 01:19:24 +0200 Subject: [PATCH] Release 1.1.0 (#60) * Migrate the module to the new Faktiva maintainer * minor changes --- .gitignore | 6 +- .php_cs | 31 +++- .sensiolabs.yml | 3 + README.md | 49 ++--- composer.json | 67 ++++--- composer.lock | 172 ++++++++++-------- config.xml => faktiva_clean_urls/config.xml | 10 +- .../faktiva_clean_urls.php | 35 ++-- faktiva_clean_urls/index.php | 29 +++ logo.gif => faktiva_clean_urls/logo.gif | Bin logo.png => faktiva_clean_urls/logo.png | Bin .../override}/classes/Dispatcher.php | 20 +- .../override}/classes/Link.php | 18 ++ .../classes/controller/FrontController.php | 18 ++ .../override/classes/controller/index.php | 29 +++ faktiva_clean_urls/override/classes/index.php | 29 +++ .../controllers/front/CategoryController.php | 18 ++ .../controllers/front/CmsController.php | 20 +- .../front/ManufacturerController.php | 18 ++ .../controllers/front/ProductController.php | 18 ++ .../controllers/front/SupplierController.php | 18 ++ .../override/controllers/front/index.php | 29 +++ .../override/controllers/index.php | 29 +++ faktiva_clean_urls/override/index.php | 29 +++ faktiva_clean_urls/tools/debug.php | 24 +++ .../translations}/it.php | 18 ++ faktiva_clean_urls/upgrade/index.php | 29 +++ faktiva_clean_urls/upgrade/install-1.1.0.php | 41 +++++ index.php | 25 --- override/classes/controller/index.php | 25 --- override/classes/index.php | 25 --- override/controllers/front/index.php | 25 --- override/controllers/index.php | 25 --- override/index.php | 25 --- 34 files changed, 650 insertions(+), 307 deletions(-) rename config.xml => faktiva_clean_urls/config.xml (61%) rename zzcleanurls.php => faktiva_clean_urls/faktiva_clean_urls.php (78%) create mode 100644 faktiva_clean_urls/index.php rename logo.gif => faktiva_clean_urls/logo.gif (100%) rename logo.png => faktiva_clean_urls/logo.png (100%) rename {override => faktiva_clean_urls/override}/classes/Dispatcher.php (97%) rename {override => faktiva_clean_urls/override}/classes/Link.php (90%) rename {override => faktiva_clean_urls/override}/classes/controller/FrontController.php (54%) create mode 100644 faktiva_clean_urls/override/classes/controller/index.php create mode 100644 faktiva_clean_urls/override/classes/index.php rename {override => faktiva_clean_urls/override}/controllers/front/CategoryController.php (59%) rename {override => faktiva_clean_urls/override}/controllers/front/CmsController.php (70%) rename {override => faktiva_clean_urls/override}/controllers/front/ManufacturerController.php (62%) rename {override => faktiva_clean_urls/override}/controllers/front/ProductController.php (74%) rename {override => faktiva_clean_urls/override}/controllers/front/SupplierController.php (60%) create mode 100644 faktiva_clean_urls/override/controllers/front/index.php create mode 100644 faktiva_clean_urls/override/controllers/index.php create mode 100644 faktiva_clean_urls/override/index.php create mode 100644 faktiva_clean_urls/tools/debug.php rename {translations => faktiva_clean_urls/translations}/it.php (77%) create mode 100644 faktiva_clean_urls/upgrade/index.php create mode 100644 faktiva_clean_urls/upgrade/install-1.1.0.php delete mode 100644 index.php delete mode 100644 override/classes/controller/index.php delete mode 100644 override/classes/index.php delete mode 100644 override/controllers/front/index.php delete mode 100644 override/controllers/index.php delete mode 100644 override/index.php diff --git a/.gitignore b/.gitignore index fd264bd..b79a0c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ -.htaccess -.svn -vendor -.cache +vendor/ .php_cs.cache config_*.xml +*.zip diff --git a/.php_cs b/.php_cs index 3d8f0ca..1b35540 100644 --- a/.php_cs +++ b/.php_cs @@ -1,12 +1,37 @@ +@license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 +@source https://github.com/faktiva/prestashop-clean-urls +EOF; + +Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header); + return Symfony\CS\Config\Config::create() - ->fixers(array('-psr0')) - ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) ->setUsingCache(true) + ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) + ->fixers(array( + 'header_comment', + 'long_array_syntax', + 'single_quote', + 'pre_increment', + )) ->finder( Symfony\CS\Finder\DefaultFinder::create() - ->in(__DIR__) + ->in(__DIR__.'/faktiva_clean_urls') ) ; diff --git a/.sensiolabs.yml b/.sensiolabs.yml index 11eabc8..ec19085 100644 --- a/.sensiolabs.yml +++ b/.sensiolabs.yml @@ -2,6 +2,9 @@ global_exclude_dirs: - translations - upgrade +exclude_patterns: + - tools/debug.php + rules: php.absolute_path_present: enabled: true diff --git a/README.md b/README.md index f3214da..f08c941 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,37 @@ -[Prestashop module "ZiZuu Clean URLs"](https://github.com/ZiZuu-store/PrestaShop_module-CleanURLs) -===== +[PrestaShop module "Clean URLs"](https://github.com/faktiva/prestashop-seo-tk)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/58d1de4f-45fc-4f63-aeb3-7ddc51d4a64e/mini.png)](https://insight.sensiolabs.com/projects/58d1de4f-45fc-4f63-aeb3-7ddc51d4a64e) [![License](https://img.shields.io/packagist/l/faktiva/prestashop-clean-urls.svg?style=flat)](https://creativecommons.org/licenses/by-sa/4.0/) +=== -[![SensioLabsInsight](https://insight.sensiolabs.com/projects/0f609ac9-667f-4840-82d4-464e0f7c31ba/mini.png)](https://insight.sensiolabs.com/projects/0f609ac9-667f-4840-82d4-464e0f7c31ba) -[![GitHub issues](https://img.shields.io/github/issues/ZiZuu-store/zzCleanURLs.svg?style=plastic)](https://github.com/ZiZuu-store/zzCleanURLs/issues) +[![GitHub release](https://img.shields.io/github/release/faktiva/prestashop-clean-urls.svg?style=plastic&label=latest)](https://github.com/faktiva/prestashop-clean-urls/releases/latest) +[![Project Status](http://opensource.box.com/badges/active.svg)](http://opensource.box.com/badges) +[![Percentage of issues still open](http://isitmaintained.com/badge/open/faktiva/prestashop-clean-urls.svg)](http://isitmaintained.com/project/faktiva/prestashop-clean-urls "Percentage of issues still open") +[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/faktiva/prestashop-clean-urls.svg)](http://isitmaintained.com/project/faktiva/prestashop-clean-urls "Average time to resolve an issue") +[![composer.lock](https://poser.pugx.org/faktiva/prestashop-clean-urls/composerlock)](https://packagist.org/packages/faktiva/prestashop-clean-urls) +[![Dependencies Status](https://img.shields.io/librariesio/github/faktiva/prestashop-clean-urls.svg?maxAge=3600)](https://libraries.io/github/faktiva/prestashop-clean-urls) -[![Packagist](https://img.shields.io/packagist/l/zizuu-store/zzcleanurls.svg?style=plastic)](https://creativecommons.org/licenses/by-nc-sa/4.0/) -[![GitHub release](https://img.shields.io/github/release/ZiZuu-store/zzCleanURLs.svg?style=plastic&label=latest)](https://github.com/ZiZuu-store/zzCleanURLs/releases/latest) - -[![Packagist](https://img.shields.io/packagist/dt/zizuu-store/zzcleanurls.svg?style=plastic)](https://packagist.org/packages/zizuu-store/zzcleanurls) -[![GitHub stars](https://img.shields.io/github/stars/ZiZuu-store/zzCleanURLs.svg?style=social)](https://github.com/ZiZuu-store/zzCleanURLs/stargazers) -[![GitHub forks](https://img.shields.io/github/forks/ZiZuu-store/zzCleanURLs.svg?style=social&label=Forks)](https://github.com/ZiZuu-store/zzCleanURLs/network) - -[![Join the chat at https://gitter.im/ZiZuu-store/zzCleanURLs](https://img.shields.io/badge/Gitter-CHAT%20NOW-brightgreen.svg?style=plastic)](https://gitter.im/ZiZuu-store/zzCleanURLs) -[![Twitter](https://img.shields.io/twitter/url/https/github.com/ZiZuu-store/zzCleanURLs.svg?style=social)](https://twitter.com/intent/tweet?text=Fantastic @PrestaShop module by @ZiZuu_Store: "ZiZuu Clean URLs"&url=https://github.com/ZiZuu-store/zzCleanURLs) +[![Join the chat at https://gitter.im/faktiva/prestashop-clean-urls](https://img.shields.io/badge/Gitter-CHAT%20NOW-brightgreen.svg?style=plastic)](https://gitter.im/faktiva/prestashop-clean-urls) +[![Twitter](https://img.shields.io/twitter/url/https/github.com/faktiva/prestashop-clean-urls.svg?style=social)](https://twitter.com/intent/tweet?text=Fantastic @PrestaShop module "#Faktiva Clean URLs"&url=https://github.com/faktiva/prestashop-clean-urls) ___ -We are going to merge other users' contributions and ideas as soon as we note them and find the time to test. +Makes possible to have URLs with no IDs in PrestaShop. -If you fork, please make every change the way we can pull, don't reinvent the wheel .. make every custom change on a private branch, so you can merge your own changes to the community mintained branch every time a new release is out. +If you fork, please make every change the way we can pull, don't reinvent the wheel .. make every custom change on a private branch, so you can merge your own changes to the community mantained branch every time a new release is out. -* For production use the **latest stable [release](https://github.com/ZiZuu-store/zzCleanURLs/releases/)** -* For developing or Pull Request please use only the "**[dev](https://github.com/ZiZuu-store/zzCleanURLs/tree/dev)**" branch +* For production use the **latest stable [release](https://github.com/faktiva/prestashop-clean-urls/releases/latest)** +* For developing or Pull Request please use only the "**[dev](https://github.com/faktiva/prestashop-clean-urls/tree/dev)**" branch It has been reported to work on **PS 1.5.6 - 1.6.1.x** but will install on PS >= 1.5 too. **If you succesfully use this module on some older version please report** # INSTALLATION -Install the module from the Backoffice (administration panel), download the release ZIP file (***zzcleanurls.zip***) as it already contains the right folder name (`zzcleanurls`, **not** `zzcleanurls-version_x.y.z` !) - -In the modules tab, click on **add a new module**. Click on Browse to open the dialogue box letting you search your computer, select the ZIP file then validate the dialogue box. Finally click on Upload this module. +Install the module from the Backoffice (administration panel): +- download the lastest [release](https://github.com/faktiva/prestashop-clean-urls/releases/latest) ***ZIP*** file (***`faktiva_clean_urls.zip`***) as it already contains the right folder name (`faktiva_clean_urls`, **not** `faktiva-prestashop-clean-urls-version_x.y.z` !) +- in the modules tab, click on **add a new module** +- click on "`Browse`" to open the dialogue box letting you search your computer +- select the ZIP file you downloaded and validate the dialogue box +- click on "`Upload this module`" +- once uploaded you could have to search the module among the others (tip: filter by author "`faktiva`") and click on the `install` button ## Make sure your SEO and URL settings are as follows: @@ -51,7 +52,7 @@ Remember to # UNINSTALLATION -* Go to modules -> Find and uninstall "**zzcleanurls**" +* Go to modules -> Find and uninstall "**faktiva_clean_urls**" **It should suffice!** @@ -76,9 +77,9 @@ If you got any other override modules, you should now go to you back office, uni # License -![Creative Commons BY-NC-SA License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png) +![Creative Commons BY-SA License](https://i.creativecommons.org/l/by-sa/4.0/88x31.png) -**[ZiZuu CleanURLs](https://github.com/ZiZuu-store/zzCleanURLs)** by [ZiZuu Store](https://github.com/ZiZuu-store) is licensed under a **Creative Commons [Attribution-NonCommercial-ShareAlike](http://creativecommons.org/licenses/by-nc-sa/4.0/) 4.0 International License**. +**[PrestaShop Clean URLs](https://github.com/faktiva/prestashop-clean-urls)** by [Faktiva](https://github.com/faktiva) is licensed under a **Creative Commons [Attribution-ShareAlike](http://creativecommons.org/licenses/by-sa/4.0/) 4.0 International License**. -Permissions beyond the scope of this license may be available contacting us at info@ZiZuu.com. +Permissions beyond the scope of this license may be available contacting us at info@faktiva.com. diff --git a/composer.json b/composer.json index f302feb..06a9eb7 100644 --- a/composer.json +++ b/composer.json @@ -1,29 +1,44 @@ { - "name": "zizuu-store/zzcleanurls", - "description": "Prestashop module \"ZiZuu Clean URLs\". It removes objects' IDs from URL", - "homepage": "https://github.com/ZiZuu-store/zzCleanURLs", - "license": "CC-BY-NC-SA-4.0", - "type": "prestashop-module", - "authors": [ - { - "name": "ZiZuu Store", - "email": "info@ZiZuu.com" + "name": "faktiva/prestashop-clean-urls", + "description": "Prestashop\"Clean URLs\" module. It removes objects' IDs from URLs.", + "homepage": "https://github.com/faktiva/prestashop-clean-urls", + "license": "CC-BY-SA-4.0", + "type": "prestashop-module", + "authors": [ + { + "name": "AlberT", + "email": "albert@faktiva.com" + } + ], + + "minimum-stability": "stable", + "config": { + "github-protocols": ["https"], + "archive-format": "zip", + "preferred-install": "dist", + "optimize-autoloader": true + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~1.10", + "symfony/var-dumper": "~2.0|~3.0", + "symfony/debug": "~2.0|~3.0" + }, + "require": { + "php": ">=5.2" + }, + "replace": { + "zizuu-store/zzcleanurls": "*" + }, + "scripts": { + "csfix": [ + "php-cs-fixer -vvv fix ; echo" + ], + "zip": [ + "@composer archive -vvv -f zip", + "php -r 'rename(@array_shift(glob(\"faktiva-prestashop-clean-urls-*.zip\")), \"faktiva_clean_urls.zip\");'" + ] + }, + "archive": { + "exclude": [".*", "/composer.*", "/vendor", "*.zip", "*.tar", "*.md", "/*.jpg" ] } - ], - "config": { - "preferred-install": "dist" - }, - "require-dev": { - "fabpot/php-cs-fixer": "^1.11", - "symfony/var-dumper": "^3.0", - "symfony/debug": "^3.0" - }, - "require": { - "php": ">=5.3.2" - }, - "scripts": { - "csfix": [ - "php-cs-fixer -vvv fix" - ] - } } diff --git a/composer.lock b/composer.lock index 88c8659..9f78f0a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,37 +4,41 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "f8b52cd5284c103c5500a4f7970f8dd6", - "content-hash": "e75d0f065075e80ae00b227c4de640ae", + "hash": "ad30b19d943a4bbf75f445eb0f67902e", + "content-hash": "972d8f96b75663155b38e4e406d9e997", "packages": [], "packages-dev": [ { - "name": "fabpot/php-cs-fixer", - "version": "v1.11.1", + "name": "friendsofphp/php-cs-fixer", + "version": "v1.12.2", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "2c9f8298181f059c5077abda78019b9a0c9a7cc0" + "reference": "baa7112bef3b86c65fcfaae9a7a50436e3902b41" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/2c9f8298181f059c5077abda78019b9a0c9a7cc0", - "reference": "2c9f8298181f059c5077abda78019b9a0c9a7cc0", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/baa7112bef3b86c65fcfaae9a7a50436e3902b41", + "reference": "baa7112bef3b86c65fcfaae9a7a50436e3902b41", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": ">=5.3.6", - "sebastian/diff": "~1.1", - "symfony/console": "~2.3|~3.0", - "symfony/event-dispatcher": "~2.1|~3.0", - "symfony/filesystem": "~2.1|~3.0", - "symfony/finder": "~2.1|~3.0", - "symfony/process": "~2.3|~3.0", - "symfony/stopwatch": "~2.5|~3.0" + "php": "^5.3.6 || >=7.0 <7.2", + "sebastian/diff": "^1.1", + "symfony/console": "^2.3 || ^3.0", + "symfony/event-dispatcher": "^2.1 || ^3.0", + "symfony/filesystem": "^2.1 || ^3.0", + "symfony/finder": "^2.1 || ^3.0", + "symfony/process": "^2.3 || ^3.0", + "symfony/stopwatch": "^2.5 || ^3.0" + }, + "conflict": { + "hhvm": "<3.9" }, "require-dev": { - "satooshi/php-coveralls": "0.7.*@dev" + "phpunit/phpunit": "^4.5|^5", + "satooshi/php-coveralls": "^1.0" }, "bin": [ "php-cs-fixer" @@ -60,26 +64,34 @@ } ], "description": "A tool to automatically fix PHP code style", - "time": "2016-01-20 19:00:28" + "time": "2016-09-27 07:57:59" }, { "name": "psr/log", - "version": "1.0.0", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b" + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b", + "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", "shasum": "" }, + "require": { + "php": ">=5.3.0" + }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { - "psr-0": { - "Psr\\Log\\": "" + "psr-4": { + "Psr\\Log\\": "Psr/Log/" } }, "notification-url": "https://packagist.org/downloads/", @@ -93,12 +105,13 @@ } ], "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", "keywords": [ "log", "psr", "psr-3" ], - "time": "2012-12-21 11:40:51" + "time": "2016-10-10 12:19:37" }, { "name": "sebastian/diff", @@ -154,20 +167,21 @@ }, { "name": "symfony/console", - "version": "v3.0.2", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "5a02eaadaa285e2bb727eb6bbdfb8201fcd971b0" + "reference": "6cb0872fb57b38b3b09ff213c21ed693956b9eb0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/5a02eaadaa285e2bb727eb6bbdfb8201fcd971b0", - "reference": "5a02eaadaa285e2bb727eb6bbdfb8201fcd971b0", + "url": "https://api.github.com/repos/symfony/console/zipball/6cb0872fb57b38b3b09ff213c21ed693956b9eb0", + "reference": "6cb0872fb57b38b3b09ff213c21ed693956b9eb0", "shasum": "" }, "require": { "php": ">=5.5.9", + "symfony/debug": "~2.8|~3.0", "symfony/polyfill-mbstring": "~1.0" }, "require-dev": { @@ -183,7 +197,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -210,20 +224,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2016-02-02 13:44:19" + "time": "2016-09-28 00:11:12" }, { "name": "symfony/debug", - "version": "v3.0.2", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "29606049ced1ec715475f88d1bbe587252a3476e" + "reference": "e2b3f74a67fc928adc3c1b9027f73e1bc01190a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/29606049ced1ec715475f88d1bbe587252a3476e", - "reference": "29606049ced1ec715475f88d1bbe587252a3476e", + "url": "https://api.github.com/repos/symfony/debug/zipball/e2b3f74a67fc928adc3c1b9027f73e1bc01190a8", + "reference": "e2b3f74a67fc928adc3c1b9027f73e1bc01190a8", "shasum": "" }, "require": { @@ -240,7 +254,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -267,20 +281,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2016-01-27 05:14:46" + "time": "2016-09-06 11:02:40" }, { "name": "symfony/event-dispatcher", - "version": "v3.0.2", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "4dd5df31a28c0f82b41cb1e1599b74b5dcdbdafa" + "reference": "c0c00c80b3a69132c4e55c3e7db32b4a387615e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/4dd5df31a28c0f82b41cb1e1599b74b5dcdbdafa", - "reference": "4dd5df31a28c0f82b41cb1e1599b74b5dcdbdafa", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/c0c00c80b3a69132c4e55c3e7db32b4a387615e5", + "reference": "c0c00c80b3a69132c4e55c3e7db32b4a387615e5", "shasum": "" }, "require": { @@ -300,7 +314,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -327,20 +341,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2016-01-27 05:14:46" + "time": "2016-07-19 10:45:57" }, { "name": "symfony/filesystem", - "version": "v3.0.2", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "064ac12afd2ceb8a2c1bfb7bed8e931c6dd1997f" + "reference": "682fd8fdb3135fdf05fc496a01579ccf6c85c0e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/064ac12afd2ceb8a2c1bfb7bed8e931c6dd1997f", - "reference": "064ac12afd2ceb8a2c1bfb7bed8e931c6dd1997f", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/682fd8fdb3135fdf05fc496a01579ccf6c85c0e5", + "reference": "682fd8fdb3135fdf05fc496a01579ccf6c85c0e5", "shasum": "" }, "require": { @@ -349,7 +363,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -376,20 +390,20 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2016-01-27 11:34:55" + "time": "2016-09-14 00:18:46" }, { "name": "symfony/finder", - "version": "v3.0.2", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "623bda0abd9aa29e529c8e9c08b3b84171914723" + "reference": "205b5ffbb518a98ba2ae60a52656c4a31ab00c6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/623bda0abd9aa29e529c8e9c08b3b84171914723", - "reference": "623bda0abd9aa29e529c8e9c08b3b84171914723", + "url": "https://api.github.com/repos/symfony/finder/zipball/205b5ffbb518a98ba2ae60a52656c4a31ab00c6f", + "reference": "205b5ffbb518a98ba2ae60a52656c4a31ab00c6f", "shasum": "" }, "require": { @@ -398,7 +412,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -425,20 +439,20 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2016-01-27 05:14:46" + "time": "2016-09-28 00:11:12" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.1.0", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "1289d16209491b584839022f29257ad859b8532d" + "reference": "dff51f72b0706335131b00a7f49606168c582594" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/1289d16209491b584839022f29257ad859b8532d", - "reference": "1289d16209491b584839022f29257ad859b8532d", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/dff51f72b0706335131b00a7f49606168c582594", + "reference": "dff51f72b0706335131b00a7f49606168c582594", "shasum": "" }, "require": { @@ -450,7 +464,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "1.2-dev" } }, "autoload": { @@ -484,20 +498,20 @@ "portable", "shim" ], - "time": "2016-01-20 09:13:37" + "time": "2016-05-18 14:26:46" }, { "name": "symfony/process", - "version": "v3.0.2", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "dfecef47506179db2501430e732adbf3793099c8" + "reference": "66de154ae86b1a07001da9fbffd620206e4faf94" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/dfecef47506179db2501430e732adbf3793099c8", - "reference": "dfecef47506179db2501430e732adbf3793099c8", + "url": "https://api.github.com/repos/symfony/process/zipball/66de154ae86b1a07001da9fbffd620206e4faf94", + "reference": "66de154ae86b1a07001da9fbffd620206e4faf94", "shasum": "" }, "require": { @@ -506,7 +520,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -533,20 +547,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2016-02-02 13:44:19" + "time": "2016-09-29 14:13:09" }, { "name": "symfony/stopwatch", - "version": "v3.0.2", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "4a204804952ff267ace88cf499e0b4bb302a475e" + "reference": "bb42806b12c5f89db4ebf64af6741afe6d8457e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/4a204804952ff267ace88cf499e0b4bb302a475e", - "reference": "4a204804952ff267ace88cf499e0b4bb302a475e", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/bb42806b12c5f89db4ebf64af6741afe6d8457e1", + "reference": "bb42806b12c5f89db4ebf64af6741afe6d8457e1", "shasum": "" }, "require": { @@ -555,7 +569,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -582,20 +596,20 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2016-01-03 15:35:16" + "time": "2016-06-29 05:41:56" }, { "name": "symfony/var-dumper", - "version": "v3.0.2", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "24bb94807eff00db49374c37ebf56a0304e8aef3" + "reference": "70bfe927b86ba9999aeebd829715b0bb2cd39a10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/24bb94807eff00db49374c37ebf56a0304e8aef3", - "reference": "24bb94807eff00db49374c37ebf56a0304e8aef3", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/70bfe927b86ba9999aeebd829715b0bb2cd39a10", + "reference": "70bfe927b86ba9999aeebd829715b0bb2cd39a10", "shasum": "" }, "require": { @@ -611,7 +625,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -645,7 +659,7 @@ "debug", "dump" ], - "time": "2016-01-07 13:38:51" + "time": "2016-09-29 14:13:09" } ], "aliases": [], @@ -654,7 +668,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=5.3.2" + "php": ">=5.2" }, "platform-dev": [] } diff --git a/config.xml b/faktiva_clean_urls/config.xml similarity index 61% rename from config.xml rename to faktiva_clean_urls/config.xml index eb396da..e1f8459 100644 --- a/config.xml +++ b/faktiva_clean_urls/config.xml @@ -1,12 +1,12 @@ - zzcleanurls - - + faktiva_clean_urls + + - + - + 1 0 diff --git a/zzcleanurls.php b/faktiva_clean_urls/faktiva_clean_urls.php similarity index 78% rename from zzcleanurls.php rename to faktiva_clean_urls/faktiva_clean_urls.php index a6c086a..30daf5c 100644 --- a/zzcleanurls.php +++ b/faktiva_clean_urls/faktiva_clean_urls.php @@ -1,46 +1,53 @@ - * @source https://github.com/ZiZuu-store/zzCleanURLs + * @author AlberT + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls */ if (!defined('_PS_VERSION_')) { return; } -if (is_readable(__DIR__.'/vendor/autoload.php')) { - require_once __DIR__.'/vendor/autoload.php'; - Symfony\Component\Debug\Debug::enable(); +// Set true to enable debugging +define('FKV_DEBUG', false); + +if (version_compare(phpversion(), '5.3.0', '>=')) { // Namespaces support is required + include_once __DIR__.'/tools/debug.php'; } -class zzCleanUrls extends Module + +class faktiva_clean_urls extends Module { public function __construct() { - $this->name = 'zzcleanurls'; + $this->name = 'faktiva_clean_urls'; $this->tab = 'seo'; - $this->version = '1.0.5'; - $this->author = 'ZiZuu Store'; + $this->version = '1.1.0'; + $this->author = 'Faktiva'; $this->need_instance = 0; $this->ps_versions_compliancy = array('min' => '1.5', 'max' => _PS_VERSION_); $this->bootstrap = true; parent::__construct(); - $this->displayName = $this->l('ZiZuu Clean URLs'); + $this->displayName = $this->l('Faktiva Clean URLs'); $this->description = $this->l('This override-Module allows you to remove URL ID\'s.'); - $this->confirmUninstall = $this->l('Are you sure you want to uninstall "ZiZuu Clean URLs"?'); + $this->confirmUninstall = $this->l('Are you sure you want to uninstall "Faktiva Clean URLs" module?'); } public function getContent() diff --git a/faktiva_clean_urls/index.php b/faktiva_clean_urls/index.php new file mode 100644 index 0000000..fe444e7 --- /dev/null +++ b/faktiva_clean_urls/index.php @@ -0,0 +1,29 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); +return; diff --git a/logo.gif b/faktiva_clean_urls/logo.gif similarity index 100% rename from logo.gif rename to faktiva_clean_urls/logo.gif diff --git a/logo.png b/faktiva_clean_urls/logo.png similarity index 100% rename from logo.png rename to faktiva_clean_urls/logo.png diff --git a/override/classes/Dispatcher.php b/faktiva_clean_urls/override/classes/Dispatcher.php similarity index 97% rename from override/classes/Dispatcher.php rename to faktiva_clean_urls/override/classes/Dispatcher.php index f0f5b8b..bd12362 100644 --- a/override/classes/Dispatcher.php +++ b/faktiva_clean_urls/override/classes/Dispatcher.php @@ -1,5 +1,23 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + class Dispatcher extends DispatcherCore { /** @@ -129,7 +147,7 @@ public function addRoute($route_id, $rule, $controller, $id_lang = null, array $ if ($keywords) { $transform_keywords = array(); preg_match_all('#\\\{(([^{}]*)\\\:)?('.implode('|', array_keys($keywords)).')(\\\:([^{}]*))?\\\}#', $regexp, $m); - for ($i = 0, $total = count($m[0]); $i < $total; $i++) { + for ($i = 0, $total = count($m[0]); $i < $total; ++$i) { $prepend = $m[2][$i]; $keyword = $m[3][$i]; $append = $m[5][$i]; diff --git a/override/classes/Link.php b/faktiva_clean_urls/override/classes/Link.php similarity index 90% rename from override/classes/Link.php rename to faktiva_clean_urls/override/classes/Link.php index 57bccf5..f4a61f3 100644 --- a/override/classes/Link.php +++ b/faktiva_clean_urls/override/classes/Link.php @@ -1,5 +1,23 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + class Link extends LinkCore { /** diff --git a/override/classes/controller/FrontController.php b/faktiva_clean_urls/override/classes/controller/FrontController.php similarity index 54% rename from override/classes/controller/FrontController.php rename to faktiva_clean_urls/override/classes/controller/FrontController.php index fd89db2..921f8c4 100644 --- a/override/classes/controller/FrontController.php +++ b/faktiva_clean_urls/override/classes/controller/FrontController.php @@ -1,5 +1,23 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + class FrontController extends FrontControllerCore { /** diff --git a/faktiva_clean_urls/override/classes/controller/index.php b/faktiva_clean_urls/override/classes/controller/index.php new file mode 100644 index 0000000..fe444e7 --- /dev/null +++ b/faktiva_clean_urls/override/classes/controller/index.php @@ -0,0 +1,29 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); +return; diff --git a/faktiva_clean_urls/override/classes/index.php b/faktiva_clean_urls/override/classes/index.php new file mode 100644 index 0000000..fe444e7 --- /dev/null +++ b/faktiva_clean_urls/override/classes/index.php @@ -0,0 +1,29 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); +return; diff --git a/override/controllers/front/CategoryController.php b/faktiva_clean_urls/override/controllers/front/CategoryController.php similarity index 59% rename from override/controllers/front/CategoryController.php rename to faktiva_clean_urls/override/controllers/front/CategoryController.php index d13f0a7..7c2aed6 100644 --- a/override/controllers/front/CategoryController.php +++ b/faktiva_clean_urls/override/controllers/front/CategoryController.php @@ -1,5 +1,23 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + class CategoryController extends CategoryControllerCore { public function init() diff --git a/override/controllers/front/CmsController.php b/faktiva_clean_urls/override/controllers/front/CmsController.php similarity index 70% rename from override/controllers/front/CmsController.php rename to faktiva_clean_urls/override/controllers/front/CmsController.php index b6783ce..d0e8f0b 100644 --- a/override/controllers/front/CmsController.php +++ b/faktiva_clean_urls/override/controllers/front/CmsController.php @@ -1,10 +1,28 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + class CmsController extends CmsControllerCore { public function init() { - $shop_sql = ""; + $shop_sql = ''; if (Shop::isFeatureActive() && Shop::getContext() == Shop::CONTEXT_SHOP) { $shop_sql = ' AND s.`id_shop` = '.(int)Shop::getContextShopID(); } diff --git a/override/controllers/front/ManufacturerController.php b/faktiva_clean_urls/override/controllers/front/ManufacturerController.php similarity index 62% rename from override/controllers/front/ManufacturerController.php rename to faktiva_clean_urls/override/controllers/front/ManufacturerController.php index 7a5c2af..fd0115b 100644 --- a/override/controllers/front/ManufacturerController.php +++ b/faktiva_clean_urls/override/controllers/front/ManufacturerController.php @@ -1,5 +1,23 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + class ManufacturerController extends ManufacturerControllerCore { public function init() diff --git a/override/controllers/front/ProductController.php b/faktiva_clean_urls/override/controllers/front/ProductController.php similarity index 74% rename from override/controllers/front/ProductController.php rename to faktiva_clean_urls/override/controllers/front/ProductController.php index 2cc077c..c8e138f 100644 --- a/override/controllers/front/ProductController.php +++ b/faktiva_clean_urls/override/controllers/front/ProductController.php @@ -1,5 +1,23 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + class ProductController extends ProductControllerCore { public function init() diff --git a/override/controllers/front/SupplierController.php b/faktiva_clean_urls/override/controllers/front/SupplierController.php similarity index 60% rename from override/controllers/front/SupplierController.php rename to faktiva_clean_urls/override/controllers/front/SupplierController.php index 1ab86bf..440a9d9 100644 --- a/override/controllers/front/SupplierController.php +++ b/faktiva_clean_urls/override/controllers/front/SupplierController.php @@ -1,5 +1,23 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + class SupplierController extends SupplierControllerCore { public function init() diff --git a/faktiva_clean_urls/override/controllers/front/index.php b/faktiva_clean_urls/override/controllers/front/index.php new file mode 100644 index 0000000..fe444e7 --- /dev/null +++ b/faktiva_clean_urls/override/controllers/front/index.php @@ -0,0 +1,29 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); +return; diff --git a/faktiva_clean_urls/override/controllers/index.php b/faktiva_clean_urls/override/controllers/index.php new file mode 100644 index 0000000..fe444e7 --- /dev/null +++ b/faktiva_clean_urls/override/controllers/index.php @@ -0,0 +1,29 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); +return; diff --git a/faktiva_clean_urls/override/index.php b/faktiva_clean_urls/override/index.php new file mode 100644 index 0000000..fe444e7 --- /dev/null +++ b/faktiva_clean_urls/override/index.php @@ -0,0 +1,29 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); +return; diff --git a/faktiva_clean_urls/tools/debug.php b/faktiva_clean_urls/tools/debug.php new file mode 100644 index 0000000..a51e635 --- /dev/null +++ b/faktiva_clean_urls/tools/debug.php @@ -0,0 +1,24 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +if (defined('FKV_DEBUG') && FKV_DEBUG && is_readable(__DIR__.'/vendor/autoload.php')) { + require_once __DIR__.'/vendor/autoload.php'; + Symfony\Component\Debug\Debug::enable(); +} diff --git a/translations/it.php b/faktiva_clean_urls/translations/it.php similarity index 77% rename from translations/it.php rename to faktiva_clean_urls/translations/it.php index d1c471d..4947209 100644 --- a/translations/it.php +++ b/faktiva_clean_urls/translations/it.php @@ -1,5 +1,23 @@ + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + global $_MODULE; $_MODULE = array(); $_MODULE['<{zzcleanurls}prestashop>zzcleanurls_66711d755755f94e8f48d9cb858290c8'] = 'ZiZuu Clean URLs'; diff --git a/faktiva_clean_urls/upgrade/index.php b/faktiva_clean_urls/upgrade/index.php new file mode 100644 index 0000000..fe444e7 --- /dev/null +++ b/faktiva_clean_urls/upgrade/index.php @@ -0,0 +1,29 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); +return; diff --git a/faktiva_clean_urls/upgrade/install-1.1.0.php b/faktiva_clean_urls/upgrade/install-1.1.0.php new file mode 100644 index 0000000..2705be7 --- /dev/null +++ b/faktiva_clean_urls/upgrade/install-1.1.0.php @@ -0,0 +1,41 @@ + + * @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0 + * @source https://github.com/faktiva/prestashop-clean-urls + */ + +if (!defined('_PS_VERSION_')) { + return; +} + +function upgrade_module_1_1_0($module) +{ + $old_module = 'zzcleanurls'; + + if (Module::isInstalled($old_module)) { + Module::disableByName($this->name); + + die(Tools::displayError('You must first un-install module "ZiZuu Clean URLs"')); + } + + Db::getInstance()->delete('module', "`name` = '$old_module'", 1); + Db::getInstance()->delete('module_preference', "`module` = '$old_module'"); + Db::getInstance()->delete('configuration', "`name` LIKE '$old_module%'"); + Db::getInstance()->delete('quick_access', "`link` LIKE '%module_name=$old_module%'"); + + return true; +} diff --git a/index.php b/index.php deleted file mode 100644 index ddc0813..0000000 --- a/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @source https://github.com/ZiZuu-store/zzCleanURLs - */ - -header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); -return; diff --git a/override/classes/controller/index.php b/override/classes/controller/index.php deleted file mode 100644 index ddc0813..0000000 --- a/override/classes/controller/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @source https://github.com/ZiZuu-store/zzCleanURLs - */ - -header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); -return; diff --git a/override/classes/index.php b/override/classes/index.php deleted file mode 100644 index ddc0813..0000000 --- a/override/classes/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @source https://github.com/ZiZuu-store/zzCleanURLs - */ - -header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); -return; diff --git a/override/controllers/front/index.php b/override/controllers/front/index.php deleted file mode 100644 index ddc0813..0000000 --- a/override/controllers/front/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @source https://github.com/ZiZuu-store/zzCleanURLs - */ - -header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); -return; diff --git a/override/controllers/index.php b/override/controllers/index.php deleted file mode 100644 index ddc0813..0000000 --- a/override/controllers/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @source https://github.com/ZiZuu-store/zzCleanURLs - */ - -header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); -return; diff --git a/override/index.php b/override/index.php deleted file mode 100644 index ddc0813..0000000 --- a/override/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @source https://github.com/ZiZuu-store/zzCleanURLs - */ - -header('Expires: Fri, 31 Dec 1999 23:59:59 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: ../'); -return;