From 0e6896bb6e99d68ce590d558355763bd420cea3e Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 10 Feb 2019 18:11:13 +0100 Subject: [PATCH] Supprimer module code --- core/vendor/filemanager/config/config.php | 2 +- module/code/code.php | 76 ----------------------- module/code/view/config/config.php | 37 ----------- module/code/view/index/index.js.php | 15 ----- module/code/view/index/index.php | 2 - 5 files changed, 1 insertion(+), 131 deletions(-) delete mode 100644 module/code/code.php delete mode 100644 module/code/view/config/config.php delete mode 100644 module/code/view/index/index.js.php delete mode 100644 module/code/view/index/index.php diff --git a/core/vendor/filemanager/config/config.php b/core/vendor/filemanager/config/config.php index eac8e891..6689e4de 100755 --- a/core/vendor/filemanager/config/config.php +++ b/core/vendor/filemanager/config/config.php @@ -369,7 +369,7 @@ $config = array( //Allowed extensions (lowercase insert) //********************** 'ext_img' => array( 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff','svg', 'ico' ), //Images - 'ext_file' => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'php', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'tiff',''), //Files + 'ext_file' => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'tiff',''), //Files 'ext_video' => array( 'mov', 'mpeg', 'm4v', 'mp4', 'avi', 'mpg', 'wma', "flv", "webm" ), //Video 'ext_music' => array( 'mp3', 'mpga', 'm4a', 'ac3', 'aiff', 'mid', 'ogg', 'wav' ), //Audio 'ext_misc' => array( 'zip', 'rar', 'gz', 'tar', 'iso', 'dmg' ), //Archives diff --git a/module/code/code.php b/module/code/code.php deleted file mode 100644 index e06ee2f8..00000000 --- a/module/code/code.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @copyright Copyright (C) 2008-2018, Rémi Jean - * @license GNU General Public License, version 3 - * @link http://zwiicms.com/ - */ - -class code extends common { - - public static $actions = [ - 'config' => self::GROUP_ADMIN, - 'index' => self::GROUP_VISITOR - ]; - - /** - * Configuration - */ - public function config() { - // Soumission du formulaire - if($this->isPost()) { - $this->setData(['module', $this->getUrl(0), 'file', $this->getInput('codeConfigFile', helper::FILTER_URL, true)]); - // Valeurs en sortie - $this->addOutput([ - 'redirect' => helper::baseUrl() . $this->getUrl(), - 'notification' => 'Modifications enregistrées', - 'state' => true - ]); - } - // Valeurs en sortie - $this->addOutput([ - 'title' => 'Configuration du module', - 'view' => 'config' - ]); - } - - /** - * Accueil - */ - public function index() { - // Message si l'utilisateur peut éditer la page - if( - $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') - AND $this->getUser('group') >= self::GROUP_ADMIN - AND $this->getUrl(1) !== 'force' - ) { - // Valeurs en sortie - $this->addOutput([ - 'display' => self::DISPLAY_LAYOUT_BLANK, - 'title' => '', - 'view' => 'index' - ]); - } - // Sinon code - else { - // Incrémente le compteur de clics - $this->setData(['module', $this->getUrl(0), 'count', helper::filter($this->getData(['module', $this->getUrl(0), 'count']) + 1, helper::FILTER_INT)]); - // Valeurs en sortie - $this->addOutput([ - 'content' => '' , - 'state' => true - ]); - } - } - -} \ No newline at end of file diff --git a/module/code/view/config/config.php b/module/code/view/config/config.php deleted file mode 100644 index 6b4bd98b..00000000 --- a/module/code/view/config/config.php +++ /dev/null @@ -1,37 +0,0 @@ - -
-
- 'buttonGrey', - 'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0), - 'ico' => 'left', - 'value' => 'Retour' - ]); ?> -
-
- -
-
-
-
-
-

Fichier de code :

- 'Fichier de code :', - 'placeholder' => helper::baseUrl() . 'site/file/source/', - 'value' => $this->getData(['module', $this->getUrl(0), 'file']) - ]); ?> -
-
-
-
-

Statistiques

- true, - 'label' => 'Nombre de redirections', - 'value' => helper::filter($this->getData(['module', $this->getUrl(0), 'count']), helper::FILTER_INT) - ]); ?> -
-
-
- \ No newline at end of file diff --git a/module/code/view/index/index.js.php b/module/code/view/index/index.js.php deleted file mode 100644 index cf4bcfeb..00000000 --- a/module/code/view/index/index.js.php +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file is part of Zwii. - * - * For full copyright and license information, please see the LICENSE - * file that was distributed with this source code. - * - * @author Rémi Jean - * @copyright Copyright (C) 2008-2018, Rémi Jean - * @license GNU General Public License, version 3 - * @link http://zwiicms.com/ - * - * - **/ - -self.location='page/edit/getUrl(0); ?>'; \ No newline at end of file diff --git a/module/code/view/index/index.php b/module/code/view/index/index.php deleted file mode 100644 index 09938202..00000000 --- a/module/code/view/index/index.php +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file