mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
custom mail url
This commit is contained in:
parent
c60bda6b95
commit
a0d4354b38
4 changed files with 22 additions and 3 deletions
|
@ -31,6 +31,9 @@
|
|||
<table class="data">
|
||||
<?php
|
||||
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
|
||||
$webmail = "http://".$http_host."/webmail/";
|
||||
if (!empty($sys['config']['MAIL_URL'])) $webmail = $sys['config']['MAIL_URL'];
|
||||
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||
|
@ -81,7 +84,7 @@
|
|||
<?php print __('edit');?>
|
||||
</span>
|
||||
</a>
|
||||
<a href="<?php echo "http://".$http_host."/webmail/"; ?>" target="_blank" class="data-controls">
|
||||
<a href="<?php echo $webmail; ?>" target="_blank" class="data-controls">
|
||||
<span>
|
||||
<img src="/images/new_window.png" width="8px" height="8px">
|
||||
<?php print __('open webmail');?>
|
||||
|
|
|
@ -29,6 +29,9 @@
|
|||
<table class="data">
|
||||
<?php
|
||||
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"] . ":");
|
||||
$webmail = "http://".$http_host."/webmail/";
|
||||
if (!empty($sys['config']['MAIL_URL'])) $webmail = $sys['config']['MAIL_URL'];
|
||||
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||
|
@ -67,7 +70,7 @@
|
|||
<?php print __('edit');?>
|
||||
</span>
|
||||
</a>
|
||||
<a href="<?php echo "http://".$http_host."/webmail/"; ?>" target="_blank" class="data-controls">
|
||||
<a href="<?php echo $webmail; ?>" target="_blank" class="data-controls">
|
||||
<span>
|
||||
<img src="/images/new_window.png" width="8px" height="8px">
|
||||
<?php print __('open webmail');?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue