Libellés et corrections d'erreurs dont accès implicite à la configuration sauf news et redirection

This commit is contained in:
Fred Tempez 2023-06-18 16:57:11 +02:00
parent 0b06e12ef9
commit 95b7d1f74e
3 changed files with 99 additions and 104 deletions

View File

@ -584,27 +584,41 @@ class user extends common
'add' => $this->getInput('profilEditBlogAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilEditBlogEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditBlogDelete', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditBlogConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilEditBlogOption', helper::FILTER_BOOLEAN),
'comment' => $this->getInput('profilEditBlogComment', helper::FILTER_BOOLEAN),
'commentApprove' => $this->getInput('profilEditBlogCommentApprove', helper::FILTER_BOOLEAN),
'commentDelete' => $this->getInput('profilEditBlogCommentDelete', helper::FILTER_BOOLEAN),
'commentDeleteAll' => $this->getInput('profilEditBlogCommentDeleteAll', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditBlogAdd', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditBlogEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditBlogDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditBlogOption', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditBlogComment', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditBlogCommentApprove', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditBlogCommentDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditBlogCommentDeleteAll', helper::FILTER_BOOLEAN)
],
'news' => [
'add' => $this->getInput('profilEditNewsAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilEditNewsEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditNewsDelete', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditNewsConfig', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditNewsEdit', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilEditNewsOption', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditNewsAdd', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditNewsEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditNewsEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditNewsOption', helper::FILTER_BOOLEAN)
],
'gallery' => [
'add' => $this->getInput('profilEditGalleryAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilEditGalleryEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditGalleryDelete', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditGalleryConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilEditGalleryOption', helper::FILTER_BOOLEAN),
'theme' => $this->getInput('profilEditGalleryConfig', helper::FILTER_BOOLEAN),
'theme' => $this->getInput('profilEditGalleryTheme', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilEditGalleryAdd', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditGalleryEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditGalleryDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditGalleryOption', helper::FILTER_BOOLEAN) ||
$this->getInput('profilEditGalleryTheme', helper::FILTER_BOOLEAN)
],
'form' => [
'config' => $this->getInput('profilEditFormConfig', helper::FILTER_BOOLEAN),
@ -698,35 +712,53 @@ class user extends common
'add' => $this->getInput('profilAddBlogAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilAddBlogEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilAddBlogDelete', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilAddBlogConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilAddBlogOption', helper::FILTER_BOOLEAN),
'comment' => $this->getInput('profilAddBlogComment', helper::FILTER_BOOLEAN),
'commentApprove' => $this->getInput('profilAddBlogCommentApprove', helper::FILTER_BOOLEAN),
'commentDelete' => $this->getInput('profilAddBlogCommentDelete', helper::FILTER_BOOLEAN),
'commentDeleteAll' => $this->getInput('profilAddBlogCommentDeleteAll', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilAddBlogAdd', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddBlogEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddBlogDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddBlogOption', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddBlogComment', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddBlogCommentApprove', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddBlogCommentDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddBlogCommentDeleteAll', helper::FILTER_BOOLEAN)
],
'news' => [
'add' => $this->getInput('profilAddNewsAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilAddNewsEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilAddNewsDelete', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilAddNewsConfig', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilAddNewsEdit', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilAddNewsOption', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilAddNewsAdd', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddNewsEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddNewsEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddNewsOption', helper::FILTER_BOOLEAN)
],
'gallery' => [
'add' => $this->getInput('profilAddGalleryAdd', helper::FILTER_BOOLEAN),
'edit' => $this->getInput('profilAddGalleryEdit', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilAddGalleryDelete', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilAddGalleryConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilAddGalleryOption', helper::FILTER_BOOLEAN),
'theme' => $this->getInput('profilAddGalleryConfig', helper::FILTER_BOOLEAN),
'theme' => $this->getInput('profilAddGalleryTheme', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilAddGalleryAdd', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddGalleryEdit', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddGalleryDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddGalleryOption', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddGalleryTheme', helper::FILTER_BOOLEAN)
],
'form' => [
'config' => $this->getInput('profilAddFormConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilAddFormOption', helper::FILTER_BOOLEAN),
'data' => $this->getInput('profilAddFormData', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilAddFormDelete', helper::FILTER_BOOLEAN),
'deleteAll' => $this->getInput('profilAddFormDeleteAll', helper::FILTER_BOOLEAN),
'export2csv' => $this->getInput('profilAddFormExport2csv', helper::FILTER_BOOLEAN),
'config' => $this->getInput('profilAddFormOption', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddFormData', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddFormDelete', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddFormDeleteAll', helper::FILTER_BOOLEAN) ||
$this->getInput('profilAddFormExport2csv', helper::FILTER_BOOLEAN)
],
'search' => [
'config' => $this->getInput('profilAddSearchConfig', helper::FILTER_BOOLEAN),

View File

@ -55,7 +55,7 @@
<?php echo template::checkbox('profilAddPageAdd', true, 'Ajouter'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageEdit', true, 'Editer'); ?>
<?php echo template::checkbox('profilAddPageEdit', true, 'Éditer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPageDelete', true, 'Effacer'); ?>
@ -69,10 +69,10 @@
<?php echo template::checkbox('profilAddPageModule', true, 'Module'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPagecssEditor', true, 'Editeur CSS'); ?>
<?php echo template::checkbox('profilAddPagecssEditor', true, 'Éditeur CSS'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddPagejsEditor', true, 'Editeur JS'); ?>
<?php echo template::checkbox('profilAddPagejsEditor', true, 'Éditeur JS'); ?>
</div>
</div>
</div>
@ -95,9 +95,6 @@
<div class="col3">
<?php echo template::checkbox('profilAddBlogDelete', true, 'Supprimer'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddBlogConfig', true, 'Configuration'); ?>
</div>
</div>
<div class="row">
@ -108,15 +105,15 @@
<?php echo template::checkbox('profilAddBlogComment', true, 'Commentaire'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddBlogCommentApprove', true, 'Approuver commentaire'); ?>
<?php echo template::checkbox('profilAddBlogCommentApprove', true, 'Approuver les commentaires'); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilAddBlogCommentDelete', true, 'Supprimer commentaire'); ?>
<div class="col6"s>
<?php echo template::checkbox('profilAddBlogCommentDelete', true, 'Supprimer les commentaires'); ?>
</div>
<div class="col6">
<?php echo template::checkbox('profilAddBlogCommentDeleteAll', true, 'Nettoyer commentaires'); ?>
<?php echo template::checkbox('profilAddBlogCommentDeleteAll', true, 'Nettoyer les commentaires'); ?>
</div>
</div>
</div>
@ -129,21 +126,16 @@
<?php echo helper::translate('News'); ?>
</h4>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddNewsAdd', true, 'Ajouter'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddNewsEdit', true, 'Edit'); ?>
<div class="col3">
<?php echo template::checkbox('profilAddNewsEdit', true, 'Éditer'); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddNewsDelete', true, 'Supprimer'); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilAddNewsConfig', true, 'Configuration'); ?>
</div>
<div class="col6">
<div class="col3">
<?php echo template::checkbox('profilAddNewsOption', true, 'Option'); ?>
</div>
@ -162,21 +154,18 @@
<?php echo template::checkbox('profilAddGalleryAdd', true, 'Ajouter'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddGalleryEdit', true, 'Edit'); ?>
<?php echo template::checkbox('profilAddGalleryEdit', true, 'Éditer'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddGalleryDelete', true, 'Supprimer'); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddGalleryConfig', true, 'Configuration'); ?>
</div>
<div class="col4">
<div class="col6">
<?php echo template::checkbox('profilAddGalleryOption', true, 'Option'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddGalleryTheme', true, 'Theme'); ?>
<div class="col6">
<?php echo template::checkbox('profilAddGalleryTheme', true, 'Thème'); ?>
</div>
</div>
</div>
@ -189,16 +178,15 @@
<?php echo helper::translate('Formulaire'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddFormConfig', true, 'Configuration'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormOption', true, 'Option'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormData', true, 'Données'); ?>
<?php echo template::checkbox('profilAddFormData', true, 'Gérer les données'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormExport2csv', true, 'Export CSV'); ?>
</div>
</div>
<div class="row">
<div class="col4">
@ -207,9 +195,7 @@
<div class="col4">
<?php echo template::checkbox('profilAddFormDeleteAll', true, 'Tout Supprimer'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormExport2csv', true, 'Export CSV'); ?>
</div>
</div>
</div>
</div>
@ -222,7 +208,7 @@
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditRedirectionConfig', true, 'Configuration'); ?>
<?php echo template::checkbox('profilEditRedirectionConfig', true, 'Configurer'); ?>
</div>
</div>
</div>
@ -236,7 +222,7 @@
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditSearchConfig', true, 'Configuration'); ?>
<?php echo template::checkbox('profilEditSearchConfig', true, 'Configurer'); ?>
</div>
</div>
</div>

View File

@ -65,7 +65,7 @@
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPageEdit', true, 'Editer', [
<?php echo template::checkbox('profilEditPageEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'edit'])
]); ?>
</div>
@ -82,17 +82,17 @@
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditPageModule', true, 'Module', [
<?php echo template::checkbox('profilEditPageModule', true, 'Gérer Module', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'module'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPagecssEditor', true, 'Editeur CSS', [
<?php echo template::checkbox('profilEditPagecssEditor', true, 'Éditeur CSS', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'cssEditor'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditPagejsEditor', true, 'Editeur JS', [
<?php echo template::checkbox('profilEditPagejsEditor', true, 'Éditeur JS', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'page', 'jsEditor'])
]); ?>
</div>
@ -114,7 +114,7 @@
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditBlogEdit', true, 'Edit', [
<?php echo template::checkbox('profilEditBlogEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'edit'])
]); ?>
</div>
@ -123,11 +123,6 @@
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'delete'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditBlogConfig', true, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'config'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
@ -136,24 +131,24 @@
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditBlogComment', true, 'Gérer commentaires', [
<?php echo template::checkbox('profilEditBlogComment', true, 'Gérer les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'comment'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditBlogCommentApprove', true, 'Approuver commentaire', [
<?php echo template::checkbox('profilEditBlogCommentApprove', true, 'Approuver les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentApprove'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilEditBlogCommentDelete', true, 'Supprimer commentaire', [
<?php echo template::checkbox('profilEditBlogCommentDelete', true, 'Supprimer les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentDelete'])
]); ?>
</div>
<div class="col6">
<?php echo template::checkbox('profilEditBlogCommentDeleteAll', true, 'Nettoyer commentaires', [
<?php echo template::checkbox('profilEditBlogCommentDeleteAll', true, 'Nettoyer les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentDeleteAll'])
]); ?>
</div>
@ -168,29 +163,22 @@
<?php echo helper::translate('News'); ?>
</h4>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditNewsAdd', true, 'Ajouter', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'add'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditNewsEdit', true, 'Edit', [
<div class="col3">
<?php echo template::checkbox('profilEditNewsEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'edit'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditNewsDelete', true, 'Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'delete'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilEditNewsConfig', true, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'config'])
]); ?>
</div>
<div class="col6">
<div class="col3">
<?php echo template::checkbox('profilEditNewsOption', true, 'Option', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'news', 'option'])
]); ?>
@ -213,7 +201,7 @@
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditGalleryEdit', true, 'Edit', [
<?php echo template::checkbox('profilEditGalleryEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'edit'])
]); ?>
</div>
@ -224,18 +212,13 @@
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditGalleryConfig', true, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'config'])
]); ?>
</div>
<div class="col4">
<div class="col6">
<?php echo template::checkbox('profilEditGalleryOption', true, 'Option', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'option'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditGalleryTheme', true, 'Theme', [
<div class="col6">
<?php echo template::checkbox('profilEditGalleryTheme', true, 'Thème', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'theme'])
]); ?>
</div>
@ -250,40 +233,34 @@
<?php echo helper::translate('Formulaire'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditFormConfig', true, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'config'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditFormOption', true, 'Option', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'option'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditFormData', true, 'Données', [
<?php echo template::checkbox('profilEditFormData', true, 'Gérer les données', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'data'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditFormDelete', true, 'Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'delete'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditFormDeleteAll', true, 'Tout Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'deleteAll'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditFormExport2csv', true, 'Export CSV', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'export2csv'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilEditFormDelete', true, 'Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'delete'])
]); ?>
</div>
<div class="col6">
<?php echo template::checkbox('profilEditFormDeleteAll', true, 'Tout Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'deleteAll'])
]); ?>
</div>
</div>
</div>
</div>
</div>
@ -295,7 +272,7 @@
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditRedirectionConfig', true, 'Configuration', [
<?php echo template::checkbox('profilEditRedirectionConfig', true, 'Configurer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'redirection', 'config'])
]); ?>
</div>
@ -311,7 +288,7 @@
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditSearchConfig', true, 'Configuration', [
<?php echo template::checkbox('profilEditSearchConfig', true, 'Configurer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'search', 'config'])
]); ?>
</div>