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

132 lines
5.3 KiB
PHP
Raw Normal View History

2022-03-01 19:41:31 +01:00
<div id="connectContainer" class="tabContent">
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">
2022-08-27 10:17:43 +02:00
<?php echo template::ico('help', ['margin' => 'left']);?>
2021-11-04 18:49:15 +01:00
</a>
2021-11-03 16:54:22 +01:00
</span>
</h4>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col4">
<?php echo template::checkbox('connectShowPassword', true, 'Dévoiler le mot de passe', [
'checked' => $this->getData(['config', 'connect', 'showPassword']),
'help' => 'Le survom d\'une icône de l\'écran de connexion affiche temporairement le mot de passe.'
]); ?>
</div>
<div class="col4">
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="col4">
2022-04-18 17:18:41 +02:00
<?php echo template::checkbox('connectRedirectLogin', true, 'Redirection vers la connexion', [
'checked' => $this->getData(['config', 'connect', 'redirectLogin']),
'help' => 'Cette redirection ne concerne que les pages d\'administration du site.'
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 , [
'label' => 'Limitation des tentatives',
2021-10-30 12:31:24 +02:00
'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 class="row">
<div class="col3">
<?php echo template::checkbox('connectCaptcha', true, 'Captcha à la connexion', [
'checked' => $this->getData(['config', 'connect','captcha'])
]); ?>
</div>
<div class="col3">
<?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>
<div class="col3">
<?php echo template::select('connectCaptchaType', $module::$captchaTypes , [
'label' => 'Type de captcha',
'selected' => $this->getData(['config', 'connect', 'captchaType'])
]); ?>
</div>
</div>
2021-10-29 18:34:01 +02:00
</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">
2022-08-27 10:17:43 +02:00
<?php echo template::ico('help', ['margin' => 'left']);?>
2021-11-04 18:49:15 +01:00
</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>
2022-03-20 09:15:06 +01:00
</div>