custom mail url

This commit is contained in:
Serghey Rodin 2013-11-23 15:19:03 +02:00
commit a0d4354b38
4 changed files with 22 additions and 3 deletions

View file

@ -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');?>

View file

@ -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');?>