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

112 lines
4.2 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-04 18:49:15 +01:00
<h4>Sécurité de la connexion
2021-11-03 16:54:22 +01:00
<span id="specialeHelpButton" class="helpDisplayButton">
2021-11-04 18:49:15 +01:00
<a href="https://doc.zwiicms.fr/connexion" target="_blank">
<?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="col4">
2021-10-30 18:36:43 +02:00
<?php echo template::checkbox('connectCaptcha', true, 'Captcha à la connexion', [
2021-10-30 12:31:24 +02:00
'checked' => $this->getData(['config', 'connect','captcha'])
2021-10-29 19:25:17 +02:00
]); ?>
2021-10-30 12:31:24 +02:00
</div>
<div class="col4">
2021-10-30 18:36:43 +02:00
<?php echo template::checkbox('connectCaptchaStrong', true, 'Captcha complexe', [
2021-11-15 08:15:26 +01:00
'checked' => $this->getData(['config', 'connect', 'captchaStrong']),
2021-10-30 12:31:24 +02:00
'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="col4">
2021-10-30 18:36:43 +02:00
<?php echo template::checkbox('connectAutoDisconnect', true, 'Déconnexion automatique', [
2021-10-30 18:48:33 +02:00
'checked' => $this->getData(['config','connect', 'autoDisconnect']),
2021-10-30 12:31:24 +02:00
'help' => 'Déconnecte les sessions ouvertes précédemment sur d\'autres navigateurs ou terminaux. Activation recommandée.'
]); ?>
</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' => 'cancel'
]); ?>
</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">
2021-11-04 18:49:15 +01:00
<a href="https://doc.zwiicms.fr/journalisation" target="_blank">
<?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']),
'help' => 'La réglementation française impose un anonymat de niveau 2'
]); ?>
</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' => 'cancel'
]); ?>
</div>
2021-10-29 16:14:51 +02:00
</div>
</div>
</div>
</div>
</div>