| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <!-- 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/"><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" method="post" class="<?=$v_status?>">
- <input type="hidden" name="token" value="<?=$_SESSION['token']?>">
- <input type="hidden" name="save" value="save">
- <div class="form-container">
- <h1 class="form-title"><?=_('Editing Mail Domain');?></h1>
- <?php show_alert_message($_SESSION);?>
- <div class="u-mb20">
- <label for="v_domain" class="form-label"><?=_('Domain');?></label>
- <input type="text" class="form-control" name="v_domain" id="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled>
- <input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
- </div>
- <?php if($_SESSION['WEBMAIL_SYSTEM']){?>
- <div class="u-mb10">
- <label for="v_webmail" class="form-label"><?=_('Webmail Client');?></label>
- <select class="form-select" name="v_webmail" id="v_webmail" tabindex="6">
- <?php foreach ($webmail_clients as $client){
- echo "\t\t\t\t<option value=\"".htmlentities($client)."\"";
- if (( htmlentities(trim($v_webmail,"'")) == $client )) {
- echo ' selected' ;
- }
- echo ">".htmlentities(ucfirst($client))."</option>\n";
- }
- ?>
- <option value="disabled" <?php if (htmlentities(trim($v_webmail,"'")) == 'disabled') { echo "selected";}?>><?=_('Disabled');?></option>
- </select>
- </div>
- <?php } ?>
- <div class="u-mb10">
- <label for="v_catchall" class="form-label"><?=_('Catchall email');?></label>
- <input type="email" class="form-control" name="v_catchall" id="v_catchall" value="<?=htmlentities(trim($v_catchall, "'"))?>">
- </div>
- <div class="u-mb20">
- <label for="v_rate" class="form-label">
- <?=_('Rate limit');?> <span class="optional">(<?=_('Email / hour / account');?>)</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>
- <?php if (!empty($_SESSION['ANTISPAM_SYSTEM'])) {?>
- <div class="form-check u-mb10">
- <input class="form-check-input" type="checkbox" name="v_antispam" id="v_antispam" <?php if ($v_antispam == 'yes') echo 'checked'; ?>>
- <label for="v_antispam">
- <?=_('AntiSpam Support');?>
- </label>
- </div>
- <div class="form-check u-mb10">
- <input class="form-check-input" type="checkbox" name="v_reject" id="v_reject" <?php if ($v_reject == 'yes') echo 'checked'; ?>>
- <label for="v_reject">
- <?=_('Reject spam');?>
- </label>
- </div>
- <?php } ?>
- <?php if (!empty($_SESSION['ANTIVIRUS_SYSTEM'])) {?>
- <div class="form-check u-mb10">
- <input class="form-check-input" type="checkbox" name="v_antivirus" id="v_antivirus" <?php if ($v_antivirus == 'yes') echo 'checked'; ?>>
- <label for="v_antivirus">
- <?=_('AntiVirus Support');?>
- </label>
- </div>
- <?php } ?>
- <div class="form-check u-mb10">
- <input class="form-check-input" type="checkbox" name="v_dkim" id="v_dkim" <?php if ($v_dkim == 'yes') echo 'checked'; ?>>
- <label for="v_dkim">
- <?=_('DKIM Support');?>
- </label>
- </div>
- <div class="form-check u-mb10">
- <input class="form-check-input" type="checkbox" name="v_ssl" id="v_ssl" <?php if ($v_ssl == 'yes') echo 'checked' ?> onclick="javascript:elementHideShow('ssltable');">
- <label for="v_ssl">
- <?=_('SSL Support');?>
- </label>
- </div>
- <div id="ssltable" class="u-pl30" style="display:<?php if ($v_ssl == 'no' ) { echo 'none';} else {echo 'block';}?> ;">
- <div class="form-check u-mb10">
- <input class="form-check-input" type="checkbox" name="v_letsencrypt" id="v_letsencrypt" onclick="javascript:elementHideShow('ssl-details');App.Actions.MAIL.toggle_letsencrypt(this);" <?php if($v_letsencrypt == 'yes' || $v_letsencrypt == 'on') echo 'checked' ?>">
- <label for="v_letsencrypt">
- <?=_('Lets Encrypt Support');?>
- </label>
- </div>
- <div id="le-warning" class="u-mb20">
- <div class="alert alert-info alert-with-icon" role="alert">
- <i class="fas fa-exclamation"></i>
- <p><?php echo $v_webmail_alias;?></p>
- <p><?=sprintf(_("To enable Let's Encrypt SSL, ensure that DNS records exist for mail.%s and %s!"), $v_domain, $v_webmail_alias); ?></p>
- </div>
- </div>
- <div id="ssl-details" style="<?php if ($v_letsencrypt == 'yes' || $v_letsencrypt == 'on') { echo 'display: none;'; } ?>">
- <div class="u-mb10">
- <label for="v_ssl_crt" class="form-label">
- <?=_('SSL Certificate');?>
- <span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?=htmlentities($v_domain)?>"><?=_('Generate CSR');?></a></span>
- </label>
- <textarea class="form-control u-min-height100 u-console" <?php if ($v_letsencrypt == 'yes') echo 'disabled' ?> name="v_ssl_crt" id="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
- </div>
- <div class="u-mb10">
- <label for="v_ssl_key" class="form-label"><?=_('SSL Key');?></label>
- <textarea class="form-control u-min-height100 u-console" <?php if ($v_letsencrypt == 'yes') echo 'disabled' ?> name="v_ssl_key" id="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
- </div>
- <div class="u-mb20">
- <label for="v_ssl_ca" class="form-label">
- <?=_('SSL Certificate Authority / Intermediate');?> <span class="optional">(<?=_('optional');?>)</span>
- </label>
- <textarea class="form-control u-min-height100 u-console" <?php if ($v_letsencrypt == 'yes') echo 'disabled' ?> name="v_ssl_ca" id="v_ssl_ca"><?=htmlentities(trim($v_ssl_ca, "'"))?></textarea>
- </div>
- </div>
- <?php if ($v_ssl != 'no' ) { ?>
- <table class="additional-info">
- <tr>
- <td>
- <b><?=_('SUBJECT');?>:</b>
- </td>
- <td class="details">
- <?=htmlentities($v_ssl_subject);?>
- </td>
- </tr>
- <?php if ($v_ssl_aliases){?>
- <tr>
- <td>
- <b><?=_('Aliases');?>:</b>
- </td>
- <td class="details">
- <?=htmlentities($v_ssl_aliases)?>
- </td>
- </tr>
- <?php } ?>
- <tr>
- <td>
- <b><?=_('NOT_BEFORE');?>:</b>
- </td>
- <td class="details">
- <?=htmlentities($v_ssl_not_before)?>
- </td>
- </tr>
- <tr>
- <td>
- <b><?=_('NOT_AFTER');?>:</b>
- </td>
- <td class="details">
- <?=htmlentities($v_ssl_not_after)?>
- </td>
- </tr>
- <tr>
- <td>
- <b><?=_('SIGNATURE');?>:</b>
- </td>
- <td class="details">
- <?=htmlentities($v_ssl_signature)?>
- </td>
- </tr>
- <tr>
- <td>
- <b><?=_('PUB_KEY');?>:</b>
- </td>
- <td class="details">
- <?=htmlentities($v_ssl_pub_key)?>
- </td>
- </tr>
- <tr>
- <td>
- <b><?=_('ISSUER');?>:</b>
- </td>
- <td class="details">
- <?=htmlentities($v_ssl_issuer)?>
- </td>
- </tr>
- </table>
- <? } // if ssl is enabled ?>
- </div>
- <div class="form-check u-mb10">
- <input class="form-check-input" type="checkbox" name="v_smtp_relay" id="v_smtp_relay" <?php if ($v_smtp_relay == 'true') echo 'checked'; ?> onclick="javascript:elementHideShow('smtp_relay_table');">
- <label for="v_smtp_relay">
- <?=_('SMTP Relay');?>
- </label>
- </div>
- <div id="smtp_relay_table" class="u-pl30" style="display:<?php if ($v_smtp_relay == 'true') {echo 'block';} else {echo 'none';}?> ;">
- <div class="u-mb10">
- <label for="v_smtp_relay_host" class="form-label"><?=_('Host');?></label>
- <input type="text" class="form-control" name="v_smtp_relay_host" id="v_smtp_relay_host" value="<?=htmlentities(trim($v_smtp_relay_host, "'"))?>">
- </div>
- <div class="u-mb10">
- <label for="v_smtp_relay_port" class="form-label"><?=_('Port');?></label>
- <input type="text" class="form-control" name="v_smtp_relay_port" id="v_smtp_relay_port" value="<?=htmlentities(trim($v_smtp_relay_port, "'"))?>">
- </div>
- <div class="u-mb10">
- <label for="v_smtp_relay_user" class="form-label"><?=_('Username');?></label>
- <input type="text" class="form-control" name="v_smtp_relay_user" id="v_smtp_relay_user" value="<?=htmlentities(trim($v_smtp_relay_user, "'"))?>">
- </div>
- <div class="u-mb10">
- <label for="v_smtp_relay_pass" class="form-label"><?=_('Password');?></label>
- <input type="text" class="form-control" name="v_smtp_relay_pass" id="v_smtp_relay_pass">
- </div>
- </div>
- </div>
- </form>
- </div>
|