Skip to content

Commit de8fa18

Browse files
author
Kristan Kenney
committed
Merge branch 'mail-ux-fixes' into webmail-fixup
2 parents 98bbe7b + 2e9f917 commit de8fa18

File tree

6 files changed

+18
-11
lines changed

6 files changed

+18
-11
lines changed

func/rebuild.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ rebuild_dns_domain_conf() {
439439

440440
# MAIL domain rebuild
441441
rebuild_mail_domain_conf() {
442-
442+
get_domain_values 'web'
443443
get_domain_values 'mail'
444444

445445
if [[ "$domain" = *[![:ascii:]]* ]]; then
@@ -505,10 +505,20 @@ rebuild_mail_domain_conf() {
505505
del_mail_ssl_config
506506
add_mail_ssl_config
507507

508+
add_webmail_config '$WEB_SYSTEM' 'default.stpl'
509+
508510
# Update counters
509511
update_object_value 'mail' 'DOMAIN' "$domain" '$SSL' "yes"
510512
U_MAIL_SSL=$((U_MAIL_SSL + 1))
511513
fi
514+
515+
# Add webmail configuration
516+
if [ ! -z "$WEB_SYSTEM" ]; then
517+
add_webmail_config '$WEB_SYSTEM' 'default.tpl'
518+
fi
519+
if [ ! -z "PROXY_SYSTEM" ]; then
520+
add_webmail_config 'PROXY_SYSTEM' 'default.tpl'
521+
fi
512522
fi
513523

514524
# Rebuild domain accounts

web/edit/mail/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244

245245
// Delete Lets Encrypt support
246246
if (( $v_letsencrypt == 'yes' ) && (empty($_POST['v_letsencrypt'])) && (empty($_SESSION['error_msg']))) {
247-
exec (HESTIA_CMD."v-delete-letsencrypt-domain ".$user." ".$v_domain." 'no' 'yes'", $output, $return_var);
247+
exec (HESTIA_CMD."v-delete-letsencrypt-domain ".$user." ".$v_domain." ' ' 'yes'", $output, $return_var);
248248
check_return_code($return_var,$output);
249249
unset($output);
250250
$v_ssl_crt = '';

web/edit/web/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339

340340
// Delete Lets Encrypt support
341341
if (( $v_letsencrypt == 'yes' ) && (empty($_POST['v_letsencrypt'])) && (empty($_SESSION['error_msg']))) {
342-
exec (HESTIA_CMD."v-delete-letsencrypt-domain ".$user." ".$v_domain." 'no'", $output, $return_var);
342+
exec (HESTIA_CMD."v-delete-letsencrypt-domain ".$user." ".$v_domain." ''", $output, $return_var);
343343
check_return_code($return_var,$output);
344344
unset($output);
345345
$v_ssl_crt = '';
@@ -369,7 +369,7 @@
369369
// Add Lets Encrypt support
370370
if ((!empty($_POST['v_ssl'])) && ( $v_letsencrypt == 'no' ) && (!empty($_POST['v_letsencrypt'])) && empty($_SESSION['error_msg'])) {
371371
$l_aliases = str_replace("\n", ',', $v_aliases);
372-
exec (HESTIA_CMD."v-add-letsencrypt-domain ".$user." ".$v_domain." '".$l_aliases."' 'no'", $output, $return_var);
372+
exec (HESTIA_CMD."v-add-letsencrypt-domain ".$user." ".$v_domain." '".$l_aliases."' ''", $output, $return_var);
373373
check_return_code($return_var,$output);
374374
unset($output);
375375
$v_letsencrypt = 'yes';

web/templates/admin/edit_mail_acc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
</tr>
206206
<?
207207
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
208-
$webmail = "http://mail.".$http_host."/";
208+
$webmail = "http://webmail.".$http_host."/";
209209
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
210210
?>
211211
<tr>

web/templates/admin/list_mail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<td class="step-right">
1515
<?
1616
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
17-
$webmail = "http://mail.".$http_host."/";
17+
$webmail = "http://webmail.".$http_host."/";
1818
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
1919
?>
2020
<a class="vst" href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a>
@@ -81,7 +81,7 @@
8181

8282
<?
8383
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
84-
$webmail = "http://mail.".$http_host."/";
84+
$webmail = "http://webmail.".$http_host."/";
8585
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
8686

8787
foreach ($data as $key => $value) {

web/templates/admin/list_mail_acc.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<td class="step-right">
1414
<?
1515
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
16-
$webmail = "http://mail.".$http_host."/";
16+
$webmail = "http://webmail.".$http_host."/";
1717
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
1818
?>
1919
<a class="vst" href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a>
@@ -56,9 +56,6 @@
5656
<div class="l-separator"></div>
5757
<!-- /.l-separator -->
5858
<div class="l-center units animated fadeIn">
59-
<div class="l-unit header">
60-
<div class="subtitle"><?=__('Listing')?> <?=htmlentities($_GET['domain'])?></div>
61-
</div>
6259
<div class="l-unit header">
6360
<div class="l-unit__col l-unit__col--left clearfix">
6461
<div class="text-center jump-small-top"></div>

0 commit comments

Comments
 (0)