edit_mail_acc.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <!-- Begin toolbar -->
  2. <div class="l-sort">
  3. <div class="l-sort__inner">
  4. <div class="l-unit-toolbar__buttonstrip">
  5. <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>
  6. </div>
  7. <div class="l-unit-toolbar__buttonstrip">
  8. <a href="#" class="button" data-action="submit" data-id="vstobjects"><i class="fas fa-floppy-disk status-icon purple"></i><?=_('Save');?></a>
  9. </div>
  10. </div>
  11. </div>
  12. <!-- End toolbar -->
  13. <div class="l-center animate__animated animate__fadeIn">
  14. <form id="vstobjects" name="v_edit_mail_acc" method="post" class="<?=$v_status?>">
  15. <input type="hidden" name="token" value="<?=$_SESSION['token']?>">
  16. <input type="hidden" name="save" value="save">
  17. <div class="form-container form-container-wide">
  18. <h1 class="form-title"><?=_('Editing Mail Account');?></h1>
  19. <?php show_alert_message($_SESSION);?>
  20. <div class="sidebar-container">
  21. <div>
  22. <div class="u-mb10">
  23. <label for="v_email" class="form-label"><?=_('Account');?></label>
  24. <input type="text" class="form-control" name="v_email" id="v_email" value="<?=htmlentities($_GET['account'])."@".htmlentities($_GET['domain'])?>" disabled>
  25. <input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
  26. <input type="hidden" name="v_account" value="<?=htmlentities(trim($v_account, "'"))?>">
  27. </div>
  28. <div class="u-mb10">
  29. <label for="v_password" class="form-label">
  30. <?=_('Password');?>
  31. <a href="javascript:applyRandomString();" title="<?=_('generate');?>" class="u-ml5"><i class="fas fa-arrows-rotate status-icon green icon-large"></i></a>
  32. </label>
  33. <div class="u-pos-relative u-mb10">
  34. <input type="text" class="form-control js-password-input" name="v_password" id="v_password" value="<?=htmlentities(trim($v_password, "'"))?>">
  35. <meter max="4" class="password-meter"></meter>
  36. </div>
  37. </div>
  38. <p class="u-mb10"><?=_('Your password must have at least');?>:</p>
  39. <ul class="u-list-bulleted">
  40. <li><?=_('8 characters long');?></li>
  41. <li><?=_('1 uppercase & 1 lowercase character');?></li>
  42. <li><?=_('1 number');?></li>
  43. </ul>
  44. <div class="u-pt18 u-mb10">
  45. <label for="v_send_email" class="form-label">
  46. <?=_('Send login credentials to email address') ?>
  47. </label>
  48. <input type="email" class="form-control" name="v_send_email" id="v_send_email" value="<?=htmlentities(trim($v_send_email, "'"))?>">
  49. <input type="hidden" name="v_credentials" class="js-hidden-credentials">
  50. </div>
  51. <div class="u-mb10">
  52. <label for="v_quota" class="form-label">
  53. <?=_('Quota');?> <span class="optional">(<?=_('in megabytes');?>)</span>
  54. </label>
  55. <div class="u-pos-relative">
  56. <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"; } ?>">
  57. <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited');?>"></i>
  58. </div>
  59. </div>
  60. <div class="u-mb10">
  61. <label for="v_aliases" class="form-label">
  62. <?=_('Aliases');?> <span class="optional">(<?=_('use local-part');?>)</span>
  63. </label>
  64. <textarea class="form-control" name="v_aliases" id="v_aliases"><?=htmlentities(trim($v_aliases, "'"))?></textarea>
  65. </div>
  66. <div class="form-check">
  67. <input class="form-check-input" type="checkbox" name="v_blackhole" id="v_blackhole" <?php if ($v_blackhole == 'yes') echo 'checked' ?>>
  68. <label for="v_blackhole">
  69. <?=_('Discard all mail');?>
  70. </label>
  71. </div>
  72. <div id="id_fwd_for" style="display:<?php if ($v_blackhole == 'yes') {echo 'none';} else {echo 'block';}?> ;">
  73. <div class="form-check">
  74. <input class="form-check-input" type="checkbox" name="v_fwd_only" id="v_fwd_for" <?php if ($v_fwd_only == 'yes') echo 'checked' ?>>
  75. <label for="v_fwd_for">
  76. <?=_('Do not store forwarded mail');?>
  77. </label>
  78. </div>
  79. </div>
  80. <div class="form-check u-mb10">
  81. <input class="form-check-input" type="checkbox" name="v_autoreply" id="v_autoreply" <?php if ($v_autoreply == 'yes') echo 'checked' ?> onclick="javascript:elementHideShow('autoreplytable');">
  82. <label for="v_autoreply">
  83. <?=_('Autoreply');?>
  84. </label>
  85. </div>
  86. <div id="autoreplytable" style="display:<?php if ($v_autoreply == 'yes') { echo 'block';} else {echo 'none';}?> ;">
  87. <div class="u-mb10">
  88. <label for="v_autoreply_message" class="form-label"><?=_('Message');?></label>
  89. <textarea class="form-control" name="v_autoreply_message" id="v_autoreply_message"><?=htmlentities(trim($v_autoreply_message, "'"))?></textarea>
  90. </div>
  91. </div>
  92. <div id="v-fwd-opt">
  93. <div class="u-mb10">
  94. <label for="v_fwd" class="form-label">
  95. <?=_('Forward to');?> <span class="optional">(<?=_('one or more email addresses');?>)</span>
  96. </label>
  97. <textarea class="form-control" name="v_fwd" id="v_fwd" <?php if($v_blackhole == 'yes') echo "disabled";?>><?=htmlentities(trim($v_fwd, "'"))?></textarea>
  98. </div>
  99. </div>
  100. <div class="u-mb20">
  101. <label for="v_rate" class="form-label">
  102. <?=_('Rate limit');?> <span class="optional">(<?=_('Email / hour');?>)</span>
  103. </label>
  104. <input type="text" class="form-control" name="v_rate" id="v_rate" value="<?=htmlentities(trim($v_rate, "'"))?>" <?php if($_SESSION['userContext'] != "admin"){ echo "disabled";}?>>
  105. </div>
  106. </div>
  107. <div>
  108. <div class="mail-infoblock">
  109. <table>
  110. <tr><td colspan="2"><strong><?=strtoupper(_('Common account settings'));?></strong></td><tr>
  111. <tr><td><?=_('Username');?>: </td><td><span class="js-account-output"></span>@<?=htmlentities(trim($v_domain, "'"))?></td></tr>
  112. <tr><td><?=_('Password');?>: </td><td><span class="js-password-output"></span></td></tr>
  113. <?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>
  114. <?php } ?>
  115. <tr><td><?=_('Hostname');?>: </td><td>mail.<?=htmlentities($v_domain)?></td></tr>
  116. <tr><td colspan="2"><strong><?=strtoupper(_('IMAP settings'));?></strong></td></tr>
  117. <tr><td><?=_('Authentication');?>: </td><td> <?=_('Normal password');?></td></tr>
  118. <tr><td><?=_('SSL/TLS');?>: </td><td><?=_('Port');?> 993
  119. <tr><td><?=_('STARTTLS');?>: </td><td><?=_('Port');?> 143
  120. <tr><td><?=_('No encryption');?>: </td><td><?=_('Port');?> 143
  121. <tr><td colspan="2"><strong><?=strtoupper(_('POP3 settings'));?></strong></td></tr>
  122. <tr><td><?=_('Authentication');?>: </td><td> <?=_('Normal password');?></td></tr>
  123. <tr><td><?=_('SSL/TLS');?>: </td><td><?=_('Port');?> 995
  124. <tr><td><?=_('STARTTLS');?>: </td><td><?=_('Port');?> 110
  125. <tr><td><?=_('No encryption');?>: </td><td><?=_('Port');?> 110
  126. <tr><td colspan="2"><strong><?=strtoupper(_('SMTP settings'));?></strong></td></tr>
  127. <tr><td><?=_('Authentication');?>: </td><td> <?=_('Normal password');?></td></tr>
  128. <tr><td><?=_('SSL/TLS');?>: </td><td><?=_('Port');?> 465
  129. <tr><td><?=_('STARTTLS');?>: </td><td><?=_('Port');?> 587
  130. <tr><td><?=_('No encryption');?>: </td><td><?=_('Port');?> 25
  131. </table>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </form>
  137. </div>