Skip to content

Commit 3d47843

Browse files
committed
mail settings hint
1 parent 9d2ebe5 commit 3d47843

File tree

2 files changed

+75
-3
lines changed

2 files changed

+75
-3
lines changed

web/login/index.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
<?php
2-
session_start();
32

43
define('NO_AUTH_REQUIRED',true);
4+
5+
6+
// Main include
7+
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
8+
9+
510
$TAB = 'LOGIN';
611

712
// Logout
813
if (isset($_GET['logout'])) {
914
session_destroy();
1015
}
1116

12-
// Main include
13-
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
1417

1518
// Login as someone else
1619
if (isset($_SESSION['user'])) {

web/templates/admin/add_mail_acc.html

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,28 @@
5050
}
5151
document.v_add_mail_acc.v_password.value = randomstring;
5252
}
53+
$(document).ready(function() {
54+
$('#v_account').text($('input[name=v_account]').val());
55+
$('#v_password').text($('input[name=v_password]').val());
56+
57+
$('input[name=v_account]').change(function(){
58+
$('#v_account').text($(this).val());
59+
});
60+
61+
$('input[name=v_password]').change(function(){
62+
if($('input[name=v_password]').attr('type') == 'text')
63+
$('#v_password').text($(this).val());
64+
else
65+
$('#v_password').text(Array($(this).val().length+1).join('*'));
66+
});
67+
68+
$('.toggle-psw-visibility-icon').click(function(){
69+
if($('input[name=v_password]').attr('type') == 'text')
70+
$('#v_password').text($('input[name=v_password]').val());
71+
else
72+
$('#v_password').text(Array($('input[name=v_password]').val().length+1).join('*'));
73+
});
74+
});
5375
</script>
5476

5577
<table class="data mode-add">
@@ -150,6 +172,53 @@
150172
</tr>
151173
</table>
152174
</td>
175+
<td class="mail-infoblock-td">
176+
<div class="mail-infoblock">
177+
<table>
178+
<tr>
179+
<td>Username:</td>
180+
<td><span id="v_account">william.cage</span>@<?=htmlentities($v_domain)?></td>
181+
</tr>
182+
<tr>
183+
<td>Password:</td>
184+
<td id="v_password">******</td>
185+
</tr>
186+
<tr>
187+
<td>IMAP hostname:</td>
188+
<td><?=htmlentities($v_domain)?></td>
189+
</tr>
190+
<tr>
191+
<td>IMAP port:</td>
192+
<td>143</td>
193+
</tr>
194+
<tr>
195+
<td>IMAP security:</td>
196+
<td>STARTTLS</td>
197+
</tr>
198+
<tr>
199+
<td>IMAP auth method:</td>
200+
<td>Normal password</td>
201+
</tr>
202+
<tr>
203+
<td>SMTP hostname</td>
204+
<td><?=htmlentities($v_domain)?></td>
205+
</tr>
206+
<tr>
207+
<td>SMTP port:</td>
208+
<td>587</td>
209+
</tr>
210+
<tr>
211+
<td>SMTP security:</td>
212+
<td>STARTTLS</td>
213+
</tr>
214+
<tr>
215+
<td>SMTP auth method:</td>
216+
<td>Normal password</td>
217+
</tr>
218+
</table>
219+
</div>
220+
</td>
221+
153222
</tr>
154223
</table>
155224
</form>

0 commit comments

Comments
 (0)