forked from ZwiiCMS-Team/ZwiiCMS
Signatures : noms d'objets
This commit is contained in:
parent
a371a3770e
commit
42fd538ccb
@ -25,6 +25,10 @@ class common {
|
|||||||
const GROUP_MEMBER = 1;
|
const GROUP_MEMBER = 1;
|
||||||
const GROUP_MODERATOR = 2;
|
const GROUP_MODERATOR = 2;
|
||||||
const GROUP_ADMIN = 3;
|
const GROUP_ADMIN = 3;
|
||||||
|
const SIGNATURE_ID = 1;
|
||||||
|
const SIGNATURE_PSEUDO = 2;
|
||||||
|
const SIGNATURE_FIRSTLASTNAME = 3;
|
||||||
|
const SIGNATURE_LASTFIRSTNAME = 4;
|
||||||
// Dossier de travail
|
// Dossier de travail
|
||||||
const BACKUP_DIR = 'site/backup/';
|
const BACKUP_DIR = 'site/backup/';
|
||||||
const DATA_DIR = 'site/data/';
|
const DATA_DIR = 'site/data/';
|
||||||
|
@ -83,7 +83,7 @@ class install extends common {
|
|||||||
'mail' => $userMail,
|
'mail' => $userMail,
|
||||||
'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true),
|
'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true),
|
||||||
'pseudo' => $userFirstname,
|
'pseudo' => $userFirstname,
|
||||||
'signature'=> 2 // Pseudo
|
'signature'=> self::SIGNATURE_PSEUDO
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
if ($success === true) { // Formulaire complété envoi du mail
|
if ($success === true) { // Formulaire complété envoi du mail
|
||||||
|
@ -26,12 +26,12 @@ class user extends common {
|
|||||||
];
|
];
|
||||||
public static $users = [];
|
public static $users = [];
|
||||||
|
|
||||||
//Paramètre pour choix de la signature
|
//Paramètres pour choix de la signature
|
||||||
public static $signature = [
|
public static $signature = [
|
||||||
1 => 'Identifiant',
|
self::SIGNATURE_ID => 'Identifiant',
|
||||||
2 => 'Pseudo',
|
self::SIGNATURE_PSEUDO => 'Pseudo',
|
||||||
3 => 'Prénom Nom',
|
self::SIGNATURE_FIRSTLASTNAME => 'Prénom Nom',
|
||||||
4 => 'Nom Prénom'
|
self::SIGNATURE_LASTFIRSTNAME => 'Nom Prénom'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user