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

114 lines
4.1 KiB
PHP
Raw Normal View History

2022-03-06 13:35:21 +01:00
<?php
// Lexique
2022-09-11 09:42:42 +02:00
include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php');
2022-03-06 13:35:21 +01:00
?>
2022-01-31 09:10:49 +01:00
<div id="connectContainer">
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['connect'][0]; ?>
2022-01-31 09:10:49 +01:00
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/connexion" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col3">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('connectCaptcha', true, $text['core_config_view']['connect'][1], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['config', 'connect','captcha'])
]); ?>
</div>
2022-11-05 09:31:32 +01:00
<div class="col6">
<?php echo template::checkbox('connectCaptchaBot', true, $text['core_config_view']['connect'][19], [
'checked' => $this->getData(['config', 'connect', 'captchaBot']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['connect'][3]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col3">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('connectAutoDisconnect', true, $text['core_config_view']['connect'][5], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['config','connect', 'autoDisconnect']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['connect'][6]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col3">
2022-03-06 13:35:21 +01:00
<?php echo template::select('connectAttempt', $connectAttempt , [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['connect'][7],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['config', 'connect', 'attempt'])
]); ?>
</div>
<div class="col3">
2022-03-06 13:35:21 +01:00
<?php echo template::select('connectTimeout', $connectTimeout , [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['connect'][8],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['config', 'connect', 'timeout'])
]); ?>
</div>
<div class="col3 verticalAlignBottom">
2022-09-11 09:42:42 +02:00
<label id="helpBlacklist"><?php echo $text['core_config_view']['connect'][10]; ?>
<?php echo template::help($text['core_config_view']['connect'][9]);
2022-01-31 09:10:49 +01:00
?>
</label>
<?php echo template::button('ConnectBlackListDownload', [
'href' => helper::baseUrl() . 'config/blacklistDownload',
2022-09-11 09:42:42 +02:00
'value' => $text['core_config_view']['connect'][11],
2022-01-31 09:10:49 +01:00
'ico' => 'download'
]); ?>
</div>
<div class="col3 verticalAlignBottom">
<?php echo template::button('CnnectBlackListReset', [
'class' => 'buttonRed',
'href' => helper::baseUrl() . 'config/blacklistReset',
2022-09-11 09:42:42 +02:00
'value' => $text['core_config_view']['connect'][12],
2022-01-31 09:10:49 +01:00
'ico' => 'cancel'
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['connect'][13];?>
2022-01-31 09:10:49 +01:00
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/connexion#journalisation" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col3">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('connectLog', true, $text['core_config_view']['connect'][14], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['config', 'connect', 'log'])
]); ?>
</div>
<div class="col3">
2022-03-06 13:35:21 +01:00
<?php echo template::select('connectAnonymousIp', $anonIP, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['connect'][15],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['config', 'connect', 'anonymousIp']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['connect'][16]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col3 verticalAlignBottom">
<?php echo template::button('ConfigLogDownload', [
'href' => helper::baseUrl() . 'config/logDownload',
2022-09-11 09:42:42 +02:00
'value' => $text['core_config_view']['connect'][17],
2022-01-31 09:10:49 +01:00
'ico' => 'download'
]); ?>
</div>
<div class="col3 verticalAlignBottom">
<?php echo template::button('ConnectLogReset', [
'class' => 'buttonRed',
'href' => helper::baseUrl() . 'config/logReset',
2022-09-11 09:42:42 +02:00
'value' => $text['core_config_view']['connect'][18],
2022-01-31 09:10:49 +01:00
'ico' => 'cancel'
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>