Message Action interdite

This commit is contained in:
Fred Tempez 2023-06-20 20:35:26 +02:00
parent 8c8fd91c7e
commit 5c87a74d7b
9 changed files with 30 additions and 30 deletions

View File

@ -79,7 +79,7 @@ class page extends common
$this->addOutput([
'access' => false
]);
} // Jeton incorrect
} // Action interdite
elseif ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -187,7 +187,7 @@ class page extends common
$this->addOutput([
'access' => false
]);
} // Jeton incorrect
} // Action interdite
elseif ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([

View File

@ -62,7 +62,7 @@ class plugin extends common
public function delete()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -291,7 +291,7 @@ class plugin extends common
*/
public function uploadItem()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -571,7 +571,7 @@ class plugin extends common
*/
public function save()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -645,7 +645,7 @@ class plugin extends common
*/
public function dataDelete()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -676,7 +676,7 @@ class plugin extends common
*/
public function dataExport()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -817,7 +817,7 @@ class plugin extends common
}
// Bouton d'importation des données d'un module spécifique
if (count(explode('/', $this->getUrl())) === 6) {
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([

View File

@ -774,7 +774,7 @@ class theme extends common
*/
public function fontDelete()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([

View File

@ -67,7 +67,7 @@ class translate extends common
public function update()
{
$lang = $this->getUrl(2);
// Jeton incorrect ou URl avec le code langue incorrecte
// Action interdite ou URl avec le code langue incorrecte
if (
array_key_exists($lang, self::$languages) === false
) {
@ -342,7 +342,7 @@ class translate extends common
*/
public function locale()
{
// Jeton incorrect ou URl avec le code langue incorrecte
// Action interdite ou URl avec le code langue incorrecte
$lang = $this->getUrl(2);
if (
array_key_exists($lang, self::$languages) === false
@ -447,7 +447,7 @@ class translate extends common
public function edit()
{
$lang = $this->getUrl(2);
// Jeton incorrect ou URl avec le code langue incorrecte
// Action interdite ou URl avec le code langue incorrecte
if (
array_key_exists($lang, self::$languages) === false
) {
@ -536,7 +536,7 @@ class translate extends common
*/
public function delete()
{
// Jeton incorrect ou URl avec le code langue incorrecte
// Action interdite ou URl avec le code langue incorrecte
$target = $this->getUrl(2);
$lang = $this->getUrl(3);
if (
@ -591,7 +591,7 @@ class translate extends common
*/
public function default()
{
// Jeton incorrect ou URl avec le code langue incorrecte
// Action interdite ou URl avec le code langue incorrecte
$lang = $this->getUrl(2);
if (
array_key_exists($lang, self::$languages) === false

View File

@ -193,7 +193,7 @@ class user extends common
'access' => false
]);
}
// Jeton incorrect
// Action interdite
elseif (
$this->checkCSRF()
) {

View File

@ -378,7 +378,7 @@ class blog extends common
'access' => false
]);
}
// Jeton incorrect
// Action interdite
elseif ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -403,7 +403,7 @@ class blog extends common
*/
public function commentDeleteAll()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -435,7 +435,7 @@ class blog extends common
'access' => false
]);
}
// Jeton incorrect
// Action interdite
elseif ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -600,7 +600,7 @@ class blog extends common
'access' => false
]);
}
// Jeton incorrect
// Action interdite
elseif ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -625,7 +625,7 @@ class blog extends common
*/
public function edit()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([

View File

@ -266,7 +266,7 @@ class form extends common
*/
public function export2csv()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -307,7 +307,7 @@ class form extends common
*/
public function deleteall()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -343,7 +343,7 @@ class form extends common
*/
public function delete()
{
// Jeton incorrect
// Action interdite
if (
$this->getUser('permission', 'form', 'delete') === false ||
$this->checkCSRF()) {

View File

@ -507,7 +507,7 @@ class gallery extends common
'access' => false
]);
}
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -544,7 +544,7 @@ class gallery extends common
*/
public function edit()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -854,7 +854,7 @@ class gallery extends common
*/
public function theme()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -935,7 +935,7 @@ class gallery extends common
* Options applicables à toutes les galeries du module
*/
if ($this->getUrl(2) === 'galleries') {
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -976,7 +976,7 @@ class gallery extends common
* Enregistre les options de configuration de la galerie d'images sélectionnée
*/
} elseif ($this->getUrl(2) === 'gallery') {
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([

View File

@ -372,7 +372,7 @@ class news extends common
'access' => false
]);
}
// Jeton incorrect
// Action interdite
elseif ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
@ -397,7 +397,7 @@ class news extends common
*/
public function edit()
{
// Jeton incorrect
// Action interdite
if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([