1
0
mirror of https://github.com/serghey-rodin/vesta.git synced 2025-03-12 04:36:25 -07:00

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
parent e6a3aac07b
commit fbfdd51cc0
3 changed files with 39 additions and 5 deletions

@ -1285,6 +1285,10 @@ div.l-content > div.l-separator:nth-of-type(4) {
height: 28px;
min-width: 208px;
padding-left: 4px;
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
padding-left: 10px;
}
.l-select select:focus {
border: 0;
@ -2465,6 +2469,7 @@ label {
font-size: 19px;
font-weight: normal;
height: 43px;
cursor: pointer;
margin: 2px 6px 0 0;
min-width: 138px;
padding: 8px 1px 6px 10px;
@ -2475,7 +2480,6 @@ label {
-moz-appearance:none;
-webkit-appearance:none;
text-shadow: 0 0 0 #555;
cursor: pointer;
}
.vst-list.long-2 {
@ -2503,6 +2507,9 @@ label {
background-position: -210px -604px;
text-shadow: none !important;
}
.vst-list.flat:hover {
color: #ff6701;
}
a.vst-text,
a.vst-text b{
@ -2548,6 +2555,9 @@ a.vst-text:active b{
font-family:"Lucida Console", Monaco, monospace;
white-space: pre;
}
.vst-textinput.short {
width: 360px;
}
#advanced-options .console{
width: 833px;
height: 600px;
@ -2823,8 +2833,8 @@ a.button.cancel {
font-size: 12px;
color: #777;
border: 1px solid #d9d9d9;
padding: 7px 5px 12px 20px;
margin-top: 17px;
padding: 0px 5px 12px 20px;
margin-top: 64px;
width: 334px;
overflow: hidden;
}
@ -2844,6 +2854,12 @@ a.button.cancel {
width: 190px;
white-space: nowrap;
}
.mail-infoblock a {
color: #2c9491;
}
.mail-infoblock a:hover {
color: #ff6701;
}
.additional-info {
margin-left: 30px;

@ -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>