From 63062850189e2013d04306556a73ba8d2e0115f3 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 28 Oct 2023 23:18:07 +0200 Subject: [PATCH] v60 bug de categorie + nom de variable --- config.php | 283 ++++++++++++++++++++++++++ core/core.php | 2 +- core/module/course/course.php | 5 +- core/module/course/view/add/add.php | 2 +- core/module/course/view/edit/edit.php | 4 +- 5 files changed, 289 insertions(+), 7 deletions(-) create mode 100644 config.php diff --git a/config.php b/config.php new file mode 100644 index 0000000..2272a59 --- /dev/null +++ b/config.php @@ -0,0 +1,283 @@ + '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 a3512fa..4efc374 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.59'; + const ZWII_VERSION = '1.0.60'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/'; diff --git a/core/module/course/course.php b/core/module/course/course.php index 3422e60..ccd79dd 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -150,10 +150,9 @@ class course extends common $courseId, [ 'title' => $this->getInput('courseAddTitle', helper::FILTER_STRING_SHORT, true), - 'title' => $this->getInput('courseAddShortTitle', helper::FILTER_STRING_SHORT, true), 'author' => $this->getInput('courseAddAuthor'), 'homePageId' => 'accueil', - 'category' => $this->getInput('courseAddCategories'), + 'category' => $this->getInput('courseAddCategorie'), 'description' => $this->getInput('courseAddDescription', helper::FILTER_STRING_SHORT, true), 'access' => $this->getInput('courseAddAccess', helper::FILTER_INT), 'openingDate' => $this->getInput('courseAddOpeningDate', helper::FILTER_DATETIME), @@ -218,7 +217,7 @@ class course extends common 'title' => $this->getInput('courseEditShortTitle', helper::FILTER_STRING_SHORT, true), 'author' => $this->getInput('courseEditAuthor'), 'homePageId' => $this->getInput('courseEditHomePageId'), - 'category' => $this->getInput('courseEditCategories'), + 'category' => $this->getInput('courseEditCategorie'), 'description' => $this->getInput('courseEditDescription', helper::FILTER_STRING_SHORT, true), 'access' => $this->getInput('courseEditAccess', helper::FILTER_INT), 'openingDate' => $this->getInput('courseOpeningDate', helper::FILTER_DATETIME), diff --git a/core/module/course/view/add/add.php b/core/module/course/view/add/add.php index 80bc308..24b44dd 100644 --- a/core/module/course/view/add/add.php +++ b/core/module/course/view/add/add.php @@ -43,7 +43,7 @@ ]); ?>
- 'Catégorie', ]); ?>
diff --git a/core/module/course/view/edit/edit.php b/core/module/course/view/edit/edit.php index 73ad481..b487870 100644 --- a/core/module/course/view/edit/edit.php +++ b/core/module/course/view/edit/edit.php @@ -39,9 +39,9 @@ ]); ?>
- 'Catégorie', - 'value' => $this->getdata(['course', $this->getUrl(2), 'category']) + 'selected' => $this->getdata(['course', $this->getUrl(2), 'category']) ]); ?>