WEB/MAIL. Added webmail url to the mail configuration helper

This commit is contained in:
Dmitry Naumov-Socolov 2016-10-17 18:58:11 -04:00
commit fbfdd51cc0
3 changed files with 39 additions and 5 deletions

View file

@ -184,6 +184,15 @@
<td><?=__('SMTP auth method')?>:</td>
<td><div><?=__('Normal password')?></div></td>
</tr>
<?
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
$webmail = "http://".$http_host."/webmail/";
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
?>
<tr>
<td><?=__('Webmail URL')?>:</td>
<td><div><a class="vst" href="<?=$webmail?>" target="_blank"><?=$webmail?> <i></i></a></div></td>
</tr>
</table>
</div>
</td>

View file

@ -86,7 +86,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
<textarea size="20" class="vst-textinput short" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
</td>
</tr>
<tr>
@ -193,10 +193,19 @@
<td><?=__('SMTP auth method')?>:</td>
<td><div><?=__('Normal password')?></div></td>
</tr>
<?
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
$webmail = "http://".$http_host."/webmail/";
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
?>
<tr>
<td><?=__('Webmail URL')?>:</td>
<td><div><a class="vst" href="<?=$webmail?>" target="_blank"><?=$webmail?> <i></i></a></div></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
</div>
</div>