|
|
@@ -51,104 +51,124 @@
|
|
|
?>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text step-top">
|
|
|
- <?php print _('Domain');?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <?php if($_SESSION['IMAP_SYSTEM']){?>
|
|
|
+ <? if (($user == 'admin') && (($_GET['accept'] !== "true"))) {?>
|
|
|
<tr>
|
|
|
- <td class="vst-text step-top">
|
|
|
- <?php print _('Webmail Client');?>
|
|
|
+ <td class="step-top">
|
|
|
+ <span class="alert alert-danger alert-with-icon">
|
|
|
+ <i class="fas fa-exclamation"></i>
|
|
|
+ <?=_('Avoid adding web domains on admin account')?>
|
|
|
+ </span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <select class="vst-list" name="v_webmail" tabindex="6" >
|
|
|
- <?php foreach ($webmail_clients as $client){
|
|
|
- echo "\t\t\t\t<option value=\"".htmlentities($client)."\"";
|
|
|
- if ((!empty($v_webmail)) && ( $v_webmail == $client )) {
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- echo ">".htmlentities(ucfirst($client))."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- <option value="" <?php if(empty($v_webmail)){ echo "selected";}?>><?php print _('Disabled');?></option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <?php } ?>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label step-top">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_antispam" <?php if ((empty($v_antispam)) || ($v_antispam == 'yes')) echo "checked=yes"; ?>><?php print _('AntiSpam Support');?></label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_antivirus" <?php if ((empty($v_antivirus)) || ($v_antivirus == 'yes')) echo "checked=yes"; ?>><?php print _('AntiVirus Support');?></label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_dkim" <?php if (isset($v_dkim)&&$v_dkim == 'yes') echo "checked=yes"; ?>><?php print _('DKIM Support');?></label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_smtp_relay" <?php if ($v_smtp_relay == 'true') echo "checked=yes"; ?> onclick="javascript:elementHideShow('smtp_relay_table');"><?php print _('SMTP Relay');?></label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="step-left">
|
|
|
- <table style="display:<?php if ($v_smtp_relay == 'true'){echo 'block';} else {echo 'none';} ?>;" id="smtp_relay_table">
|
|
|
+ <?php } ?>
|
|
|
+ <? if (($user == 'admin') && (empty($_GET['accept']))) {?>
|
|
|
+ <tr>
|
|
|
+ <td class="step-top">
|
|
|
+ <span><a href="/add/user/" class="vst-advanced" style="padding-left: 67px !important;padding-right: 67px !important;"><?=_('Add User')?></a></span>
|
|
|
+ <span><a href="/add/mail/?accept=true" class="vst-advanced" style="padding-left: 67px !important;padding-right: 67px !important;"><?=_('Continue')?></a> </span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <? } ?>
|
|
|
+ <? if (($user == 'admin') && (($_GET['accept'] === "true")) || ($user !== "admin")) {?>
|
|
|
<tr>
|
|
|
- <td class="input-label vst-text">
|
|
|
- <?php print _('Host');?>
|
|
|
+ <td class="vst-text step-top">
|
|
|
+ <?php print _('Domain');?>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_smtp_relay_host" value="<?=htmlentities(trim($v_smtp_relay_host, "'"))?>">
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <?php if($_SESSION['IMAP_SYSTEM']){?>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text step-top">
|
|
|
+ <?php print _('Webmail Client');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <select class="vst-list" name="v_webmail" tabindex="6" >
|
|
|
+ <?php foreach ($webmail_clients as $client){
|
|
|
+ echo "\t\t\t\t<option value=\"".htmlentities($client)."\"";
|
|
|
+ if ((!empty($v_webmail)) && ( $v_webmail == $client )) {
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ echo ">".htmlentities(ucfirst($client))."</option>\n";
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ <option value="" <?php if(empty($v_webmail)){ echo "selected";}?>><?php print _('Disabled');?></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
<tr>
|
|
|
- <td class="input-label vst-text">
|
|
|
- <?php print _('Port');?>
|
|
|
+ <td class="vst-text input-label step-top">
|
|
|
+ <label><input type="checkbox" size="20" class="vst-checkbox" name="v_antispam" <?php if ((empty($v_antispam)) || ($v_antispam == 'yes')) echo "checked=yes"; ?>><?php print _('AntiSpam Support');?></label>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_smtp_relay_port" value="<?=htmlentities(trim($v_smtp_relay_port, "'"))?>">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="input-label vst-text">
|
|
|
- <?php print _('Username');?>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <label><input type="checkbox" size="20" class="vst-checkbox" name="v_antivirus" <?php if ((empty($v_antivirus)) || ($v_antivirus == 'yes')) echo "checked=yes"; ?>><?php print _('AntiVirus Support');?></label>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_smtp_relay_user" value="<?=htmlentities(trim($v_smtp_relay_user, "'"))?>">
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <label><input type="checkbox" size="20" class="vst-checkbox" name="v_dkim" <?php if (isset($v_dkim)&&$v_dkim == 'yes') echo "checked=yes"; ?>><?php print _('DKIM Support');?></label>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="input-label vst-text">
|
|
|
- <?php print _('Password');?>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <label><input type="checkbox" size="20" class="vst-checkbox" name="v_smtp_relay" <?php if ($v_smtp_relay == 'true') echo "checked=yes"; ?> onclick="javascript:elementHideShow('smtp_relay_table');"><?php print _('SMTP Relay');?></label>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_smtp_relay_pass">
|
|
|
+ <td class="step-left">
|
|
|
+ <table style="display:<?php if ($v_smtp_relay == 'true'){echo 'block';} else {echo 'none';} ?>;" id="smtp_relay_table">
|
|
|
+ <tr>
|
|
|
+ <td class="input-label vst-text">
|
|
|
+ <?php print _('Host');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_smtp_relay_host" value="<?=htmlentities(trim($v_smtp_relay_host, "'"))?>">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="input-label vst-text">
|
|
|
+ <?php print _('Port');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_smtp_relay_port" value="<?=htmlentities(trim($v_smtp_relay_port, "'"))?>">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="input-label vst-text">
|
|
|
+ <?php print _('Username');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_smtp_relay_user" value="<?=htmlentities(trim($v_smtp_relay_user, "'"))?>">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="input-label vst-text">
|
|
|
+ <?php print _('Password');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_smtp_relay_pass">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ <? } ?>
|
|
|
<tr>
|
|
|
<td>
|
|
|
<br>
|