suscribe 2.3

This commit is contained in:
Fred Tempez 2024-09-26 19:42:24 +02:00
parent 02aeb6ec22
commit a8f70dc73a
4 changed files with 10 additions and 6 deletions

View File

@ -51,7 +51,7 @@ class common
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '1.12.00.13';
const ZWII_VERSION = '1.12.00.14';
// URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';

View File

@ -1,3 +1,5 @@
# Version 2.3
- Warning lors de la saisie d'un email vide
# Version 2.2
- Ajoute la gestion des profils
# Version 2.1

View File

@ -1 +1 @@
{"name":"suscribe","realName":"Auto Inscription","version":"2.2","update":"0.0","delete":true,"dataDirectory":""}
{"name":"suscribe","realName":"Auto Inscription","version":"2.3","update":"0.0","delete":true,"dataDirectory":""}

View File

@ -15,7 +15,7 @@
class suscribe extends common
{
const VERSION = '2.2';
const VERSION = '2.3';
const REALNAME = 'Auto Inscription';
const DELETE = true;
const UPDATE = '0.0';
@ -243,12 +243,14 @@ class suscribe extends common
*/
// Soumission du formulaire
if ($this->isPost()) {
// Le domaine saisi est invalide si un filtre existe
if (
!empty($this->getData(['module', $this->getUrl(0), 'config', 'filter']))
) {
// Contrôler la validité du domaine saisi parmi les domaines valides
$email_to_check = $this->getInput('registrationAddMail', helper::FILTER_MAIL, true);
// Le domaine saisi est invalide si un filtre existe
if (
empty($this->getData(['module', $this->getUrl(0), 'config', 'filter'])) === true &&
empty($email_to_check) === true
) {
// Récupérer la liste des domaines valides depuis la configuration et supprimer les espaces autour
$filter = trim($this->getData(['module', $this->getUrl(0), 'config', 'filter']));