From ee38c83414f24eb869280b2c808e4c6edbd199d1 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 2 Nov 2023 20:43:41 +0100 Subject: [PATCH] v61 fix plugin Module folder --- README.md | 2 +- config.php | 283 ---------------------------------- core/core.php | 2 +- core/module/plugin/plugin.php | 3 + 4 files changed, 5 insertions(+), 285 deletions(-) delete mode 100644 config.php diff --git a/README.md b/README.md index 24e9a26..2151906 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ZwiiLMS 1.0.01 +# ZwiiLMS 1.0.61 ZwiiLMS (Learning Management System) est logiciel auteur destiné à mettre en ligne des tutoriels. Il dispose de plusieurs modalités d'ouverture et d'accès des cours. Basé sur la version 13 du CMS Zwii, la structure logicielle est solide, le framework de Zwii est éprouvé. diff --git a/config.php b/config.php deleted file mode 100644 index 2272a59..0000000 --- a/config.php +++ /dev/null @@ -1,283 +0,0 @@ - 'utility/showtouchicon', - 1 => 'Internal', -); -$Configuration['Routes']['cm9ib3RzLnR4dA=='] = array ( - 0 => '/robots', - 1 => 'Internal', -); -$Configuration['Routes']['dXRpbGl0eS9yb2JvdHM='] = array ( - 0 => '/robots', - 1 => 'Internal', -); -$Configuration['Routes']['Y29udGFpbmVyLmh0bWw='] = array ( - 0 => 'staticcontent/container', - 1 => 'Internal', -); -$Configuration['Routes']['DefaultController'] = array ( - 0 => 'categories', - 1 => 'Internal', -); -$Configuration['Routes']['c2l0ZW1hcGluZGV4LnhtbA=='] = array ( - 0 => '/utility/sitemapindex.xml', - 1 => 'Internal', -); -$Configuration['Routes']['c2l0ZW1hcC0oLisp'] = array ( - 0 => '/utility/sitemap/$1', - 1 => 'Internal', -); - -// Signatures -$Configuration['Signatures']['Images']['MaxNumber'] = '2'; -$Configuration['Signatures']['Images']['MaxHeight'] = ''; -$Configuration['Signatures']['Text']['MaxLength'] = ''; -$Configuration['Signatures']['Hide']['Guest'] = ''; -$Configuration['Signatures']['Hide']['Embed'] = '1'; -$Configuration['Signatures']['Hide']['Mobile'] = '1'; -$Configuration['Signatures']['Allow']['Embeds'] = '1'; - -// Tagging -$Configuration['Tagging']['Discussions']['Enabled'] = true; - -// Vanilla -$Configuration['Vanilla']['Version'] = '3.0'; -$Configuration['Vanilla']['AdminCheckboxes']['Use'] = '1'; -$Configuration['Vanilla']['Categories']['MaxDisplayDepth'] = '3'; -$Configuration['Vanilla']['Categories']['Layout'] = 'modern'; -$Configuration['Vanilla']['Discussions']['PerPage'] = '30'; -$Configuration['Vanilla']['Discussions']['Layout'] = 'modern'; -$Configuration['Vanilla']['Comments']['PerPage'] = '30'; -$Configuration['Vanilla']['Comment']['MaxLength'] = '8000'; -$Configuration['Vanilla']['Comment']['MinLength'] = ''; -$Configuration['Vanilla']['Password']['SpamCount'] = 2; -$Configuration['Vanilla']['Password']['SpamTime'] = 1; -$Configuration['Vanilla']['Password']['SpamLock'] = 120; -$Configuration['Vanilla']['EnableCategoryFollowing'] = '1'; -$Configuration['Vanilla']['Email']['FullPost'] = false; - -// WhosOnline -$Configuration['WhosOnline']['Location']['Show'] = 'every'; -$Configuration['WhosOnline']['Hide'] = '1'; -$Configuration['WhosOnline']['DisplayStyle'] = 'list'; - -// hCaptcha -$Configuration['hCaptcha']['SecretKey'] = '0xa9cf7861b6358A7937a8F7883417FE8311D82BC3'; -$Configuration['hCaptcha']['SiteKey'] = '2522c956-d445-4e04-8bcb-ed02cb771894'; -$Configuration['hCaptcha']['Theme'] = 'light'; -$Configuration['hCaptcha']['Size'] = 'normal'; - -// mailchecker -$Configuration['mailchecker']['LastUpdate'] = '1616081674'; - -// rating -$Configuration['rating']['Comments']['OrderBy'] = 'Score desc'; \ No newline at end of file diff --git a/core/core.php b/core/core.php index 6a911fd..685b741 100644 --- a/core/core.php +++ b/core/core.php @@ -50,7 +50,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '1.0.60'; + const ZWII_VERSION = '1.0.61'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; diff --git a/core/module/plugin/plugin.php b/core/module/plugin/plugin.php index 03bb5cb..a01bf17 100644 --- a/core/module/plugin/plugin.php +++ b/core/module/plugin/plugin.php @@ -599,6 +599,9 @@ class plugin extends common switch ($action) { case 'filemanager': + if (is_dir(self::FILE_DIR . 'source/modules') === false) { + mkdir(self::FILE_DIR . 'source/modules'); + } $success = copy($tmpFolder . $fileName, self::FILE_DIR . 'source/modules/' . $fileName); // Valeurs en sortie