diff --git a/core/core.php b/core/core.php index 1f0b5b69..6e33f607 100755 --- a/core/core.php +++ b/core/core.php @@ -25,6 +25,10 @@ class common { const GROUP_MEMBER = 1; const GROUP_MODERATOR = 2; const GROUP_ADMIN = 3; + const SIGNATURE_ID = 1; + const SIGNATURE_PSEUDO = 2; + const SIGNATURE_FIRSTLASTNAME = 3; + const SIGNATURE_LASTFIRSTNAME = 4; // Dossier de travail const BACKUP_DIR = 'site/backup/'; const DATA_DIR = 'site/data/'; diff --git a/core/module/install/install.php b/core/module/install/install.php index f71674cc..f359d338 100755 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -83,7 +83,7 @@ class install extends common { 'mail' => $userMail, 'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true), 'pseudo' => $userFirstname, - 'signature'=> 2 // Pseudo + 'signature'=> self::SIGNATURE_PSEUDO ] ]); if ($success === true) { // Formulaire complété envoi du mail diff --git a/core/module/user/user.php b/core/module/user/user.php index 085b384c..2e095cc9 100755 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -26,12 +26,12 @@ class user extends common { ]; public static $users = []; - //Paramètre pour choix de la signature + //Paramètres pour choix de la signature public static $signature = [ - 1 => 'Identifiant', - 2 => 'Pseudo', - 3 => 'Prénom Nom', - 4 => 'Nom Prénom' + self::SIGNATURE_ID => 'Identifiant', + self::SIGNATURE_PSEUDO => 'Pseudo', + self::SIGNATURE_FIRSTLASTNAME => 'Prénom Nom', + self::SIGNATURE_LASTFIRSTNAME => 'Nom Prénom' ];