forked from ZwiiCMS-Team/ZwiiCMS
Merge branch '12308' into 12400
This commit is contained in:
commit
7dfae68bb9
@ -50,7 +50,9 @@ class install extends common
|
||||
'access' => false
|
||||
]);
|
||||
}
|
||||
// Accès autorisé
|
||||
|
||||
|
||||
|
||||
// Soumission du formulaire
|
||||
if ($this->isPost()) {
|
||||
$lang = $this->getInput('installLanguage');
|
||||
@ -64,6 +66,9 @@ class install extends common
|
||||
]);
|
||||
}
|
||||
|
||||
// Régénère la session
|
||||
session_regenerate_id();
|
||||
|
||||
// Liste des langues UI disponibles
|
||||
if (is_dir(self::I18N_DIR)) {
|
||||
foreach ($this->getData(['language']) as $lang => $value) {
|
||||
|
@ -324,7 +324,6 @@ class user extends common
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
'title' => $this->getData(['user', $this->getUrl(2), 'firstname']) . ' ' . $this->getData(['user', $this->getUrl(2), 'lastname']),
|
||||
@ -711,6 +710,10 @@ class user extends common
|
||||
if ($this->getData(['config', 'connect', 'log'])) {
|
||||
file_put_contents(self::DATA_DIR . 'journal.log', $dataLog, FILE_APPEND);
|
||||
}
|
||||
|
||||
// Régénère la session
|
||||
session_regenerate_id();
|
||||
|
||||
// Stockage des cookies
|
||||
if (!empty($_COOKIE['ZWII_USER_ID'])) {
|
||||
self::$userId = $_COOKIE['ZWII_USER_ID'];
|
||||
|
Loading…
Reference in New Issue
Block a user