|
|
@@ -120,8 +120,13 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr class="stats-auth" style="<?php if ($v_stats == 'none') { ?>display:none<?php } ?>">
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_stats_auth" <?php if (!empty($v_stats_user)) echo "checked=yes" ?> onclick="javascript:elementHideShow('statstable');"><?=_('Statistics Authorization');?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_stats_auth" id="v_stats_auth" <?php if (!empty($v_stats_user)) echo "checked=yes" ?> onclick="javascript:elementHideShow('statstable');">
|
|
|
+ <label for="v_stats_auth">
|
|
|
+ <?=_('Statistics Authorization');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr class="stats-auth">
|
|
|
@@ -151,77 +156,109 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v-redirect-checkbox" <?php if (!empty($v_redirect)) echo "checked=yes" ?> onclick="javascript:elementHideShow('v_redirect');"><?=_('Enable domain redirection');?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v-redirect-checkbox" id="v-redirect-checkbox" <?php if (!empty($v_redirect)) echo "checked=yes" ?> onclick="javascript:elementHideShow('v_redirect');">
|
|
|
+ <label for="v-redirect-checkbox">
|
|
|
+ <?=_('Enable domain redirection');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="step-left">
|
|
|
- <table style="display:<?php if (empty($v_redirect)) { echo 'none';} else {echo 'block';}?> ;" id="v_redirect">
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <label><input type="radio" name="v-redirect" value="<?='www.'.htmlentities($v_domain);?>" <?php if ($v_redirect == "www.".$v_domain) echo "checked"; ?> class="v-redirect-custom-value"><?=sprintf(_('Redirect visitors to %s'),"www.".htmlentities($v_domain));?></label></input><br />
|
|
|
- <label><input type="radio" name="v-redirect" value="<?=htmlentities($v_domain);?>" <?php if( $v_redirect == $v_domain) echo "checked";?> class="v-redirect-custom-value"><?=sprintf(_('Redirect visitors to %s'),htmlentities($v_domain));?></label></input><br />
|
|
|
- <label><input type="radio" name="v-redirect" value="custom" <?php if( !empty($v_redirect_custom)) echo "checked";?> class="v-redirect-custom-value"><?=_("Redirect visitors to a custom domain or web address");?></label></input>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <table id="custom_redirect" style="margin-left: 22px; display:<?php if (empty($v_redirect_custom)) { echo 'none';} else {echo 'block';}?> ;">
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?=_('Target domain or URL');?>:
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <input type="text" name="v-redirect-custom" class="vst-input" value="<?=$v_redirect_custom;?>" />
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <?=_('Status code');?>:
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <select class="vst-list" name="v-redirect-code">
|
|
|
- <?php foreach ($redirect_code_options as $status_code): ?>
|
|
|
- <option value="<?=$status_code;?>"
|
|
|
- <?=($v_redirect_code === $status_code || (empty($v_redirect_code) && $status_code === $v_redirect_code))?' selected="selected" ':''; ?>>
|
|
|
- <?=$status_code;?>
|
|
|
- </option>
|
|
|
- <?php endforeach; ?>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
+ <td class="step-left"> <!-- here -->
|
|
|
+ <div style="display:<?php if (empty($v_redirect)) { echo 'none';} else {echo 'block';}?> ;" id="v_redirect">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input v-redirect-custom-value" type="radio" name="v-redirect" id="v-redirect-radio-1" value="<?='www.'.htmlentities($v_domain);?>" <?php if ($v_redirect == "www.".$v_domain) echo "checked"; ?>>
|
|
|
+ <label for="v-redirect-radio-1">
|
|
|
+ <?=sprintf(_('Redirect visitors to %s'),"www.".htmlentities($v_domain));?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input v-redirect-custom-value" type="radio" name="v-redirect" id="v-redirect-radio-2" value="<?=htmlentities($v_domain);?>" <?php if( $v_redirect == $v_domain) echo "checked";?> >
|
|
|
+ <label class="form-check-label" for="v-redirect-radio-2">
|
|
|
+ <?=sprintf(_('Redirect visitors to %s'),htmlentities($v_domain));?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input v-redirect-custom-value" type="radio" name="v-redirect" id="v-redirect-radio-3" value="custom" <?php if( !empty($v_redirect_custom)) echo "checked";?>>
|
|
|
+ <label class="form-check-label" for="v-redirect-radio-3">
|
|
|
+ <?=_("Redirect visitors to a custom domain or web address");?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <table id="custom_redirect" style="margin-left: 22px; display:<?php if (empty($v_redirect_custom)) { echo 'none';} else {echo 'block';}?> ;">
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?=_('Target domain or URL');?>:
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <input type="text" name="v-redirect-custom" class="vst-input" value="<?=$v_redirect_custom;?>" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <?=_('Status code');?>:
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="vst-text input-label">
|
|
|
+ <select class="vst-list" name="v-redirect-code">
|
|
|
+ <?php foreach ($redirect_code_options as $status_code): ?>
|
|
|
+ <option value="<?=$status_code;?>"
|
|
|
+ <?=($v_redirect_code === $status_code || (empty($v_redirect_code) && $status_code === $v_redirect_code))?' selected="selected" ':''; ?>>
|
|
|
+ <?=$status_code;?>
|
|
|
+ </option>
|
|
|
+ <?php endforeach; ?>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_ssl" <?php if ($v_ssl == 'yes') echo "checked=yes" ?> onclick="javascript:App.Actions.WEB.toggle_ssl(this);"><?=_('SSL Support');?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_ssl" id="v_ssl" <?php if ($v_ssl == 'yes') echo "checked=yes" ?> onclick="javascript:App.Actions.WEB.toggle_ssl(this);">
|
|
|
+ <label for="v_ssl">
|
|
|
+ <?=_('SSL Support');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="step-left">
|
|
|
<table style="display:<?php if ($v_ssl == 'no' ) { echo 'none';} else {echo 'block';}?> ;" id="ssltable">
|
|
|
<tr>
|
|
|
- <td class="input-label vst-text">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_letsencrypt" id="letsencrypt" <?php if($v_letsencrypt == 'yes' || $v_letsencrypt == 'on') echo "checked=yes" ?> onclick="elementHideShow('letsinfo');App.Actions.WEB.toggle_letsencrypt(this)"><?=_('Lets Encrypt Support');?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_letsencrypt" id="letsencrypt" <?php if($v_letsencrypt == 'yes' || $v_letsencrypt == 'on') echo "checked=yes" ?> onclick="elementHideShow('letsinfo');App.Actions.WEB.toggle_letsencrypt(this)">
|
|
|
+ <label for="letsencrypt">
|
|
|
+ <?=_('Lets Encrypt Support');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="input-label vst-text">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_ssl_forcessl" id="v_ssl_forcessl" <?php if($v_ssl_forcessl == 'yes') echo "checked=yes" ?> onclick=""><?=_('Force SSL/HTTPS');?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_ssl_forcessl" id="v_ssl_forcessl" <?php if($v_ssl_forcessl == 'yes') echo "checked=yes" ?> onclick="">
|
|
|
+ <label for="v_ssl_forcessl">
|
|
|
+ <?=_('Force SSL/HTTPS');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="input-label vst-text">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_ssl_hsts" id="ssl_hsts" <?php if($v_ssl_hsts == 'yes') echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_hsts(this)"><?=_('Enable SSL HSTS');?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_ssl_hsts" id="ssl_hsts" <?php if($v_ssl_hsts == 'yes') echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_hsts(this)">
|
|
|
+ <label for="ssl_hsts">
|
|
|
+ <?=_('Enable SSL HSTS');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr style="display: none;">
|
|
|
@@ -381,8 +418,16 @@
|
|
|
</tr>
|
|
|
<?php if($_SESSION['WEB_SYSTEM'] == 'nginx'){?>
|
|
|
<tr>
|
|
|
- <td class="vst-text">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_nginx_cache_check" <?php if ($v_nginx_cache == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('v_nginx_duration');"><?=_('Enable FastCGI Cache'); ?> <a href="https://docs.hestiacp.com/admin_docs/web/fastcgi.html#nginx-fastcgi-cache" target="_blank"><i class="fas fa-question-circle"></i></a></label>
|
|
|
+ <td>
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_nginx_cache_check" id="v_nginx_cache_check" <?php if ($v_nginx_cache == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('v_nginx_duration');">
|
|
|
+ <label for="v_nginx_cache_check">
|
|
|
+ <?=_('Enable FastCGI Cache'); ?>
|
|
|
+ <a href="https://docs.hestiacp.com/admin_docs/web/fastcgi.html#nginx-fastcgi-cache" target="_blank">
|
|
|
+ <i class="fas fa-question-circle"></i>
|
|
|
+ </a>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
@@ -426,8 +471,13 @@
|
|
|
<?php }?>
|
|
|
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
|
|
|
<tr style="display: none;">
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_proxy" <?php if (!empty($v_proxy)) echo "checked=yes" ?> onclick="javascript:elementHideShow('proxytable');"><?=_('Proxy Support') . "<span class='optional'>" . strtoupper($_SESSION['PROXY_SYSTEM']) . "</span>";?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_proxy" id="v_proxy" <?php if (!empty($v_proxy)) echo "checked=yes" ?> onclick="javascript:elementHideShow('proxytable');">
|
|
|
+ <label for="v_proxy">
|
|
|
+ <?=_('Proxy Support') . "<span class='optional'>" . strtoupper($_SESSION['PROXY_SYSTEM']) . "</span>";?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
@@ -473,8 +523,13 @@
|
|
|
<?php } ?>
|
|
|
<?php } ?>
|
|
|
<tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_custom_doc_root_check" <?php if (!empty($v_custom_doc_root)) echo "checked=yes" ?> onclick="javascript:elementHideShow('v_custom_doc_root');"><?=_('Custom document root');?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_custom_doc_root_check" id="v_custom_doc_root_check" <?php if (!empty($v_custom_doc_root)) echo "checked=yes" ?> onclick="javascript:elementHideShow('v_custom_doc_root');">
|
|
|
+ <label for="v_custom_doc_root_check">
|
|
|
+ <?=_('Custom document root');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
@@ -519,8 +574,13 @@
|
|
|
</tr>
|
|
|
<?php if (in_array($_SESSION['FTP_SYSTEM'], array('vsftpd', 'proftpd'))) { ?>
|
|
|
<tr>
|
|
|
- <td class="vst-text input-label">
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" name="v_ftp" <?php if (!empty($v_ftp_user)) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_additional_ftp_accounts(this)"><?=_('Additional FTP Account');?></label>
|
|
|
+ <td class="input-label">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_ftp" id="v_ftp" <?php if (!empty($v_ftp_user)) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_additional_ftp_accounts(this)">
|
|
|
+ <label for="v_ftp">
|
|
|
+ <?=_('Additional FTP Account');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|