|
|
@@ -55,215 +55,30 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_package" value="<?=htmlentities(trim($v_package, "'"))?>" disabled >
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_package" value="<?=htmlentities(trim($v_package, "'"))?>" disabled>
|
|
|
<input type="hidden" name="v_package" value="<?=htmlentities(trim($v_package, "'"))?>">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="vst-text input-label">
|
|
|
- <?php print _('Web Template') . " <span class='optional'> " .strtoupper($_SESSION['WEB_SYSTEM']) . "</span>";?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <select class="vst-list" name="v_web_template">
|
|
|
- <?php
|
|
|
- foreach ($web_templates as $key => $value) {
|
|
|
- echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
|
|
|
- if ((!empty($v_web_template)) && ( $value == $v_web_template)){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- if ((!empty($v_web_template)) && ( $value == $_POST['v_web_template'])){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- echo ">".htmlentities($value)."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Backend Template') . "<span class='optional'>" .strtoupper($_SESSION['WEB_BACKEND']) . "</span>";?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <select class="vst-list" name="v_backend_template">
|
|
|
- <?php
|
|
|
- foreach ($backend_templates as $key => $value) {
|
|
|
- echo "\t\t\t\t<option value=\"".$value."\"";
|
|
|
- if ((!empty($v_backend_template)) && ( $value == $v_backend_template)){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- if ((!empty($v_backend_template)) && ( $value == $_POST['v_backend_template'])){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- echo ">".htmlentities($value)."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <?php echo ""; }?>
|
|
|
- <?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Proxy Template') . "<span class='optional'>" .strtoupper($_SESSION['PROXY_SYSTEM']) . "</span>";?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <select class="vst-list" name="v_proxy_template">
|
|
|
- <?php
|
|
|
- foreach ($proxy_templates as $key => $value) {
|
|
|
- echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
|
|
|
- if ((!empty($v_proxy_template)) && ( $value == $v_proxy_template)){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- if ((!empty($v_proxy_template)) && ( $value == $_POST['v_proxy_template'])){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- echo ">".htmlentities($value)."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <?php echo ""; }?>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('DNS Template') . "<span class='optional'>" .strtoupper($_SESSION['DNS_SYSTEM']) . "</span>";?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <select class="vst-list" name="v_dns_template">
|
|
|
- <?php
|
|
|
- foreach ($dns_templates as $key => $value) {
|
|
|
- echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
|
|
|
- if ((!empty($v_dns_template)) && ( $value == $v_dns_template)){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- if ((!empty($v_dns_template)) && ( $value == $_POST['v_dns_template'])){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- echo ">".htmlentities($value)."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('SSH Access');?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <select class="vst-list" name="v_shell">
|
|
|
- <?php
|
|
|
- foreach ($shells as $key => $value) {
|
|
|
- echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
|
|
|
- if ((!empty($v_shell)) && ( $value == $v_shell)){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- if ((!empty($v_shell)) && ( $value == $_POST['v_shell'])){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- echo ">".htmlentities($value)."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Web Domains');?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_web_domains" value="<?=htmlentities(trim($v_web_domains, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-web-domains"></i>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Web Aliases');?> <span class="optional">(<?=_('per domain')?>)</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_web_aliases" value="<?=htmlentities(trim($v_web_aliases, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-web-aliases"></i>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('DNS domains');?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_dns_domains" value="<?=htmlentities(trim($v_dns_domains, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-dns-domain"></i>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('DNS records');?> <span class="optional">(<?=_('per domain')?>)</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_dns_records" value="<?=htmlentities(trim($v_dns_records, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-dns-records"></i>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Mail Domains');?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_mail_domains" value="<?=htmlentities(trim($v_mail_domains, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-mail-domains"></i>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Mail Accounts');?> <span class="optional">(<?=_('per domain')?>)</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_mail_accounts" value="<?=htmlentities(trim($v_mail_accounts, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-mail-accounts"></i>
|
|
|
- <td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Databases');?>
|
|
|
+ <?php print _('Quota');?> <span class="optional">(<?=_('in megabytes')?>)</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_databases" value="<?=htmlentities(trim($v_databases, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-databases"></i>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_disk_quota" value="<?=htmlentities(trim($v_disk_quota, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-disk-quota"></i>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="vst-text input-label">
|
|
|
- <?php print _('Cron Jobs');?>
|
|
|
+ <?php print _('Bandwidth');?> <span class="optional">(<?=_('in megabytes')?>)</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_cron_jobs" value="<?=htmlentities(trim($v_cron_jobs, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-cron-jobs"></i>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_bandwidth" value="<?=htmlentities(trim($v_bandwidth, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-bandwidth"></i>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
@@ -277,100 +92,343 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Quota');?> <span class="optional">(<?=_('in megabytes')?>)</span>
|
|
|
+ <td class="section-title" onclick="javascript:elementHideShow('web-options')">
|
|
|
+ <?=_('Web');?>
|
|
|
+ </td>
|
|
|
+ <td class="section-hide-button">
|
|
|
+ <a href="javascript:elementHideShow('web-options');"><i class="fas fa-minus-square status-icon dim maroon"></i></a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_disk_quota" value="<?=htmlentities(trim($v_disk_quota, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-disk-quota"></i>
|
|
|
+ <table id="web-options" style="display: none;">
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label step-top">
|
|
|
+ <?php print _('Web Domains');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_web_domains" value="<?=htmlentities(trim($v_web_domains, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-web-domains"></i>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('Web Aliases');?> <span class="optional">(<?=_('per domain')?>)</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_web_aliases" value="<?=htmlentities(trim($v_web_aliases, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-web-aliases"></i>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('Web Template') . " <span class='optional'> " .strtoupper($_SESSION['WEB_SYSTEM']) . "</span>";?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <select class="vst-list" name="v_web_template">
|
|
|
+ <?php
|
|
|
+ foreach ($web_templates as $key => $value) {
|
|
|
+ echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
|
|
|
+ if ((!empty($v_web_template)) && ( $value == $v_web_template)){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ if ((!empty($v_web_template)) && ( $value == $_POST['v_web_template'])){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ echo ">".htmlentities($value)."</option>\n";
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('Backend Template') . "<span class='optional'>" .strtoupper($_SESSION['WEB_BACKEND']) . "</span>";?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <select class="vst-list" name="v_backend_template">
|
|
|
+ <?php
|
|
|
+ foreach ($backend_templates as $key => $value) {
|
|
|
+ echo "\t\t\t\t<option value=\"".$value."\"";
|
|
|
+ if ((!empty($v_backend_template)) && ( $value == $v_backend_template)){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ if ((!empty($v_backend_template)) && ( $value == $_POST['v_backend_template'])){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ echo ">".htmlentities($value)."</option>\n";
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php echo ""; }?>
|
|
|
+ <?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('Proxy Template') . "<span class='optional'>" .strtoupper($_SESSION['PROXY_SYSTEM']) . "</span>";?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <select class="vst-list" name="v_proxy_template">
|
|
|
+ <?php
|
|
|
+ foreach ($proxy_templates as $key => $value) {
|
|
|
+ echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
|
|
|
+ if ((!empty($v_proxy_template)) && ( $value == $v_proxy_template)){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ if ((!empty($v_proxy_template)) && ( $value == $_POST['v_proxy_template'])){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ echo ">".htmlentities($value)."</option>\n";
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('Databases');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_databases" value="<?=htmlentities(trim($v_databases, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-databases"></i>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <?php echo ""; }?>
|
|
|
<tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Bandwidth');?> <span class="optional">(<?=_('in megabytes')?>)</span>
|
|
|
+ <td class="section-title" onclick="javascript:elementHideShow('dns-options')">
|
|
|
+ <?=_('DNS');?>
|
|
|
</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_bandwidth" value="<?=htmlentities(trim($v_bandwidth, "'"))?>">
|
|
|
- <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-bandwidth"></i>
|
|
|
+ <td class="section-hide-button">
|
|
|
+ <a href="javascript:elementHideShow('dns-options');"><i class="fas fa-minus-square status-icon dim maroon"></i></a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <?php if ((isset($_SESSION['DNS_SYSTEM'])) && (!empty($_SESSION['DNS_SYSTEM']))) {?>
|
|
|
<tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?php print _('Name Servers');?>
|
|
|
+ <td>
|
|
|
+ <table id="dns-options" style="display: none;">
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label step-top">
|
|
|
+ <?php print _('DNS Template') . "<span class='optional'>" .strtoupper($_SESSION['DNS_SYSTEM']) . "</span>";?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <select class="vst-list" name="v_dns_template">
|
|
|
+ <?php
|
|
|
+ foreach ($dns_templates as $key => $value) {
|
|
|
+ echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
|
|
|
+ if ((!empty($v_dns_template)) && ( $value == $v_dns_template)){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ if ((!empty($v_dns_template)) && ( $value == $_POST['v_dns_template'])){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ echo ">".htmlentities($value)."</option>\n";
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('DNS domains');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_dns_domains" value="<?=htmlentities(trim($v_dns_domains, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-dns-domain"></i>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('DNS records');?> <span class="optional">(<?=_('per domain')?>)</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_dns_records" value="<?=htmlentities(trim($v_dns_records, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-dns-records"></i>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <?php if ((isset($_SESSION['DNS_SYSTEM'])) && (!empty($_SESSION['DNS_SYSTEM']))) {?>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('Name Servers');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>">
|
|
|
+ <span class="remove-ns"><i class="fas fa-trash status-icon dim red"></i></span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>">
|
|
|
+ <span class="remove-ns"><i class="fas fa-trash status-icon dim red"></i></span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <? if($v_ns3)
|
|
|
+ echo '<tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'">
|
|
|
+ <span class="remove-ns"><i class="fas fa-trash status-icon dim red"></i></span>
|
|
|
+ </td>
|
|
|
+ </tr>';
|
|
|
+
|
|
|
+ if($v_ns4)
|
|
|
+ echo '<tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'">
|
|
|
+ <span class="remove-ns"><i class="fas fa-trash status-icon dim red"></i></span>
|
|
|
+ </td>
|
|
|
+ </tr>';
|
|
|
+
|
|
|
+ if($v_ns5)
|
|
|
+ echo '<tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'">
|
|
|
+ <span class="remove-ns"><i class="fas fa-trash status-icon dim red"></i></span>
|
|
|
+ </td>
|
|
|
+ </tr>';
|
|
|
+
|
|
|
+ if($v_ns6)
|
|
|
+ echo '<tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'">
|
|
|
+ <span class="remove-ns"><i class="fas fa-trash status-icon dim red"></i></span>
|
|
|
+ </td>
|
|
|
+ </tr>';
|
|
|
+
|
|
|
+ if($v_ns7)
|
|
|
+ echo '<tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'">
|
|
|
+ <span class="remove-ns"><i class="fas fa-trash status-icon dim red"></i></span>
|
|
|
+ </td>
|
|
|
+ </tr>';
|
|
|
+
|
|
|
+ if($v_ns8)
|
|
|
+ echo '<tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'">
|
|
|
+ <span class="remove-ns"><i class="fas fa-trash status-icon dim red"></i></span>
|
|
|
+ </td>
|
|
|
+ </tr>';
|
|
|
+ ?>
|
|
|
+
|
|
|
+ <tr class="add-ns" <? if($v_ns8) echo 'style="display:none;"'; ?> >
|
|
|
+ <td class="step-top-small">
|
|
|
+ <span class="add-ns-button additional-control add"><?=_('Add one more Name Server')?></span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="section-title" onclick="javascript:elementHideShow('mail-options')">
|
|
|
+ <?=_('Mail');?>
|
|
|
+ </td>
|
|
|
+ <td class="section-hide-button">
|
|
|
+ <a href="javascript:elementHideShow('mail-options');"><i class="fas fa-minus-square status-icon dim maroon"></i></a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>">
|
|
|
- <span class="remove-ns additional-control delete"><?=_('delete')?></span>
|
|
|
+ <table id="mail-options" style="display: none;">
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label step-top">
|
|
|
+ <?php print _('Mail Domains');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_mail_domains" value="<?=htmlentities(trim($v_mail_domains, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-mail-domains"></i>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('Mail Accounts');?> <span class="optional">(<?=_('per domain')?>)</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_mail_accounts" value="<?=htmlentities(trim($v_mail_accounts, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-mail-accounts"></i>
|
|
|
+ <td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="section-title" onclick="javascript:elementHideShow('system-options')">
|
|
|
+ <?=_('System');?>
|
|
|
+ </td>
|
|
|
+ <td class="section-hide-button">
|
|
|
+ <a href="javascript:elementHideShow('system-options');"><i class="fas fa-minus-square status-icon dim maroon"></i></a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>">
|
|
|
- <span class="remove-ns additional-control delete"><?=_('delete')?></span>
|
|
|
+ <table id="system-options" style="display: none;">
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label step-top">
|
|
|
+ <?php print _('Cron Jobs');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <input type="text" size="20" class="vst-input" name="v_cron_jobs" value="<?=htmlentities(trim($v_cron_jobs, "'"))?>">
|
|
|
+ <i class="unlim-trigger fas fa-infinity" title="<?=_('Unlimited')?>" id="unlim-cron-jobs"></i>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?php print _('SSH Access');?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <select class="vst-list" name="v_shell">
|
|
|
+ <?php
|
|
|
+ foreach ($shells as $key => $value) {
|
|
|
+ echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
|
|
|
+ if ((!empty($v_shell)) && ( $value == $v_shell)){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ if ((!empty($v_shell)) && ( $value == $_POST['v_shell'])){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ echo ">".htmlentities($value)."</option>\n";
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <? if($v_ns3)
|
|
|
- echo '<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'">
|
|
|
- <span class="remove-ns additional-control delete">'._('delete').'</span>
|
|
|
- </td>
|
|
|
- </tr>';
|
|
|
-
|
|
|
- if($v_ns4)
|
|
|
- echo '<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'">
|
|
|
- <span class="remove-ns additional-control delete">'._('delete').'</span>
|
|
|
- </td>
|
|
|
- </tr>';
|
|
|
-
|
|
|
- if($v_ns5)
|
|
|
- echo '<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'">
|
|
|
- <span class="remove-ns additional-control delete">'._('delete').'</span>
|
|
|
- </td>
|
|
|
- </tr>';
|
|
|
-
|
|
|
- if($v_ns6)
|
|
|
- echo '<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'">
|
|
|
- <span class="remove-ns additional-control delete">'._('delete').'</span>
|
|
|
- </td>
|
|
|
- </tr>';
|
|
|
-
|
|
|
- if($v_ns7)
|
|
|
- echo '<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'">
|
|
|
- <span class="remove-ns additional-control delete">'._('delete').'</span>
|
|
|
- </td>
|
|
|
- </tr>';
|
|
|
-
|
|
|
- if($v_ns8)
|
|
|
- echo '<tr>
|
|
|
- <td>
|
|
|
- <input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'">
|
|
|
- <span class="remove-ns additional-control delete">'._('delete').'</span>
|
|
|
- </td>
|
|
|
- </tr>';
|
|
|
- ?>
|
|
|
-
|
|
|
- <tr class="add-ns" <? if($v_ns8) echo 'style="display:none;"'; ?> >
|
|
|
- <td class="step-top-small">
|
|
|
- <span class="add-ns-button additional-control add"><?=_('Add one more Name Server')?></span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <?php } ?>
|
|
|
</table>
|
|
|
<table class="data-col2"></table>
|
|
|
</td>
|