diff --git a/module/form/changes.md b/module/form/changes.md
index cabf62e4..53bf07bb 100644
--- a/module/form/changes.md
+++ b/module/form/changes.md
@@ -1,3 +1,5 @@
+# Version 3.10
+- Masque le code de vérification
# Version 3.9
- Redirection des pages orphelines
# Version 3.8
diff --git a/module/form/form.php b/module/form/form.php
index 22c62aa3..acdb3bb7 100644
--- a/module/form/form.php
+++ b/module/form/form.php
@@ -17,7 +17,7 @@
class form extends common
{
- const VERSION = '3.9';
+ const VERSION = '3.10';
const REALNAME = 'Formulaire';
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)
@@ -29,9 +29,6 @@ class form extends common
'deleteall' => self::GROUP_MODERATOR,
'index' => self::GROUP_VISITOR,
'export2csv' => self::GROUP_MODERATOR,
- 'output2csv' => self::GROUP_MODERATOR,
- 'init' => self::GROUP_MODERATOR,
- 'update' => self::GROUP_MODERATOR,
];
public static $data = [];
@@ -249,7 +246,7 @@ class form extends common
$content,
template::button('formDataDelete' . $dataIds[$i], [
'class' => 'formDataDelete buttonRed',
- 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $dataIds[$i] . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $dataIds[$i],
'value' => template::ico('trash')
])
];
@@ -270,7 +267,7 @@ class form extends common
public function export2csv()
{
// Jeton incorrect
- if ($this->getUrl(2) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/data',
@@ -311,7 +308,7 @@ class form extends common
public function deleteall()
{
// Jeton incorrect
- if ($this->getUrl(2) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/data',
@@ -347,7 +344,7 @@ class form extends common
public function delete()
{
// Jeton incorrect
- if ($this->getUrl(3) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/data',
diff --git a/module/form/view/data/data.php b/module/form/view/data/data.php
index a9118a25..e8f600dd 100644
--- a/module/form/view/data/data.php
+++ b/module/form/view/data/data.php
@@ -9,14 +9,14 @@
'formDataDeleteAll buttonRed',
- 'href' => helper::baseUrl() . $this->getUrl(0) . '/deleteall' . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/deleteall',
'value' => template::ico('trash'),
'help' => 'Effacer toutes les données'
]); ?>
helper::baseUrl() . $this->getUrl(0) . '/export2csv' . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/export2csv',
'value' => template::ico('download'),
'help' => 'Exporter toutes les données'
]); ?>
diff --git a/module/gallery/changes.md b/module/gallery/changes.md
index a2860585..9f6e4d86 100644
--- a/module/gallery/changes.md
+++ b/module/gallery/changes.md
@@ -1,3 +1,5 @@
+# Version 3.9
+- Masque le code de vérification
# Version 3.8
- Version compare null, dataversion not initialize
- Bug de positionnement des boutons de retour
diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php
index 66c5cd57..21ce91dc 100644
--- a/module/gallery/gallery.php
+++ b/module/gallery/gallery.php
@@ -18,7 +18,7 @@ class gallery extends common
{
- const VERSION = '3.8';
+ const VERSION = '3.9';
const REALNAME = 'Galerie';
const DATADIRECTORY = self::DATA_DIR . 'gallery/';
@@ -385,13 +385,13 @@ class gallery extends common
$gallery['config']['name'],
$gallery['config']['directory'],
template::button('galleryConfigEdit' . $galleryId, [
- 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $galleryId . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $galleryId,
'value' => template::ico('pencil'),
'help' => 'Configuration de la galerie '
]),
template::button('galleryConfigDelete' . $galleryId, [
'class' => 'galleryConfigDelete buttonRed',
- 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $galleryId . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $galleryId,
'value' => template::ico('trash'),
'help' => 'Supprimer cette galerie'
])
@@ -507,7 +507,7 @@ class gallery extends common
]);
}
// Jeton incorrect
- if ($this->getUrl(3) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config',
@@ -544,7 +544,7 @@ class gallery extends common
public function edit()
{
// Jeton incorrect
- if ($this->getUrl(3) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config',
@@ -589,7 +589,7 @@ class gallery extends common
]);
// Valeurs en sortie
$this->addOutput([
- 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(2) . '/' . $_SESSION['csrf'],
+ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(2),
'notification' => helper::translate('Modifications enregistrées'),
'state' => true
]);
@@ -854,7 +854,7 @@ class gallery extends common
public function theme()
{
// Jeton incorrect
- if ($this->getUrl(2) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config',
@@ -935,7 +935,7 @@ class gallery extends common
*/
if ($this->getUrl(2) === 'galleries') {
// Jeton incorrect
- if ($this->getUrl(3) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config',
@@ -976,7 +976,7 @@ class gallery extends common
*/
} elseif ($this->getUrl(2) === 'gallery') {
// Jeton incorrect
- if ($this->getUrl(4) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/edit',
@@ -1027,7 +1027,7 @@ class gallery extends common
}
// Valeurs en sortie
$this->addOutput([
- 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $galleryId . '/' . $_SESSION['csrf'],
+ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $galleryId,
'notification' => helper::translate('Modifications enregistrées'),
'state' => true
]);
diff --git a/module/news/changes.md b/module/news/changes.md
index 0d38a1e7..b598ae6c 100644
--- a/module/news/changes.md
+++ b/module/news/changes.md
@@ -1,3 +1,5 @@
+# Version 4.5
+- Masque le code de vérification
# Version 4.4
- Intl date Formats
- Bug un conflit avec le style de la page
@@ -15,5 +17,3 @@
- Ecran layout réservé à la configuration et au thème
- Bug avec l'initialisation, fichier css déclaré mais absent
- Appel de la feuille style si présente
-
-A faire partie CSS à amléiorer au niveau des options
diff --git a/module/news/news.php b/module/news/news.php
index 45c30ed4..e6a0d2e5 100644
--- a/module/news/news.php
+++ b/module/news/news.php
@@ -16,7 +16,7 @@
class news extends common
{
- const VERSION = '4.3';
+ const VERSION = '4.4';
const REALNAME = 'News';
const DATADIRECTORY = self::DATA_DIR . 'news/';
@@ -239,12 +239,12 @@ class news extends common
$dateOff,
helper::translate(self::$states[$this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'state'])]),
template::button('newsConfigEdit' . $newsIds[$i], [
- 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i] . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i],
'value' => template::ico('pencil')
]),
template::button('newsConfigDelete' . $newsIds[$i], [
'class' => 'newsConfigDelete buttonRed',
- 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $newsIds[$i] . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $newsIds[$i],
'value' => template::ico('trash')
])
];
@@ -338,12 +338,12 @@ class news extends common
$dateOff,
helper::translate(helper::translate(self::$states[$this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'state'])])),
template::button('newsConfigEdit' . $newsIds[$i], [
- 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i] . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i],
'value' => template::ico('pencil')
]),
template::button('newsConfigDelete' . $newsIds[$i], [
'class' => 'newsConfigDelete buttonRed',
- 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $newsIds[$i] . '/' . $_SESSION['csrf'],
+ 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $newsIds[$i],
'value' => template::ico('cancel')
])
];
@@ -372,7 +372,7 @@ class news extends common
]);
}
// Jeton incorrect
- elseif ($this->getUrl(3) !== $_SESSION['csrf']) {
+ elseif ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config',
@@ -397,7 +397,7 @@ class news extends common
public function edit()
{
// Jeton incorrect
- if ($this->getUrl(3) !== $_SESSION['csrf']) {
+ if ($this->checkCSRF()) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config',
diff --git a/module/news/view/article/article.php b/module/news/view/article/article.php
index e541a897..67c4ee21 100644
--- a/module/news/view/article/article.php
+++ b/module/news/view/article/article.php
@@ -18,7 +18,7 @@
( $this->getUser('group') === self::GROUP_ADMIN )
)
): ?>
-
+
Éditer
diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php
index 14da4d51..ee5cf9e0 100644
--- a/module/news/view/index/index.php
+++ b/module/news/view/index/index.php
@@ -34,7 +34,7 @@
)
): ?>
+ href="getUrl(0) . '/edit/' . $newsId; ?>">
Éditer