| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!-- 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_add_mail" method="post">
- <input type="hidden" name="token" value="<?=$_SESSION['token']?>">
- <input type="hidden" name="ok" value="Add">
- <div class="form-container">
- <h1 class="form-title"><?=_('Adding Mail Domain');?></h1>
- <?php show_alert_message($_SESSION);?>
- <?php if (($user_plain == 'admin') && (($_GET['accept'] !== "true"))) {?>
- <div class="alert alert-danger alert-with-icon" role="alert">
- <i class="fas fa-exclamation"></i>
- <p><?=_('Avoid adding web domains on admin account');?></p>
- </div>
- <?php } ?>
- <?php if (($user_plain == 'admin') && (empty($_GET['accept']))) {?>
- <div class="u-side-by-side u-pt18">
- <a href="/add/user/" class="button u-width-full u-mr10"><?=_('Add User');?></a>
- <a href="/add/mail/?accept=true" class="button button-danger u-width-full u-ml10"><?=_('Continue');?></a>
- </div>
- <?php } ?>
- <?php if (($user_plain == 'admin') && (($_GET['accept'] === "true")) || ($user_plain !== "admin")) {?>
- <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, "'"))?>">
- </div>
- <?php if($_SESSION['WEBMAIL_SYSTEM']){?>
- <div class="u-mb20">
- <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 (( $v_webmail == $client )) {
- echo ' selected' ;
- }
- echo ">".htmlentities(ucfirst($client))."</option>\n";
- }
- ?>
- <option value="" <?php if (empty($v_webmail) || $v_webmail == 'disabled' ){ echo "selected";}?>><?=_('Disabled');?></option>
- </select>
- </div>
- <?php } ?>
- <?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 ((empty($v_antispam)) || ($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 ((empty($v_reject)) || ($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 ((empty($v_antivirus)) || ($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 (isset($v_dkim)&&$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_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>
- <?php } ?>
- </div>
- </form>
- </div>
|