ZwiiCMS/core/module/config/view/connect/connect.php

123 lines
4.9 KiB
PHP
Raw Normal View History

2021-10-30 18:12:34 +02:00
<div id="connectContainer">
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col12">
<div class="block">
2021-11-21 17:16:47 +01:00
<h4>Sécurité de la connexion
2021-11-03 16:54:22 +01:00
<span id="specialeHelpButton" class="helpDisplayButton">
2022-01-07 10:22:08 +01:00
<a href="https://doc.zwiicms.fr/connexion" target="_blank" title="Cliquer pour consulter l'aide en ligne">
2021-11-04 18:49:15 +01:00
<?php echo template::ico('help', 'left');?>
</a>
2021-11-03 16:54:22 +01:00
</span>
</h4>
2021-10-30 12:31:24 +02:00
<div class="row">
2021-11-12 18:22:06 +01:00
<div class="col3">
2021-12-17 18:18:24 +01:00
<?php echo template::checkbox('connectCaptcha', true, 'Captcha à la connexion', [
2022-02-10 08:29:28 +01:00
'checked' => $this->getData(['config', 'connect','captcha'])
2021-12-17 18:18:24 +01:00
]); ?>
<?php echo template::checkbox('connectCaptchaStrong', true, 'Captcha complexe', [
'checked' => $this->getData(['config', 'connect', 'captchaStrong']),
'help' => 'Option recommandée pour sécuriser la connexion. S\'applique à tous les captchas du site. Le captcha simple se limite à une addition de nombres de 0 à 10. Le captcha complexe utilise quatre opérations de nombres de 0 à 20. Activation recommandée.'
]); ?>
</div>
2021-10-30 12:31:24 +02:00
</div>
2021-11-12 18:22:06 +01:00
<div class="col3">
<?php echo template::select('connectCaptchaType', $module::$captchaTypes , [
'label' => 'Type de captcha',
'selected' => $this->getData(['config', 'connect', 'captchaType'])
]); ?>
</div>
<div class="col3">
2021-10-30 18:36:43 +02:00
<?php echo template::checkbox('connectAutoDisconnect', true, 'Déconnexion automatique', [
2021-12-19 15:51:41 +01:00
'checked' => $this->getData(['config', 'connect', 'autoDisconnect']),
2021-12-17 18:18:24 +01:00
'help' => 'Déconnecte les sessions ouvertes précédemment sur d\'autres navigateurs ou terminaux. Activation recommandée.'
]); ?>
</div>
<div class="col3">
2021-12-18 17:17:37 +01:00
<?php echo template::checkbox('connectShowPassword', true, 'Dévoiler le mot de passe', [
2021-12-19 15:51:41 +01:00
'checked' => $this->getData(['config', 'connect', 'showPassword']),
2021-12-18 17:18:56 +01:00
'help' => 'Dans l\'écran de connexion, active une icône dont le survol affiche temporairement le mot de passe.'
2021-12-17 18:18:24 +01:00
]); ?>
2021-10-30 12:31:24 +02:00
</div>
2021-10-29 19:25:17 +02:00
</div>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col3">
2021-10-30 18:36:43 +02:00
<?php echo template::select('connectAttempt', $module::$connectAttempt , [
2021-10-30 12:31:24 +02:00
'label' => 'Connexions successives',
'selected' => $this->getData(['config', 'connect', 'attempt'])
]); ?>
</div>
<div class="col3">
2021-10-30 18:36:43 +02:00
<?php echo template::select('connectTimeout', $module::$connectTimeout , [
2021-10-30 12:31:24 +02:00
'label' => 'Blocage après échecs',
'selected' => $this->getData(['config', 'connect', 'timeout'])
]); ?>
</div>
<div class="col3 verticalAlignBottom">
<label id="helpBlacklist">Liste noire :
<?php echo template::help(
'La liste noire énumère les tentatives de connexion à partir de comptes inexistants. Sont stockés : la date, l\'heure, le nom du compte et l\'IP.
Après le nombre de tentatives autorisées, l\'IP et le compte sont bloqués.');
?>
</label>
2021-10-30 18:36:43 +02:00
<?php echo template::button('ConnectBlackListDownload', [
2021-10-30 12:31:24 +02:00
'href' => helper::baseUrl() . 'config/blacklistDownload',
'value' => 'Télécharger la liste',
'ico' => 'download'
]); ?>
</div>
<div class="col3 verticalAlignBottom">
2021-10-30 18:36:43 +02:00
<?php echo template::button('CnnectBlackListReset', [
2021-10-30 12:31:24 +02:00
'class' => 'buttonRed',
'href' => helper::baseUrl() . 'config/blacklistReset',
'value' => 'Réinitialiser la liste',
'ico' => 'trash'
2021-10-30 12:31:24 +02:00
]); ?>
</div>
2021-10-29 18:34:01 +02:00
</div>
</div>
2021-10-29 16:14:51 +02:00
</div>
</div>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col12">
<div class="block">
2021-11-03 16:54:22 +01:00
<h4>Journalisation
<span id="specialeHelpButton" class="helpDisplayButton">
2022-01-07 10:22:08 +01:00
<a href="https://doc.zwiicms.fr/journalisation" target="_blank" title="Cliquer pour consulter l'aide en ligne">
2021-11-04 18:49:15 +01:00
<?php echo template::ico('help', 'left');?>
</a>
2021-11-03 16:54:22 +01:00
</span>
</h4>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col3">
2021-10-30 18:36:43 +02:00
<?php echo template::checkbox('connectLog', true, 'Activer la journalisation', [
2021-10-30 12:31:24 +02:00
'checked' => $this->getData(['config', 'connect', 'log'])
2021-10-29 16:14:51 +02:00
]); ?>
2021-10-30 12:31:24 +02:00
</div>
<div class="col3">
2021-10-30 18:36:43 +02:00
<?php echo template::select('connectAnonymousIp', $module::$anonIP, [
2021-10-30 12:31:24 +02:00
'label' => 'Anonymat des adresses IP',
'selected' => $this->getData(['config', 'connect', 'anonymousIp']),
2022-02-10 08:29:28 +01:00
'help' => 'La règlementation française impose un anonymat de niveau 2'
2021-10-30 12:31:24 +02:00
]); ?>
</div>
<div class="col3 verticalAlignBottom">
2021-10-30 18:12:34 +02:00
<?php echo template::button('ConfigLogDownload', [
2021-10-30 12:31:24 +02:00
'href' => helper::baseUrl() . 'config/logDownload',
'value' => 'Télécharger le journal',
'ico' => 'download'
]); ?>
</div>
<div class="col3 verticalAlignBottom">
2021-10-30 18:36:43 +02:00
<?php echo template::button('ConnectLogReset', [
2021-10-30 12:31:24 +02:00
'class' => 'buttonRed',
'href' => helper::baseUrl() . 'config/logReset',
'value' => 'Réinitialiser le journal',
'ico' => 'trash'
2021-10-30 12:31:24 +02:00
]); ?>
</div>
2021-10-29 16:14:51 +02:00
</div>
</div>
</div>
</div>
</div>