| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <!-- Begin toolbar -->
- <div class="l-sort">
- <div class="l-sort__inner">
- <div class="l-unit-toolbar__buttonstrip">
- <a class="button button-secondary" id="btn-back" href="/list/mail/?domain=<?=htmlentities(trim($v_domain, "'"))?>&token=<?=$_SESSION['token']?>"><i class="fas fa-arrow-left status-icon blue"></i><?=_('Back');?></a>
- </div>
- <div class="l-unit-toolbar__buttonstrip">
- <a href="#" class="button" data-action="submit" data-id="vstobjects"><i class="fas fa-floppy-disk status-icon purple"></i><?=_('Save');?></a>
- </div>
- </div>
- </div>
- <!-- End toolbar -->
- <div class="l-center animate__animated animate__fadeIn">
- <form id="vstobjects" name="v_edit_mail_acc" method="post" class="<?=$v_status?>">
- <input type="hidden" name="token" value="<?=$_SESSION['token']?>">
- <input type="hidden" name="save" value="save">
- <div class="form-container form-container-wide">
- <h1 class="form-title"><?=_('Editing Mail Account');?></h1>
- <?php show_alert_message($_SESSION);?>
- <div class="sidebar-container">
- <div>
- <div class="u-mb10">
- <label for="v_email" class="form-label"><?=_('Account');?></label>
- <input type="text" class="form-control" name="v_email" id="v_email" value="<?=htmlentities($_GET['account'])."@".htmlentities($_GET['domain'])?>" disabled>
- <input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
- <input type="hidden" name="v_account" value="<?=htmlentities(trim($v_account, "'"))?>">
- </div>
- <div class="u-mb10">
- <label for="v_password" class="form-label">
- <?=_('Password');?>
- <a href="javascript:applyRandomString();" title="<?=_('generate');?>" class="u-ml5"><i class="fas fa-arrows-rotate status-icon green icon-large"></i></a>
- </label>
- <div class="u-pos-relative u-mb10">
- <input type="text" class="form-control js-password-input" name="v_password" id="v_password" value="<?=htmlentities(trim($v_password, "'"))?>">
- <meter max="4" class="password-meter"></meter>
- </div>
- </div>
- <p class="u-mb10"><?=_('Your password must have at least');?>:</p>
- <ul class="u-list-bulleted">
- <li><?=_('8 characters long');?></li>
- <li><?=_('1 uppercase & 1 lowercase character');?></li>
- <li><?=_('1 number');?></li>
- </ul>
- <div class="u-pt18 u-mb10">
- <label for="v_send_email" class="form-label">
- <?=_('Send login credentials to email address') ?>
- </label>
- <input type="email" class="form-control" name="v_send_email" id="v_send_email" value="<?=htmlentities(trim($v_send_email, "'"))?>">
- <input type="hidden" name="v_credentials" class="js-hidden-credentials">
- </div>
- <div class="u-mb10">
- <label for="v_quota" class="form-label">
- <?=_('Quota');?> <span class="optional">(<?=_('in megabytes');?>)</span>
- </label>
- <div class="u-pos-relative">
- <input type="text" class="form-control" name="v_quota" id="v_quota" value="<?php if (!empty($v_quota)) {echo htmlentities(trim($v_quota, "'"));} else { echo "0"; } ?>">
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited');?>"></i>
- </div>
- </div>
- <div class="u-mb10">
- <label for="v_aliases" class="form-label">
- <?=_('Aliases');?> <span class="optional">(<?=_('use local-part');?>)</span>
- </label>
- <textarea class="form-control" name="v_aliases" id="v_aliases"><?=htmlentities(trim($v_aliases, "'"))?></textarea>
- </div>
- <div class="form-check">
- <input class="form-check-input" type="checkbox" name="v_blackhole" id="v_blackhole" <?php if ($v_blackhole == 'yes') echo 'checked' ?>>
- <label for="v_blackhole">
- <?=_('Discard all mail');?>
- </label>
- </div>
- <div id="id_fwd_for" style="display:<?php if ($v_blackhole == 'yes') {echo 'none';} else {echo 'block';}?> ;">
- <div class="form-check">
- <input class="form-check-input" type="checkbox" name="v_fwd_only" id="v_fwd_for" <?php if ($v_fwd_only == 'yes') echo 'checked' ?>>
- <label for="v_fwd_for">
- <?=_('Do not store forwarded mail');?>
- </label>
- </div>
- </div>
- <div class="form-check u-mb10">
- <input class="form-check-input" type="checkbox" name="v_autoreply" id="v_autoreply" <?php if ($v_autoreply == 'yes') echo 'checked' ?> onclick="javascript:elementHideShow('autoreplytable');">
- <label for="v_autoreply">
- <?=_('Autoreply');?>
- </label>
- </div>
- <div id="autoreplytable" style="display:<?php if ($v_autoreply == 'yes') { echo 'block';} else {echo 'none';}?> ;">
- <div class="u-mb10">
- <label for="v_autoreply_message" class="form-label"><?=_('Message');?></label>
- <textarea class="form-control" name="v_autoreply_message" id="v_autoreply_message"><?=htmlentities(trim($v_autoreply_message, "'"))?></textarea>
- </div>
- </div>
- <div id="v-fwd-opt">
- <div class="u-mb10">
- <label for="v_fwd" class="form-label">
- <?=_('Forward to');?> <span class="optional">(<?=_('one or more email addresses');?>)</span>
- </label>
- <textarea class="form-control" name="v_fwd" id="v_fwd" <?php if($v_blackhole == 'yes') echo "disabled";?>><?=htmlentities(trim($v_fwd, "'"))?></textarea>
- </div>
- </div>
- <div class="u-mb20">
- <label for="v_rate" class="form-label">
- <?=_('Rate limit');?> <span class="optional">(<?=_('Email / hour');?>)</span>
- </label>
- <input type="text" class="form-control" name="v_rate" id="v_rate" value="<?=htmlentities(trim($v_rate, "'"))?>" <?php if($_SESSION['userContext'] != "admin"){ echo "disabled";}?>>
- </div>
- </div>
- <div>
- <div class="mail-infoblock">
- <table>
- <tr><td colspan="2"><strong><?=strtoupper(_('Common account settings'));?></strong></td><tr>
- <tr><td><?=_('Username');?>: </td><td><span class="js-account-output"></span>@<?=htmlentities(trim($v_domain, "'"))?></td></tr>
- <tr><td><?=_('Password');?>: </td><td><span class="js-password-output"></span></td></tr>
- <?php if ($_SESSION['WEBMAIL_SYSTEM']) {?><tr><td><?=_('Webmail');?>: </td><td><a href="http://<?=htmlentities($v_webmail_alias)?>" target="_blank">http://<?=htmlentities($v_webmail_alias)?></a></td></tr>
- <?php } ?>
- <tr><td><?=_('Hostname');?>: </td><td>mail.<?=htmlentities($v_domain)?></td></tr>
- <tr><td colspan="2"><strong><?=strtoupper(_('IMAP settings'));?></strong></td></tr>
- <tr><td><?=_('Authentication');?>: </td><td> <?=_('Normal password');?></td></tr>
- <tr><td><?=_('SSL/TLS');?>: </td><td><?=_('Port');?> 993
- <tr><td><?=_('STARTTLS');?>: </td><td><?=_('Port');?> 143
- <tr><td><?=_('No encryption');?>: </td><td><?=_('Port');?> 143
- <tr><td colspan="2"><strong><?=strtoupper(_('POP3 settings'));?></strong></td></tr>
- <tr><td><?=_('Authentication');?>: </td><td> <?=_('Normal password');?></td></tr>
- <tr><td><?=_('SSL/TLS');?>: </td><td><?=_('Port');?> 995
- <tr><td><?=_('STARTTLS');?>: </td><td><?=_('Port');?> 110
- <tr><td><?=_('No encryption');?>: </td><td><?=_('Port');?> 110
- <tr><td colspan="2"><strong><?=strtoupper(_('SMTP settings'));?></strong></td></tr>
- <tr><td><?=_('Authentication');?>: </td><td> <?=_('Normal password');?></td></tr>
- <tr><td><?=_('SSL/TLS');?>: </td><td><?=_('Port');?> 465
- <tr><td><?=_('STARTTLS');?>: </td><td><?=_('Port');?> 587
- <tr><td><?=_('No encryption');?>: </td><td><?=_('Port');?> 25
- </table>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
|