mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
mail settings hint
This commit is contained in:
parent
9d2ebe561a
commit
3d47843586
2 changed files with 75 additions and 3 deletions
|
@ -1,7 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
session_start();
|
|
||||||
|
|
||||||
define('NO_AUTH_REQUIRED',true);
|
define('NO_AUTH_REQUIRED',true);
|
||||||
|
|
||||||
|
|
||||||
|
// Main include
|
||||||
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||||
|
|
||||||
|
|
||||||
$TAB = 'LOGIN';
|
$TAB = 'LOGIN';
|
||||||
|
|
||||||
// Logout
|
// Logout
|
||||||
|
@ -9,8 +14,6 @@ if (isset($_GET['logout'])) {
|
||||||
session_destroy();
|
session_destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Main include
|
|
||||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
||||||
|
|
||||||
// Login as someone else
|
// Login as someone else
|
||||||
if (isset($_SESSION['user'])) {
|
if (isset($_SESSION['user'])) {
|
||||||
|
|
|
@ -50,6 +50,28 @@
|
||||||
}
|
}
|
||||||
document.v_add_mail_acc.v_password.value = randomstring;
|
document.v_add_mail_acc.v_password.value = randomstring;
|
||||||
}
|
}
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#v_account').text($('input[name=v_account]').val());
|
||||||
|
$('#v_password').text($('input[name=v_password]').val());
|
||||||
|
|
||||||
|
$('input[name=v_account]').change(function(){
|
||||||
|
$('#v_account').text($(this).val());
|
||||||
|
});
|
||||||
|
|
||||||
|
$('input[name=v_password]').change(function(){
|
||||||
|
if($('input[name=v_password]').attr('type') == 'text')
|
||||||
|
$('#v_password').text($(this).val());
|
||||||
|
else
|
||||||
|
$('#v_password').text(Array($(this).val().length+1).join('*'));
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.toggle-psw-visibility-icon').click(function(){
|
||||||
|
if($('input[name=v_password]').attr('type') == 'text')
|
||||||
|
$('#v_password').text($('input[name=v_password]').val());
|
||||||
|
else
|
||||||
|
$('#v_password').text(Array($('input[name=v_password]').val().length+1).join('*'));
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<table class="data mode-add">
|
<table class="data mode-add">
|
||||||
|
@ -150,6 +172,53 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="mail-infoblock-td">
|
||||||
|
<div class="mail-infoblock">
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>Username:</td>
|
||||||
|
<td><span id="v_account">william.cage</span>@<?=htmlentities($v_domain)?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Password:</td>
|
||||||
|
<td id="v_password">******</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>IMAP hostname:</td>
|
||||||
|
<td><?=htmlentities($v_domain)?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>IMAP port:</td>
|
||||||
|
<td>143</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>IMAP security:</td>
|
||||||
|
<td>STARTTLS</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>IMAP auth method:</td>
|
||||||
|
<td>Normal password</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>SMTP hostname</td>
|
||||||
|
<td><?=htmlentities($v_domain)?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>SMTP port:</td>
|
||||||
|
<td>587</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>SMTP security:</td>
|
||||||
|
<td>STARTTLS</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>SMTP auth method:</td>
|
||||||
|
<td>Normal password</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue