diff --git a/core/module/config/config.php b/core/module/config/config.php index 7163eda2..73233d67 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -241,7 +241,7 @@ class config extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Creation du ZIP @@ -334,7 +334,7 @@ class config extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { @@ -434,7 +434,7 @@ class config extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { @@ -610,7 +610,7 @@ class config extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Ecrire les fichiers de script diff --git a/core/module/install/install.php b/core/module/install/install.php index cec43987..26ae0119 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -53,7 +53,7 @@ class install extends common // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { diff --git a/core/module/page/page.php b/core/module/page/page.php index b59af39c..72cc05ca 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -545,7 +545,7 @@ class page extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $css = $this->getInput('pageCssEditorContent', helper::FILTER_STRING_LONG) === null ? '' : $this->getInput('pageCssEditorContent', helper::FILTER_STRING_LONG); @@ -579,7 +579,7 @@ class page extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $js = $this->getInput('pageJsEditorContent', helper::FILTER_STRING_LONG) === null ? '' : $this->getInput('pageJsEditorContent', helper::FILTER_STRING_LONG); diff --git a/core/module/plugin/plugin.php b/core/module/plugin/plugin.php index ff4f83e5..88d83a7a 100644 --- a/core/module/plugin/plugin.php +++ b/core/module/plugin/plugin.php @@ -267,7 +267,7 @@ class plugin extends common // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Installation d'un module @@ -763,7 +763,7 @@ class plugin extends common { // Soumission du formulaire d'importation du module dans une page libre if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Récupérer le fichier et le décompacter diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 5625fe43..c5f122cd 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -250,7 +250,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $this->setData([ @@ -299,7 +299,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Enregistre le CSS @@ -328,7 +328,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $this->setData([ @@ -369,7 +369,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { if ( @@ -462,7 +462,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Modification des URL des images dans la bannière perso @@ -566,7 +566,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $this->setData([ @@ -694,7 +694,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Type d'import en ligne ou local @@ -764,7 +764,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Type d'import en ligne ou local @@ -905,7 +905,7 @@ class theme extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $this->setData([ @@ -982,7 +982,7 @@ class theme extends common public function manage() { if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php index 15f1e6b4..5c3aade3 100644 --- a/core/module/translate/translate.php +++ b/core/module/translate/translate.php @@ -116,7 +116,7 @@ class translate extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Initialisation @@ -315,7 +315,7 @@ class translate extends common // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { @@ -372,7 +372,7 @@ class translate extends common // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { @@ -478,7 +478,7 @@ class translate extends common } // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { diff --git a/core/module/user/user.php b/core/module/user/user.php index aba8a471..ae3e5e6d 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -76,7 +76,7 @@ class user extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $check = true; @@ -391,7 +391,7 @@ class user extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $userId = $this->getInput('userForgotId', helper::FILTER_ID, true); @@ -541,7 +541,7 @@ class user extends common // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $this->setData([ @@ -671,7 +671,7 @@ class user extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Nombre de profils de ce groupe @@ -1058,7 +1058,7 @@ class user extends common $notification = ''; $success = true; if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Lecture du CSV et construction du tableau diff --git a/module/blog/blog.php b/module/blog/blog.php index 27ed5b84..1c5a898a 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -251,7 +251,7 @@ class blog extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Modification de l'userId @@ -560,7 +560,7 @@ class blog extends common // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $this->setData([ diff --git a/module/form/form.php b/module/form/form.php index 2c9a4fa0..a3696501 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -118,7 +118,7 @@ class form extends common } // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Génération des données vides @@ -167,7 +167,7 @@ class form extends common } // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Débordement @@ -393,7 +393,7 @@ class form extends common // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Check la captcha diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index f8b02217..08b51973 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -418,7 +418,7 @@ class gallery extends common { // Soumission du formulaire d'ajout d'une galerie if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $galleryId = $this->getInput('galleryAddName', null, true); @@ -542,7 +542,7 @@ class gallery extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { @@ -847,7 +847,7 @@ class gallery extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Dossier de l'instance diff --git a/module/news/news.php b/module/news/news.php index 65868aac..486fc7f6 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -164,7 +164,7 @@ class news extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { // Crée la news @@ -266,7 +266,7 @@ class news extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { diff --git a/module/redirection/redirection.php b/module/redirection/redirection.php index 0d5f082b..c974fdc3 100644 --- a/module/redirection/redirection.php +++ b/module/redirection/redirection.php @@ -33,7 +33,7 @@ class redirection extends common { // Soumission du formulaire if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { $this->setData(['module', $this->getUrl(0), 'url', $this->getInput('redirectionConfigUrl', helper::FILTER_URL, true)]); diff --git a/module/search/search.php b/module/search/search.php index d4215fd2..17fb043b 100644 --- a/module/search/search.php +++ b/module/search/search.php @@ -121,7 +121,7 @@ class search extends common $this->update(); if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { @@ -177,7 +177,7 @@ class search extends common $this->update(); if ( - $this->getUser('permission', __CLASS__, __FUNCTION__) !== true && + $this->getUser('permission', __CLASS__, __FUNCTION__) === true && $this->isPost() ) { //Initialisations variables