WEB. Improved Lets Encrypt interface

This commit is contained in:
Dmitry Naumov-Socolov 2016-10-27 07:17:03 -04:00
commit 0e18fc669a
36 changed files with 122 additions and 13 deletions

View file

@ -2623,6 +2623,15 @@ a.vst-text:active b{
margin: 2px 6px 0 3px;
padding: 5px;
}
.lets-encrypt-note {
color: #89a40a !important;
font-style: italic;
font-weight: normal !important;
height: 30px;
padding-top: 10px;
vertical-align: top;
}
.additional-control {
margin-left: 17px;
color: #2C9491;
@ -2695,6 +2704,7 @@ td.hint {
font-style: italic;
font-weight: normal;
}
.ftp-path-prefix { padding-top: 7px; }
.ui-button,
.button {

View file

@ -190,6 +190,9 @@ $LANG['ar'] = array(
'template' => 'نموذج',
'SSL Support' => 'دعم SSL',
'SSL Home Directory' => 'المجلد الرئيسي لـ SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'دغم بروكسي',
'Proxy Extensions' => 'توسعات بروكسي',
'Web Statistics' => 'إحصائيات الوب',

View file

@ -190,6 +190,9 @@ $LANG['bs'] = array(
'template' => 'šablon',
'SSL Support' => 'SSL podrška',
'SSL Home Directory' => 'SSL direktorij',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Lets Encrypt' => 'Lets Encrypt',
'Proxy Support' => 'Proxy podrška',
'Proxy Extensions' => 'Proxy ekstenzije',
'Web Statistics' => 'Web statistika',

View file

@ -191,6 +191,9 @@ $LANG['cn'] = array(
'template' => '模板',
'SSL Support' => 'SSL支持',
'SSL Home Directory' => 'SSL主目录',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => '代理支持',
'Proxy Extensions' => '代理扩展名',
'Web Statistics' => '网站统计',

View file

@ -191,6 +191,9 @@ $LANG['cz'] = array(
'template' => 'šablona',
'SSL Support' => 'SSL podpora',
'SSL Home Directory' => 'SSL home adresář',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Proxy podpora',
'Proxy Extensions' => 'Proxy rozšíření',
'Web Statistics' => 'Webové statistiky',

View file

@ -192,6 +192,9 @@ $LANG['da'] = array(
'template' => 'skabelon',
'SSL Support' => 'SSL Support',
'SSL Home Directory' => 'SSL Home',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Proxy Support',
'Proxy Extensions' => 'Proxy Tilføjelser',
'Web Statistics' => 'Web Statistik',

View file

@ -190,6 +190,9 @@ $LANG['de'] = array(
'template' => 'Template',
'SSL Support' => 'SSL Unterstützung',
'SSL Home Directory' => 'SSL Homeverzeichnis',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Proxy Unterstützung',
'Proxy Extensions' => 'Proxy Erweiterungen',
'Web Statistics' => 'Web Statistiken',

View file

@ -191,6 +191,9 @@ $LANG['el'] = array(
'template' => 'template',
'SSL Support' => 'Υποστήριξη SSL',
'SSL Home Directory' => 'Αρχικός Κατάλογος SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Υποστήριξη Proxy',
'Proxy Extensions' => 'Πρόσθετα Proxy',
'Web Statistics' => 'Στατιστικά Web',

View file

@ -190,6 +190,8 @@ $LANG['en'] = array(
'template' => 'template',
'SSL Support' => 'SSL Support',
'SSL Home Directory' => 'SSL Home',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Proxy Support' => 'Proxy Support',
'Proxy Extensions' => 'Proxy Extensions',
'Web Statistics' => 'Web Statistics',

View file

@ -191,6 +191,9 @@ $LANG['es'] = array(
'template' => 'plantilla',
'SSL Support' => 'Soporte SSL',
'SSL Home Directory' => 'SSL Del Directorio Local',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Soporte Proxy',
'Proxy Extensions' => 'Extensiones Proxy',
'Web Statistics' => 'Estadísticas Web',

View file

@ -193,6 +193,9 @@ $LANG['fa'] = [
'template' => 'قالب',
'SSL Support' => 'پشتیبانی SSL',
'SSL Home Directory' => 'خانه SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'پشتیبانی Proxy',
'Proxy Extensions' => 'فرمت های Proxy',
'Web Statistics' => 'آمار هاي وب',

View file

@ -192,6 +192,9 @@ $LANG['fi'] = array(
'template' => 'pohjat',
'SSL Support' => 'SSL-tuki',
'SSL Home Directory' => 'SSL-kotihakemisto',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Proxy-tuki',
'Proxy Extensions' => 'Proxy-laajennukset',
'Web Statistics' => 'Web-tilastot',

View file

@ -190,6 +190,9 @@ $LANG['fr'] = array(
'template' => 'template',
'SSL Support' => 'Support SSL',
'SSL Home Directory' => 'Racine SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Support Proxy',
'Proxy Extensions' => 'Extensions Proxy',
'Web Statistics' => 'Statistiques Web',

View file

@ -194,6 +194,9 @@ $LANG['hu'] = array(
'template' => 'sablon',
'SSL Support' => 'SSL támogatás',
'SSL Home Directory' => 'SSL kezdőlap',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Proxy támogatás',
'Proxy Extensions' => 'Proxy kiterjesztések',
'Web Statistics' => 'Web statisztikák',

View file

@ -193,6 +193,9 @@ $LANG['id'] = array(
'template' => 'kerangka',
'SSL Support' => 'Dukungan SSL',
'SSL Home Directory' => 'Direktori SSL Home',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Dukungan Proxy',
'Proxy Extensions' => 'Ekstensi Proxy',
'Web Statistics' => 'Statistik Web',

View file

@ -191,6 +191,9 @@ $LANG['it'] = array(
'template' => 'template',
'SSL Support' => 'Supporto SSL',
'SSL Home Directory' => 'SSL Home',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Supporto Proxy',
'Proxy Extensions' => 'Estensioni Proxy',
'Web Statistics' => 'Statistiche Web',

View file

@ -190,6 +190,9 @@ $LANG['ja'] = array(
'template' => 'テンプレート',
'SSL Support' => 'SSLのサポート',
'SSL Home Directory' => 'SSLホームディレクトリ',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'プロキシのサポート',
'Proxy Extensions' => 'プロキシ対象拡張子',
'Web Statistics' => 'ウェブアクセス統計',

View file

@ -190,6 +190,9 @@ $LANG['ka'] = array(
'template' => 'შაბლონი',
'SSL Support' => 'SSL მხარდაჭერა',
'SSL Home Directory' => 'SSL მთავარი დირექტორია',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'პროქსის მხარდაჭერა',
'Proxy Extensions' => 'პროქსის გაფართოებები',
'Web Statistics' => 'ვებ სტატისტიკა',

View file

@ -191,6 +191,9 @@ $LANG['nl'] = array(
'template' => 'sjabloon',
'SSL Support' => 'SSL Ondersteuning',
'SSL Home Directory' => 'SSL Map',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Proxy Ondersteuning',
'Proxy Extensions' => 'Proxy Extensies',
'Web Statistics' => 'Web Statistieken',

View file

@ -191,6 +191,9 @@ $LANG['no'] = array(
'template' => 'mal',
'SSL Support' => 'SSL Støtte',
'SSL Home Directory' => 'SSL Hjem',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Proxy Støtte',
'Proxy Extensions' => 'Proxy Utvidelser',
'Web Statistics' => 'Web Statistikker',

View file

@ -190,6 +190,9 @@ $LANG['pl'] = array(
'template' => 'szablon',
'SSL Support' => 'Wsparcie dla SSL',
'SSL Home Directory' => 'Folder główny SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Wsparcie dla Proxy',
'Proxy Extensions' => 'Rozszerzenia Proxy',
'Web Statistics' => 'Statystyki Web',

View file

@ -190,6 +190,9 @@ $LANG['pt-BR'] = array(
'template' => 'template',
'SSL Support' => 'Suporte SSL',
'SSL Home Directory' => 'Diretório Home SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Suporte ao Proxy',
'Proxy Extensions' => 'Extenções do Proxy',
'Web Statistics' => 'Estatísticas Web',

View file

@ -190,6 +190,9 @@ $LANG['pt'] = array(
'template' => 'template',
'SSL Support' => 'Suporte SSL',
'SSL Home Directory' => 'Diretório Home SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Suporte ao Proxy',
'Proxy Extensions' => 'Extenções do Proxy',
'Web Statistics' => 'Estatísticas Web',

View file

@ -192,6 +192,9 @@ $LANG['ro'] = array(
'template' => 'șablon',
'SSL Support' => 'Support SSL',
'SSL Home Directory' => 'Director SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Suport Proxy',
'Proxy Extensions' => 'Extensii Proxy',
'Web Statistics' => 'Statistici web',

View file

@ -191,6 +191,9 @@ $LANG['ru'] = array(
'template' => 'шаблон',
'SSL Support' => 'Поддержка SSL',
'SSL Home Directory' => 'Директория SSL',
'Lets Encrypt Support' => 'Поддержка Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Сертификат будет автоматически создан в течении 5-ти минут',
'Lets Encrypt' => 'Lets Encrypt',
'Proxy Support' => 'Поддержка Proxy',
'Proxy Extensions' => 'Обработка Proxy',
'Web Statistics' => 'Статистика сайта',

View file

@ -190,6 +190,9 @@ $LANG['se'] = array(
'template' => 'mall',
'SSL Support' => 'SSL-stöd',
'SSL Home Directory' => 'Hemmakatalog för SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Nginx-stöd',
'Proxy Extensions' => 'Nginx-tillägg',
'Web Statistics' => 'Webbstatistik',

View file

@ -191,6 +191,9 @@ $LANG['tr'] = array(
'template' => 'template',
'SSL Support' => 'SSL Support',
'SSL Home Directory' => 'SSL Home',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Proxy Desteği',
'Proxy Extensions' => 'Proxy Uzantıları',
'Web Statistics' => 'Web İstatistikleri',

View file

@ -192,6 +192,9 @@ $LANG['tw'] = array(
'template' => '模板',
'SSL Support' => 'SSL支援',
'SSL Home Directory' => 'SSL主目錄',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Nginx支援',
'Proxy Extensions' => 'Nginx擴充',
'Web Statistics' => '網站統計',

View file

@ -191,6 +191,9 @@ $LANG['ua'] = array(
'template' => 'шаблон',
'SSL Support' => 'Підтримка SSL',
'SSL Home Directory' => 'Домашня тека SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Підтримка Proxy',
'Proxy Extensions' => 'Розширення Proxy',
'Web Statistics' => 'Веб статистика',

View file

@ -190,6 +190,9 @@ $LANG['vi'] = array(
'template' => 'mẫu',
'SSL Support' => 'Hỗ trợ SSL',
'SSL Home Directory' => 'Trang chủ SSL',
'Lets Encrypt Support' => 'Lets Encrypt Support',
'Lets Encrypt' => 'Lets Encrypt',
'Your certificate will be automatically issued in 5 minutes' => 'Your certificate will be automatically issued in 5 minutes',
'Proxy Support' => 'Hỗ trợ Nginx',
'Proxy Extensions' => 'Phần mở rộng Nginx',
'Web Statistics' => 'Thống kê Web',

View file

@ -154,15 +154,13 @@ App.Actions.WEB.toggle_additional_ftp_accounts = function(elm) {
App.Actions.WEB.toggle_letsencrypt = function(elm) {
if ($(elm).attr('checked')) {
$('#ssltable textarea[name=v_ssl_crt],#ssltable textarea[name=v_ssl_key], #ssltable textarea[name=v_ssl_ca]').attr('disabled', 'disabled');
// $('input[name=v_ssl]').prop('checked', true);
// $('#ssltable').show();
$('#generate-csr').hide();
$('.lets-encrypt-note').show();
}
else {
$('#ssltable textarea[name=v_ssl_crt],#ssltable textarea[name=v_ssl_key], #ssltable textarea[name=v_ssl_ca]').removeAttr('disabled');
// $('input[name=v_ssl]').prop('checked', false);
// $('#ssltable').hide();
$('#generate-csr').show();
$('.lets-encrypt-note').hide();
}
}

View file

@ -135,15 +135,15 @@ App.Actions.WEB.toggle_additional_ftp_accounts = function(elm) {
App.Actions.WEB.toggle_letsencrypt = function(elm) {
if ($(elm).attr('checked')) {
$('#ssltable textarea[name=v_ssl_crt],#ssltable textarea[name=v_ssl_key], #ssltable textarea[name=v_ssl_ca]').attr('disabled', 'disabled');
$('input[name=v_ssl]').prop('checked', true);
$('#ssltable').show();
$('#generate-csr').hide();
if(!$('.lets-encrypt-note').hasClass('enabled')){
$('.lets-encrypt-note').show();
}
}
else {
$('#ssltable textarea[name=v_ssl_crt],#ssltable textarea[name=v_ssl_key], #ssltable textarea[name=v_ssl_ca]').removeAttr('disabled');
$('input[name=v_ssl]').prop('checked', false);
$('#ssltable').hide();
$('#generate-csr').show();
$('.lets-encrypt-note').hide();
}
}
@ -180,9 +180,8 @@ $(function() {
var elm = $(evt.target);
App.Actions.WEB.passwordChanged(elm);
});
if ($('input[name=v_letsencrypt]').attr('checked')) {
App.Actions.WEB.toggle_letsencrypt($('input[name=v_letsencrypt]'))
}
App.Actions.WEB.toggle_letsencrypt($('input[name=v_letsencrypt]'));
$('select[name="v_stats"]').change(function(evt){
var select = $(evt.target);

View file

@ -135,6 +135,11 @@
</td>
</tr>
<tr>
<td class="vst-text input-label lets-encrypt-note step-left" >
<?= __('Your certificate will be automatically issued in 5 minutes')?>
</td>
</tr>
<tr>
<td class="vst-text input-label step-left">
<?php print __('SSL Home Directory');?>
</td>

View file

@ -187,7 +187,7 @@
</tr>
<tr>
<td><?=__('SMTP security')?>:</td>
<td><div id="td_smtp_encryption"><?=__('STARTTLS')?></div></td>
<td><div id="td_smtp_encription"><?=__('STARTTLS')?></div></td>
</tr>
<tr>
<td><?=__('SMTP auth method')?>:</td>

View file

@ -191,6 +191,11 @@
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_letsencrypt" <?php if($v_letencrypt == 'yes' || $v_letencrypt == 'on') echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_letsencrypt(this)"> <?php print __('Lets Encrypt Support');?></label>
</td>
</tr>
<tr>
<td class="vst-text input-label lets-encrypt-note <? if($v_letencrypt == 'yes' || $v_letencrypt == 'on') echo ' enabled';?>" >
<?= __('Your certificate will be automatically issued in 5 minutes')?>
</td>
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('SSL Home Directory');?>

View file

@ -232,7 +232,13 @@ sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-disk="<?=$data[$key]['U_DI
<div class="l-unit__stat-cols clearfix">
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('SSL Support')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=__($data[$key]['SSL'])?></b>
<b>
<? if(empty($data[$key]['LETSENCRYPT'])){
echo __($data[$key]['SSL']);
} else {
echo __('Lets Encrypt');
}?>
</b>
</div>
</div>
<? } ?>