mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
WEB/MAIL. Added webmail url to the mail configuration helper
This commit is contained in:
parent
e6a3aac07b
commit
fbfdd51cc0
3 changed files with 39 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue