147 lines
4.3 KiB
PHP
147 lines
4.3 KiB
PHP
<?php
|
|
// Lexique
|
|
$text = [];
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
switch ($val) {
|
|
case 'fr' :
|
|
$text[0] = 'Paramètres';
|
|
$text[1] = 'Type de proxy';
|
|
$text[2] = 'Adresse du proxy';
|
|
$text[3] = 'Port du proxy';
|
|
$text[4] = 'SMTP';
|
|
$text[5] = 'Activer SMTP';
|
|
$text[6] = 'Paramètres à utiliser lorsque votre hébergeur ne propose pas la fonctionnalité d\'envoi de mail.';
|
|
$text[7] = 'Adresse SMTP';
|
|
$text[8] = 'Port SMTP';
|
|
$text[9] = 'Authentification';
|
|
$text[10] = 'Nom utilisateur';
|
|
$text[11] = 'Mot de passe';
|
|
$text[12] = 'Sécurité';
|
|
$SMTPauth = $module::$SMTPauth;
|
|
$SMTPEnc = $module::$SMTPEnc;
|
|
break;
|
|
case 'en' :
|
|
$text[0] = 'Settings';
|
|
$text[1] = 'Proxy type';
|
|
$text[2] = 'Proxy address';
|
|
$text[3] = 'Proxy port';
|
|
$text[4] = 'SMTP';
|
|
$text[5] = 'Enable SMTP';
|
|
$text[6] = 'Settings to be used when your webhost does not offer mail sending functionality';
|
|
$text[7] = 'SMTP address';
|
|
$text[8] = 'SMTP port';
|
|
$text[9] = 'Authentication';
|
|
$text[10] = 'User name';
|
|
$text[11] = 'Password';
|
|
$text[12] = 'Security';
|
|
$SMTPauth = $module::$SMTPauth_en;
|
|
$SMTPEnc = $module::$SMTPEnc_en;
|
|
break;
|
|
}
|
|
?>
|
|
<div id="networkContainer">
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[0]; ?>
|
|
<span id="specialeHelpButton" class="helpDisplayButton">
|
|
<a href="https://doc.deltacms.fr/reseau" target="_blank">
|
|
<?php echo template::ico('help', 'left');?>
|
|
</a>
|
|
</span>
|
|
</h4>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::select('configProxyType', $module::$proxyType, [
|
|
'label' => $text[1],
|
|
'selected' => $this->getData(['config', 'proxyType'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col8">
|
|
<?php echo template::text('configProxyUrl', [
|
|
'label' => $text[2],
|
|
'placeholder' => 'cache.proxy.fr',
|
|
'value' => $this->getData(['config', 'proxyUrl'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::text('configProxyPort', [
|
|
'label' => $text[3],
|
|
'placeholder' => '6060',
|
|
'value' => $this->getData(['config', 'proxyPort'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[4]; ?>
|
|
<span id="specialeHelpButton" class="helpDisplayButton">
|
|
<a href="https://doc.deltacms.fr/reseau#smtp" target="_blank">
|
|
<?php echo template::ico('help', 'left');?>
|
|
</a>
|
|
</span>
|
|
</h4>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<?php echo template::checkbox('smtpEnable', true, $text[5], [
|
|
'checked' => $this->getData(['config', 'smtp','enable']),
|
|
'help' => $text[6]
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div id="smtpParam">
|
|
<div class="row">
|
|
<div class="col8">
|
|
<?php echo template::text('smtpHost', [
|
|
'label' => $text[7],
|
|
'placeholder' => 'smtp.fr',
|
|
'value' => $this->getData(['config', 'smtp','host'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::text('smtpPort', [
|
|
'label' => $text[8],
|
|
'placeholder' => '589',
|
|
'value' => $this->getData(['config', 'smtp','port'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::select('smtpAuth', $SMTPauth, [
|
|
'label' => $text[9],
|
|
'selected' => $this->getData(['config', 'smtp','auth'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div id="smtpAuthParam">
|
|
<div class="row">
|
|
<div class="col5">
|
|
<?php echo template::text('smtpUsername', [
|
|
'label' => $text[10],
|
|
'value' => $this->getData(['config', 'smtp','username' ])
|
|
]); ?>
|
|
</div>
|
|
<div class="col5">
|
|
<?php echo template::password('smtpPassword', [
|
|
'label' => $text[11],
|
|
'autocomplete' => 'off',
|
|
'value' => $this->getData(['config', 'smtp','username' ]) ? helper::decrypt ($this->getData(['config', 'smtp','username' ]),$this->getData(['config','smtp','password'])) : ''
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::select('smtpSecure', $SMTPEnc , [
|
|
'label' => $text[12],
|
|
'selected' => $this->getData(['config', 'smtp','secure'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|