|
|
@@ -23,8 +23,8 @@
|
|
|
<input type="hidden" name="token" value="<?=$_SESSION['token']?>">
|
|
|
<input type="hidden" name="save" value="save">
|
|
|
|
|
|
- <div class="app-form">
|
|
|
- <h1 class="page-title"><?=_('Configuring Server');?></h1>
|
|
|
+ <div class="form-container">
|
|
|
+ <h1 class="form-title"><?=_('Configuring Server');?></h1>
|
|
|
<?php show_alert_message($_SESSION);?>
|
|
|
<div class="u-wide-input-width">
|
|
|
|
|
|
@@ -34,69 +34,71 @@
|
|
|
<i class="fas fa-cog"></i><b><?=_('Basic options');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="basic" class="u-pl50 u-mb20 u-input-width" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_hostname" class="form-label"><?=_('Hostname');?></label>
|
|
|
- <input type="text" class="form-control" name="v_hostname" id="v_hostname" value="<?=htmlentities(trim($v_hostname, "'"))?>">
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_timezone" class="form-label"><?=_('Time Zone');?></label>
|
|
|
- <select class="form-select" name="v_timezone" id="v_timezone">
|
|
|
- <?php
|
|
|
- foreach ($v_timezones as $key => $value) {
|
|
|
- echo "\t\t\t\t<option value=\"".$key."\"";
|
|
|
- if ((!empty($v_timezone)) && ( $key == $v_timezone)){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- if($key == "UTC" && $v_timezone == "Etc/UTC"){
|
|
|
- echo ' selected' ;
|
|
|
- }
|
|
|
- echo ">".$value."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_theme" class="form-label"><?=_('Theme');?></label>
|
|
|
- <select class="form-select" name="v_theme" id="v_theme">
|
|
|
- <?php
|
|
|
- foreach ($theme as $key => $value) {
|
|
|
- echo "\t\t\t\t<option value=\"".$value."\"";
|
|
|
- if (($value == $_SESSION['THEME'])){
|
|
|
- echo ' selected' ;
|
|
|
+ <div id="basic" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
+ <div class="u-input-width">
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_hostname" class="form-label"><?=_('Hostname');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_hostname" id="v_hostname" value="<?=htmlentities(trim($v_hostname, "'"))?>">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_timezone" class="form-label"><?=_('Time Zone');?></label>
|
|
|
+ <select class="form-select" name="v_timezone" id="v_timezone">
|
|
|
+ <?php
|
|
|
+ foreach ($v_timezones as $key => $value) {
|
|
|
+ echo "\t\t\t\t<option value=\"".$key."\"";
|
|
|
+ if ((!empty($v_timezone)) && ( $key == $v_timezone)){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ if($key == "UTC" && $v_timezone == "Etc/UTC"){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ echo ">".$value."</option>\n";
|
|
|
}
|
|
|
- echo ">".$value."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="form-check u-mb20">
|
|
|
- <input class="form-check-input" type="checkbox" name="v_policy_user_change_theme" id="v_policy_user_change_theme" <?php if ((isset($_SESSION['POLICY_USER_CHANGE_THEME'])) && (!empty($_SESSION['POLICY_USER_CHANGE_THEME'])) && ($_SESSION['POLICY_USER_CHANGE_THEME'] == "no")) echo 'checked' ?>>
|
|
|
- <label for="v_policy_user_change_theme">
|
|
|
- <?=_('Set as selected theme for all users');?>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_language" class="form-label"><?=_('Default Language');?></label>
|
|
|
- <select class="form-select" name="v_language" id="v_language">
|
|
|
- <?php
|
|
|
- foreach ($languages as $key => $value) {
|
|
|
- echo "\n\t\t\t\t\t\t\t\t\t<option value=\"".$key."\"";
|
|
|
- if (( $key == $_SESSION['LANGUAGE'] && (empty($v_language)) )) {
|
|
|
- echo 'selected' ;
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_theme" class="form-label"><?=_('Theme');?></label>
|
|
|
+ <select class="form-select" name="v_theme" id="v_theme">
|
|
|
+ <?php
|
|
|
+ foreach ($theme as $key => $value) {
|
|
|
+ echo "\t\t\t\t<option value=\"".$value."\"";
|
|
|
+ if (($value == $_SESSION['THEME'])){
|
|
|
+ echo ' selected' ;
|
|
|
+ }
|
|
|
+ echo ">".$value."</option>\n";
|
|
|
}
|
|
|
- echo ">".htmlentities($value)."</option>\n";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <div class="form-check">
|
|
|
- <input class="form-check-input" type="checkbox" name="v_language_update" id="v_language_update">
|
|
|
- <label for="v_language_update">
|
|
|
- <?=_('Set as default language for all users');?>
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-check u-mb20">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_policy_user_change_theme" id="v_policy_user_change_theme" <?php if ((isset($_SESSION['POLICY_USER_CHANGE_THEME'])) && (!empty($_SESSION['POLICY_USER_CHANGE_THEME'])) && ($_SESSION['POLICY_USER_CHANGE_THEME'] == "no")) echo 'checked' ?>>
|
|
|
+ <label for="v_policy_user_change_theme">
|
|
|
+ <?=_('Set as selected theme for all users');?>
|
|
|
</label>
|
|
|
</div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_language" class="form-label"><?=_('Default Language');?></label>
|
|
|
+ <select class="form-select" name="v_language" id="v_language">
|
|
|
+ <?php
|
|
|
+ foreach ($languages as $key => $value) {
|
|
|
+ echo "\n\t\t\t\t\t\t\t\t\t<option value=\"".$key."\"";
|
|
|
+ if (( $key == $_SESSION['LANGUAGE'] && (empty($v_language)) )) {
|
|
|
+ echo 'selected' ;
|
|
|
+ }
|
|
|
+ echo ">".htmlentities($value)."</option>\n";
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="v_language_update" id="v_language_update">
|
|
|
+ <label for="v_language_update">
|
|
|
+ <?=_('Set as default language for all users');?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -106,14 +108,14 @@
|
|
|
<i class="fas fa-code-branch"></i><b><?=_('Updates');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="version" class="u-pl50 u-mb20" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
+ <div id="version" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
<p class="u-mb10">
|
|
|
<?=_('Version'); ?>: <span class="optional"><?=$_SESSION['VERSION'];?></span>
|
|
|
</p>
|
|
|
<?php if ($_SESSION['RELEASE_BRANCH'] !== 'release') {?>
|
|
|
<p><?=_('Release'); ?>: <span class="optional"><?=$_SESSION['RELEASE_BRANCH'];?></span></p>
|
|
|
<?php } ?>
|
|
|
- <p class="u-mb10"><?=_('Options'); ?></p>
|
|
|
+ <p class="u-mb5"><?=_('Options'); ?></p>
|
|
|
<div class="form-check">
|
|
|
<input class="form-check-input" type="checkbox" name="v_debug_mode" id="v_debug_mode" <?php if ((isset($_SESSION['DEBUG_MODE'])) && (!empty($_SESSION['DEBUG_MODE'])) && ($_SESSION['DEBUG_MODE'] == "true")) echo 'checked' ?>>
|
|
|
<label for="v_debug_mode">
|
|
|
@@ -147,75 +149,77 @@
|
|
|
<i class="fas fa-globe-americas"></i><b><?=_('Web Server');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="web" class="u-pl50 u-mb20 u-input-width" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
- <?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
|
|
|
- <p>
|
|
|
- <?=_('Proxy Server');?>: <span class="optional"><?=$_SESSION['PROXY_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['PROXY_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
|
|
|
- </p>
|
|
|
- <?php } ?>
|
|
|
- <?php if (!empty($_SESSION['WEB_SYSTEM'])) { ?>
|
|
|
- <p>
|
|
|
- <?=_('Web Server');?>: <span class="optional"><?=$_SESSION['WEB_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['WEB_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
|
|
|
- </p>
|
|
|
- <?php } ?>
|
|
|
- <?php if (!empty($_SESSION['WEB_BACKEND'])) { ?>
|
|
|
- <p>
|
|
|
- <?=_('Backend Server');?>: <span class="optional"><?=$_SESSION['WEB_BACKEND']; ?> <a href="/edit/server/<? echo $_SESSION['WEB_BACKEND'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
|
|
|
- </p>
|
|
|
- <?php } ?>
|
|
|
- <?php if (!empty($_SESSION['WEB_BACKEND_POOL'])) { ?>
|
|
|
- <p>
|
|
|
- <?=_('Backend Pool Mode');?>: <span class="optional"><?=$_SESSION['WEB_BACKEND_POOL']; ?></span>
|
|
|
- </p>
|
|
|
- <?php } ?>
|
|
|
- <?php if(count($v_php_versions)): ?>
|
|
|
- <div class="u-pt18">
|
|
|
- <p class="u-mb10"><?=_('Enabled multi PHP versions');?></p>
|
|
|
- <div class="alert alert-info alert-with-icon u-mb10" role="alert">
|
|
|
- <i class="fas fa-info"></i>
|
|
|
- <p><?=_('Please wait while php is installed or removed');?></p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <?php foreach($v_php_versions as $php_version): ?>
|
|
|
- <div class="form-check">
|
|
|
- <input class="form-check-input" type="checkbox"
|
|
|
- <?=$php_version->installed?'checked':''; ?>
|
|
|
- <?=$php_version->protected?'disabled':''; ?>
|
|
|
- id="<?=$php_version->name?>"
|
|
|
- name="v_php_versions[<?=$php_version->tpl?>]">
|
|
|
- <label for="<?=$php_version->name?>">
|
|
|
- <?=$php_version->name?>
|
|
|
- </label>
|
|
|
+ <div id="web" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
+ <div class="u-input-width">
|
|
|
+ <?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
|
|
|
+ <p>
|
|
|
+ <?=_('Proxy Server');?>: <span class="optional"><?=$_SESSION['PROXY_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['PROXY_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
|
|
|
+ </p>
|
|
|
+ <?php } ?>
|
|
|
+ <?php if (!empty($_SESSION['WEB_SYSTEM'])) { ?>
|
|
|
+ <p>
|
|
|
+ <?=_('Web Server');?>: <span class="optional"><?=$_SESSION['WEB_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['WEB_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
|
|
|
+ </p>
|
|
|
+ <?php } ?>
|
|
|
+ <?php if (!empty($_SESSION['WEB_BACKEND'])) { ?>
|
|
|
+ <p>
|
|
|
+ <?=_('Backend Server');?>: <span class="optional"><?=$_SESSION['WEB_BACKEND']; ?> <a href="/edit/server/<? echo $_SESSION['WEB_BACKEND'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
|
|
|
+ </p>
|
|
|
+ <?php } ?>
|
|
|
+ <?php if (!empty($_SESSION['WEB_BACKEND_POOL'])) { ?>
|
|
|
+ <p>
|
|
|
+ <?=_('Backend Pool Mode');?>: <span class="optional"><?=$_SESSION['WEB_BACKEND_POOL']; ?></span>
|
|
|
+ </p>
|
|
|
+ <?php } ?>
|
|
|
+ <?php if(count($v_php_versions)): ?>
|
|
|
+ <div class="u-mt15">
|
|
|
+ <p class="u-mb10"><?=_('Enabled multi PHP versions');?></p>
|
|
|
+ <div class="alert alert-info alert-with-icon u-mb10" role="alert">
|
|
|
+ <i class="fas fa-info"></i>
|
|
|
+ <p><?=_('Please wait while php is installed or removed');?></p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <?php foreach($php_version->usedby as $wd_user => $wd_domains ): ?>
|
|
|
- <?php foreach($wd_domains as $wd_domain ): ?>
|
|
|
- <p style="border: 1px lightgrey; padding:0 10px;">
|
|
|
- <span>
|
|
|
- <i class="fas fa-user"></i>
|
|
|
- <?=$wd_user;?>
|
|
|
- </span>
|
|
|
- <span class="optional" style="float:right"><?=$wd_domain;?></span>
|
|
|
- </p>
|
|
|
+ <?php foreach($v_php_versions as $php_version): ?>
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox"
|
|
|
+ <?=$php_version->installed?'checked':''; ?>
|
|
|
+ <?=$php_version->protected?'disabled':''; ?>
|
|
|
+ id="<?=$php_version->name?>"
|
|
|
+ name="v_php_versions[<?=$php_version->tpl?>]">
|
|
|
+ <label for="<?=$php_version->name?>">
|
|
|
+ <?=$php_version->name?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <?php foreach($php_version->usedby as $wd_user => $wd_domains ): ?>
|
|
|
+ <?php foreach($wd_domains as $wd_domain ): ?>
|
|
|
+ <p class="u-side-by-side" style="border: 1px lightgrey; padding:0 10px;">
|
|
|
+ <span>
|
|
|
+ <i class="fas fa-user"></i>
|
|
|
+ <?=$wd_user;?>
|
|
|
+ </span>
|
|
|
+ <span class="optional"><?=$wd_domain;?></span>
|
|
|
+ </p>
|
|
|
+ <?php endforeach; ?>
|
|
|
<?php endforeach; ?>
|
|
|
<?php endforeach; ?>
|
|
|
- <?php endforeach; ?>
|
|
|
- <?php endif; ?>
|
|
|
- <?php if(!empty($_SESSION['WEB_BACKEND'])){ ?>
|
|
|
- <div class="u-pt6 u-mb10">
|
|
|
- <label for="v_php_default_version" class="form-label"><?=_('System PHP version');?></label>
|
|
|
- <select class="form-select" name="v_php_default_version" id="v_php_default_version">
|
|
|
- <?php
|
|
|
- foreach ($v_php_versions as $php_version) {
|
|
|
- if ($php_version -> installed) {
|
|
|
- ?>
|
|
|
- <option value="<?=$php_version->version; ?>" <?php if($php_version->name == DEFAULT_PHP_VERSION){ echo "selected" ;}?> ><?=$php_version->name; ?></option>
|
|
|
- <?php
|
|
|
- }
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <?php } ?>
|
|
|
+ <?php endif; ?>
|
|
|
+ <?php if(!empty($_SESSION['WEB_BACKEND'])){ ?>
|
|
|
+ <div class="u-pt6 u-mb10">
|
|
|
+ <label for="v_php_default_version" class="form-label"><?=_('System PHP version');?></label>
|
|
|
+ <select class="form-select" name="v_php_default_version" id="v_php_default_version">
|
|
|
+ <?php
|
|
|
+ foreach ($v_php_versions as $php_version) {
|
|
|
+ if ($php_version -> installed) {
|
|
|
+ ?>
|
|
|
+ <option value="<?=$php_version->version; ?>" <?php if($php_version->name == DEFAULT_PHP_VERSION){ echo "selected" ;}?> ><?=$php_version->name; ?></option>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<!-- DNS Server tab -->
|
|
|
@@ -225,7 +229,7 @@
|
|
|
<i class="fas fa-atlas"></i><b><?=_('DNS Server');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="dns" class="u-pl50 u-mb20 u-input-width" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
+ <div id="dns" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
<p>
|
|
|
<?=_('DNS Server');?>: <span class="optional"><?=$_SESSION['DNS_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['DNS_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
|
|
|
</p>
|
|
|
@@ -237,7 +241,7 @@
|
|
|
foreach ($dns_cluster as $key => $value) {
|
|
|
$i++;
|
|
|
?>
|
|
|
- <div class="u-mb10">
|
|
|
+ <div class="u-input-width">
|
|
|
<label for="v_dns_remote_host" class="form-label"><?=_('Host'). ' #'.$i ?></label>
|
|
|
<input type="text" class="form-control" name="v_dns_remote_host" id="v_dns_remote_host" value="<?=$key; ?>" disabled>
|
|
|
</div>
|
|
|
@@ -252,7 +256,7 @@
|
|
|
<i class="fas fa-mail-bulk"></i><b><?=_('Mail Server');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="mail" class="u-pl50 u-mb20" style="display:<?php if (empty($v_mail_adv)) echo 'none';?> ;">
|
|
|
+ <div id="mail" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_mail_adv)) echo 'none';?> ;">
|
|
|
<p>
|
|
|
<?=_('Mail Server');?>: <span class="optional"><?=$_SESSION['MAIL_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['MAIL_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
|
|
|
</p>
|
|
|
@@ -267,7 +271,7 @@
|
|
|
</p>
|
|
|
<?php } ?>
|
|
|
<?php if($_SESSION['WEBMAIL_SYSTEM']){?>
|
|
|
- <div class="u-input-width u-mt20 u-mb10">
|
|
|
+ <div class="u-input-width u-mt15 u-mb10">
|
|
|
<label for="v_webmail_alias" class="form-label">
|
|
|
<?=_('Webmail URL');?> <span class="hint">(<?=$_SESSION['WEBMAIL_ALIAS'];?>.example.com)</span>
|
|
|
</label>
|
|
|
@@ -280,23 +284,25 @@
|
|
|
<?=_('Global SMTP Relay');?>
|
|
|
</label>
|
|
|
</div>
|
|
|
- <div id="smtp_relay_table" class="u-pl50 u-input-width" 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>
|
|
|
- <div class="u-pos-relative">
|
|
|
- <input type="text" class="form-control js-password-input" name="v_smtp_relay_pass" id="v_smtp_relay_pass">
|
|
|
+ <div id="smtp_relay_table" class="u-pl30" style="display:<?php if ($v_smtp_relay == 'true') {echo 'block';} else {echo 'none';} ?>;">
|
|
|
+ <div class="u-input-width">
|
|
|
+ <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>
|
|
|
+ <div class="u-pos-relative">
|
|
|
+ <input type="text" class="form-control js-password-input" name="v_smtp_relay_pass" id="v_smtp_relay_pass">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -310,7 +316,7 @@
|
|
|
<i class="fas fa-database"></i><b><?=_('Databases');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="db" class="u-pl50 u-mb20" style="display:<?php if (empty($v_db_adv)) echo 'none';?> ;">
|
|
|
+ <div id="db" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_db_adv)) echo 'none';?> ;">
|
|
|
<div class="u-input-width">
|
|
|
<div class="u-mb10">
|
|
|
<label for="v_mysql" class="form-label">
|
|
|
@@ -343,7 +349,7 @@
|
|
|
foreach ($v_mysql_hosts as $value) {
|
|
|
$i++;
|
|
|
?>
|
|
|
- <div class="u-input-width u-pl50">
|
|
|
+ <div class="u-input-width u-pl30">
|
|
|
<div class="u-mb10">
|
|
|
<label for="v_mysql_host" class="form-label"><?=_('Host'). ' #'.$i ?></label>
|
|
|
<input type="text" class="form-control" name="v_mysql_host" id="v_mysql_host" value="<?=$value['HOST']?>" disabled>
|
|
|
@@ -393,7 +399,7 @@
|
|
|
foreach ($v_pgsql_hosts as $value) {
|
|
|
$i++;
|
|
|
?>
|
|
|
- <div class="u-input-width u-pl50">
|
|
|
+ <div class="u-input-width u-pl30">
|
|
|
<div class="u-mb10">
|
|
|
<label for="v_pgsql_host" class="form-label"><?=_('Host'). ' #'.$i ?></label>
|
|
|
<input type="text" class="form-control" name="v_pgsql_host" id="v_pgsql_host" value="<?=$value['HOST']?>" disabled>
|
|
|
@@ -421,7 +427,7 @@
|
|
|
<i class="fas fa-undo"></i><b><?=_('Backups');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="backup" class="u-pl50 u-mb20" style="<?php if (empty($v_backup_adv)) echo 'display:none';?> ;">
|
|
|
+ <div id="backup" class="u-pl50 u-mt20 u-mb20" style="<?php if (empty($v_backup_adv)) echo 'display:none';?> ;">
|
|
|
<div class="u-input-width">
|
|
|
<div class="u-mb10">
|
|
|
<label for="v_backup" class="form-label"><?=_('Local backup');?></label>
|
|
|
@@ -462,64 +468,66 @@
|
|
|
</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="remote_backup" class="u-pl50 u-mb20 u-input-width" style="display:<?php if (empty($v_backup_remote_adv)) echo 'none';?> ;">
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="backup_type" class="form-label">
|
|
|
- <?=_('Protocol');?> <a target="_blank" href="http://docs.hestiacp.com/admin_docs/backups.html#what-kind-of-protocols-are-currently-supported"><i class="fas fa-question-circle"></i></a>
|
|
|
- </label>
|
|
|
- <select class="form-select" name="v_backup_type" id="backup_type">
|
|
|
- <option value='ftp'><?=_('ftp'); ?></option>
|
|
|
- <option value='sftp' <?php if((!empty($v_backup_type)) && (trim($v_backup_type,"'") == 'sftp' )) echo 'selected="selected"'; ?>><?=_('sftp'); ?></option>
|
|
|
- <option value="b2" <?php if((!empty($v_backup_type)) && (trim($v_backup_type,"'") == 'b2' )) echo 'selected="selected"'; ?>><?=_('Backblaze'); ?>
|
|
|
- <option value="rclone" <?php if((!empty($v_backup_type)) && (trim($v_backup_type,"'") == 'rclone' )) echo 'selected="selected"'; ?>><?=_('Rclone'); ?>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div id="backup_sftp" style="display: <?php if ((!empty($v_backup_type)) && !in_array(trim($v_backup_type, "'"),array('ftp','sftp'))){ echo 'none';} else {echo 'block';} ?>">
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_backup_host" class="form-label"><?=_('Host');?></label>
|
|
|
- <input type="text" class="form-control" name="v_backup_host" id="v_backup_host" value="<?=trim($v_backup_host, "'")?>">
|
|
|
- </div>
|
|
|
- <div class="u-mb20">
|
|
|
- <label for="v_backup_port" class="form-label"><?=_('Port');?></label>
|
|
|
- <input type="text" class="form-control" name="v_backup_port" id="v_backup_port" value="<?=trim($v_backup_port, "'")?>">
|
|
|
- </div>
|
|
|
+ <div id="remote_backup" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_backup_remote_adv)) echo 'none';?> ;">
|
|
|
+ <div class="u-input-width">
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_backup_username" class="form-label"><?=_('Username');?></label>
|
|
|
- <input type="text" class="form-control" name="v_backup_username" id="v_backup_username" value="<?=trim($v_backup_username, "'")?>">
|
|
|
+ <label for="backup_type" class="form-label">
|
|
|
+ <?=_('Protocol');?> <a target="_blank" href="http://docs.hestiacp.com/admin_docs/backups.html#what-kind-of-protocols-are-currently-supported"><i class="fas fa-question-circle"></i></a>
|
|
|
+ </label>
|
|
|
+ <select class="form-select" name="v_backup_type" id="backup_type">
|
|
|
+ <option value='ftp'><?=_('ftp'); ?></option>
|
|
|
+ <option value='sftp' <?php if((!empty($v_backup_type)) && (trim($v_backup_type,"'") == 'sftp' )) echo 'selected="selected"'; ?>><?=_('sftp'); ?></option>
|
|
|
+ <option value="b2" <?php if((!empty($v_backup_type)) && (trim($v_backup_type,"'") == 'b2' )) echo 'selected="selected"'; ?>><?=_('Backblaze'); ?>
|
|
|
+ <option value="rclone" <?php if((!empty($v_backup_type)) && (trim($v_backup_type,"'") == 'rclone' )) echo 'selected="selected"'; ?>><?=_('Rclone'); ?>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
- <div class="u-mb20">
|
|
|
- <label for="v_backup_password" class="form-label"><?=_('Password');?></label>
|
|
|
- <div class="u-pos-relative">
|
|
|
- <input type="text" class="form-control js-password-input" name="v_backup_password" id="v_backup_password" value="<?=trim($v_backup_password, "'")?>">
|
|
|
+ <div id="backup_sftp" style="display: <?php if ((!empty($v_backup_type)) && !in_array(trim($v_backup_type, "'"),array('ftp','sftp'))){ echo 'none';} else {echo 'block';} ?>">
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_backup_host" class="form-label"><?=_('Host');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_backup_host" id="v_backup_host" value="<?=trim($v_backup_host, "'")?>">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb20">
|
|
|
+ <label for="v_backup_port" class="form-label"><?=_('Port');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_backup_port" id="v_backup_port" value="<?=trim($v_backup_port, "'")?>">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_backup_username" class="form-label"><?=_('Username');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_backup_username" id="v_backup_username" value="<?=trim($v_backup_username, "'")?>">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb20">
|
|
|
+ <label for="v_backup_password" class="form-label"><?=_('Password');?></label>
|
|
|
+ <div class="u-pos-relative">
|
|
|
+ <input type="text" class="form-control js-password-input" name="v_backup_password" id="v_backup_password" value="<?=trim($v_backup_password, "'")?>">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_backup_bpath" class="form-label"><?=_('Directory');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_backup_bpath" id="v_backup_bpath" value="<?=trim($v_backup_bpath, "'")?>">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_backup_bpath" class="form-label"><?=_('Directory');?></label>
|
|
|
- <input type="text" class="form-control" name="v_backup_bpath" id="v_backup_bpath" value="<?=trim($v_backup_bpath, "'")?>">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div id="backup_bucket" style="display: <?php if ((empty($v_backup_type)) || !in_array(trim($v_backup_type, "'"),array('b2'))){ echo 'none';} else {echo 'block';} ?>">
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_backup_bucket" class="form-label"><?=_('Bucket');?></label>
|
|
|
- <input type="text" class="form-control" name="v_backup_bucket" id="v_backup_bucket" value="<?=trim($v_backup_bucket, "'")?>">
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_backup_application_id" class="form-label"><?=_('Key ID');?></label>
|
|
|
- <input type="text" class="form-control" name="v_backup_application_id" id="v_backup_application_id" value="<?=trim($v_backup_application_id, "'")?>">
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_backup_application_key" class="form-label"><?=_('Application Key');?></label>
|
|
|
- <input type="text" class="form-control" name="v_backup_application_key" id="v_backup_application_key" value="<?=trim($v_backup_application_key, "'")?>">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div id="backup_rclone" style="display: <?php if ((empty($v_backup_type)) || !in_array(trim($v_backup_type, "'"),array('rclone'))){ echo 'none';} else {echo 'block';} ?>">
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_rclone_host" class="form-label"><?=_('Host');?></label>
|
|
|
- <input type="text" class="form-control" name="v_rclone_host" id="v_rclone_host" value="<?=trim($v_rclone_host, "'")?>">
|
|
|
+ <div id="backup_bucket" style="display: <?php if ((empty($v_backup_type)) || !in_array(trim($v_backup_type, "'"),array('b2'))){ echo 'none';} else {echo 'block';} ?>">
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_backup_bucket" class="form-label"><?=_('Bucket');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_backup_bucket" id="v_backup_bucket" value="<?=trim($v_backup_bucket, "'")?>">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_backup_application_id" class="form-label"><?=_('Key ID');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_backup_application_id" id="v_backup_application_id" value="<?=trim($v_backup_application_id, "'")?>">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_backup_application_key" class="form-label"><?=_('Application Key');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_backup_application_key" id="v_backup_application_key" value="<?=trim($v_backup_application_key, "'")?>">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_rclone_path" class="form-label"><?=_('Directory');?></label>
|
|
|
- <input type="text" class="form-control" name="v_rclone_path" id="v_rclone_path" value="<?=trim($v_rclone_path, "'")?>">
|
|
|
+ <div id="backup_rclone" style="display: <?php if ((empty($v_backup_type)) || !in_array(trim($v_backup_type, "'"),array('rclone'))){ echo 'none';} else {echo 'block';} ?>">
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_rclone_host" class="form-label"><?=_('Host');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_rclone_host" id="v_rclone_host" value="<?=trim($v_rclone_host, "'")?>">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_rclone_path" class="form-label"><?=_('Directory');?></label>
|
|
|
+ <input type="text" class="form-control" name="v_rclone_path" id="v_rclone_path" value="<?=trim($v_rclone_path, "'")?>">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -531,78 +539,80 @@
|
|
|
<i class="fas fa-lock"></i><b><?=_('SSL');?><img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="ssl" class="u-pl50 u-mb20 u-input-width" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
- <div class="u-mb20">
|
|
|
- <label for="v_ssl_crt" class="form-label">
|
|
|
- <?=_('SSL Certificate');?>
|
|
|
- <span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?=htmlentities(trim($v_hostname,'"'));?>"><?=_('Generate CSR');?></a></span>
|
|
|
- </label>
|
|
|
- <textarea class="form-control u-min-height100 u-console" name="v_ssl_crt" id="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
|
|
|
- </div>
|
|
|
- <div class="u-mb20">
|
|
|
- <label for="v_ssl_key" class="form-label"><?=_('SSL Key');?></label>
|
|
|
- <textarea class="form-control u-min-height100 u-console" name="v_ssl_key" id="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
|
|
|
- </div>
|
|
|
- <table class="additional-info">
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <b><?=_('SUBJECT');?>:</b>
|
|
|
- </td>
|
|
|
- <td class="details">
|
|
|
- <?=$v_ssl_subject?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <?php if ($v_ssl_aliases){?>
|
|
|
+ <div id="ssl" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
+ <div class="u-input-width">
|
|
|
+ <div class="u-mb20">
|
|
|
+ <label for="v_ssl_crt" class="form-label">
|
|
|
+ <?=_('SSL Certificate');?>
|
|
|
+ <span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?=htmlentities(trim($v_hostname,'"'));?>"><?=_('Generate CSR');?></a></span>
|
|
|
+ </label>
|
|
|
+ <textarea class="form-control u-min-height100 u-console" name="v_ssl_crt" id="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb20">
|
|
|
+ <label for="v_ssl_key" class="form-label"><?=_('SSL Key');?></label>
|
|
|
+ <textarea class="form-control u-min-height100 u-console" name="v_ssl_key" id="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
|
|
|
+ </div>
|
|
|
+ <table class="additional-info">
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <b><?=_('Aliases');?>:</b>
|
|
|
+ <b><?=_('SUBJECT');?>:</b>
|
|
|
</td>
|
|
|
<td class="details">
|
|
|
- <?=$v_ssl_aliases?>
|
|
|
+ <?=$v_ssl_subject?>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <?php } ?>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <b><?=_('NOT_BEFORE');?>:</b>
|
|
|
- </td>
|
|
|
- <td class="details">
|
|
|
- <?=$v_ssl_not_before?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <b><?=_('NOT_AFTER');?>:</b>
|
|
|
- </td>
|
|
|
- <td class="details">
|
|
|
- <?=$v_ssl_not_after?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <b><?=_('SIGNATURE');?>:</b>
|
|
|
- </td>
|
|
|
- <td class="details">
|
|
|
- <?=$v_ssl_signature?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <b><?=_('PUB_KEY');?>:</b>
|
|
|
- </td>
|
|
|
- <td class="details">
|
|
|
- <?=$v_ssl_pub_key?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <b><?=_('ISSUER');?>:</b>
|
|
|
- </td>
|
|
|
- <td class="details">
|
|
|
- <?=$v_ssl_issuer?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
+ <?php if ($v_ssl_aliases){?>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <b><?=_('Aliases');?>:</b>
|
|
|
+ </td>
|
|
|
+ <td class="details">
|
|
|
+ <?=$v_ssl_aliases?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <b><?=_('NOT_BEFORE');?>:</b>
|
|
|
+ </td>
|
|
|
+ <td class="details">
|
|
|
+ <?=$v_ssl_not_before?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <b><?=_('NOT_AFTER');?>:</b>
|
|
|
+ </td>
|
|
|
+ <td class="details">
|
|
|
+ <?=$v_ssl_not_after?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <b><?=_('SIGNATURE');?>:</b>
|
|
|
+ </td>
|
|
|
+ <td class="details">
|
|
|
+ <?=$v_ssl_signature?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <b><?=_('PUB_KEY');?>:</b>
|
|
|
+ </td>
|
|
|
+ <td class="details">
|
|
|
+ <?=$v_ssl_pub_key?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <b><?=_('ISSUER');?>:</b>
|
|
|
+ </td>
|
|
|
+ <td class="details">
|
|
|
+ <?=$v_ssl_issuer?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<!-- Security tab -->
|
|
|
@@ -611,210 +621,214 @@
|
|
|
<i class="fas fa-key"></i><b><?=_('Security');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
</a>
|
|
|
</h2>
|
|
|
- <div id="security" class="u-pl50 u-mb20 u-input-width" style="<?php if (empty($v_security_adv)) echo 'display:none;';?>">
|
|
|
- <h3 class="section-title" onclick="javascript:elementHideShow('security-system-table',this);">
|
|
|
- <?=_('System');?>
|
|
|
- <i class="fas fa-plus-square status-icon dim maroon section-hide-button"></i>
|
|
|
- </h3>
|
|
|
- <div id="security-system-table" style="display: none;">
|
|
|
- <p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
- <?=_('API');?>
|
|
|
- </p>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="api" class="form-label"><?=_('Enable legacy API access');?></label>
|
|
|
- <select class="form-select" name="v_api" id="api">
|
|
|
- <option value="yes"><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['API'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="api-system" class="form-label"><?=_('Enable API access');?></label>
|
|
|
- <select class="form-select" name="v_api_system" id="api-system">
|
|
|
- <option value='0' <?php if(empty($_SESSION['API_SYSTEM']) || $_SESSION['API_SYSTEM'] == '0') echo 'selected' ?>><?=_('Disabled'); ?></option>
|
|
|
- <option value='1' <?php if($_SESSION['API_SYSTEM'] == '1') echo 'selected' ?>><?=_('Enabled for admin'); ?></option>
|
|
|
- <option value='2' <?php if($_SESSION['API_SYSTEM'] == '2') echo 'selected' ?>><?=_('Enabled for all users'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div id="security_ip" style="<?php if ($_SESSION['API'] == "no" && $_SESSION['API_SYSTEM'] == '0') echo 'display:none;';?>">
|
|
|
+ <div id="security" class="u-pl50 u-mb20" style="<?php if (empty($v_security_adv)) echo 'display:none;';?>">
|
|
|
+ <div class="u-input-width">
|
|
|
+ <h3 class="section-title" onclick="javascript:elementHideShow('security-system-table',this);">
|
|
|
+ <?=_('System');?>
|
|
|
+ <i class="fas fa-plus-square status-icon dim maroon section-hide-button"></i>
|
|
|
+ </h3>
|
|
|
+ <div id="security-system-table" style="display: none;">
|
|
|
+ <p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
+ <?=_('API');?>
|
|
|
+ </p>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="api" class="form-label"><?=_('Enable legacy API access');?></label>
|
|
|
+ <select class="form-select" name="v_api" id="api">
|
|
|
+ <option value="yes"><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['API'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="api-system" class="form-label"><?=_('Enable API access');?></label>
|
|
|
+ <select class="form-select" name="v_api_system" id="api-system">
|
|
|
+ <option value='0' <?php if(empty($_SESSION['API_SYSTEM']) || $_SESSION['API_SYSTEM'] == '0') echo 'selected' ?>><?=_('Disabled'); ?></option>
|
|
|
+ <option value='1' <?php if($_SESSION['API_SYSTEM'] == '1') echo 'selected' ?>><?=_('Enabled for admin'); ?></option>
|
|
|
+ <option value='2' <?php if($_SESSION['API_SYSTEM'] == '2') echo 'selected' ?>><?=_('Enabled for all users'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div id="security_ip" style="<?php if ($_SESSION['API'] == "no" && $_SESSION['API_SYSTEM'] == '0') echo 'display:none;';?>">
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_api_allowed_ip" class="form-label u-side-by-side">
|
|
|
+ <?=_('Allowed IP addresses for API');?> <span class="optional">1 IP address per line</span>
|
|
|
+ </label>
|
|
|
+ <textarea class="form-control" name="v_api_allowed_ip" id="v_api_allowed_ip"><?php
|
|
|
+ foreach(explode(',',$_SESSION['API_ALLOWED_IP']) as $ip ){
|
|
|
+ echo trim($ip)."\n";
|
|
|
+ }
|
|
|
+ ?></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
+ <?=_('Login');?>
|
|
|
+ </p>
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_api_allowed_ip" class="form-label" style="display: block">
|
|
|
- <?=_('Allowed IP addresses for API');?> <span class="optional" style="float: right">1 IP address per line</span>
|
|
|
+ <label for="v_login_style" class="form-label"><?=_('Login screen style');?></label>
|
|
|
+ <select class="form-select" name="v_login_style" id="v_login_style">
|
|
|
+ <option value="default"><?=_('Default'); ?></option>
|
|
|
+ <option value="old" <?php if($_SESSION['LOGIN_STYLE'] == 'old') echo 'selected' ?>><?=_('Old Style'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_policy_system_password_reset" class="form-label"><?=_('Allow users to reset their passwords');?></label>
|
|
|
+ <select class="form-select" name="v_policy_system_password_reset" id="v_policy_system_password_reset">
|
|
|
+ <option value="yes"><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_SYSTEM_PASSWORD_RESET'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb20">
|
|
|
+ <label for="v_inactive_session_timeout" class="form-label">
|
|
|
+ <?=_('Inactive session timeout');?> (<?=_('Minutes');?>)
|
|
|
</label>
|
|
|
- <textarea class="form-control" name="v_api_allowed_ip" id="v_api_allowed_ip"><?php
|
|
|
- foreach(explode(',',$_SESSION['API_ALLOWED_IP']) as $ip ){
|
|
|
- echo trim($ip)."\n";
|
|
|
- }
|
|
|
- ?></textarea>
|
|
|
+ <input type="text" class="form-control" name="v_inactive_session_timeout" id="v_inactive_session_timeout" value="<?=trim($_SESSION['INACTIVE_SESSION_TIMEOUT'], "'")?>">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_policy_csrf_strictness" class="form-label"><?=_('Prevent CSRF');?></label>
|
|
|
+ <select class="form-select" name="v_policy_csrf_strictness" id="v_policy_csrf_strictness">
|
|
|
+ <option value="0" <?php if($_SESSION['POLICY_CSRF_STRICTNESS'] == '0') echo 'selected' ?>><?=_('Disabled');?></option>
|
|
|
+ <option value="1" <?php if($_SESSION['POLICY_CSRF_STRICTNESS'] == '1') echo 'selected' ?>><?=_('Enabled');?></option>
|
|
|
+ <option value="2" <?php if($_SESSION['POLICY_CSRF_STRICTNESS'] == '2') echo 'selected' ?>><?=_('Strict');?></option>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
- <?=_('Login');?>
|
|
|
- </p>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_login_style" class="form-label"><?=_('Login screen style');?></label>
|
|
|
- <select class="form-select" name="v_login_style" id="v_login_style">
|
|
|
- <option value="default"><?=_('Default'); ?></option>
|
|
|
- <option value="old" <?php if($_SESSION['LOGIN_STYLE'] == 'old') echo 'selected' ?>><?=_('Old Style'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_policy_system_password_reset" class="form-label"><?=_('Allow users to reset their passwords');?></label>
|
|
|
- <select class="form-select" name="v_policy_system_password_reset" id="v_policy_system_password_reset">
|
|
|
- <option value="yes"><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_SYSTEM_PASSWORD_RESET'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb20">
|
|
|
- <label for="v_inactive_session_timeout" class="form-label">
|
|
|
- <?=_('Inactive session timeout');?> (<?=_('Minutes');?>)
|
|
|
- </label>
|
|
|
- <input type="text" class="form-control" name="v_inactive_session_timeout" id="v_inactive_session_timeout" value="<?=trim($_SESSION['INACTIVE_SESSION_TIMEOUT'], "'")?>">
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_policy_csrf_strictness" class="form-label"><?=_('Prevent CSRF');?></label>
|
|
|
- <select class="form-select" name="v_policy_csrf_strictness" id="v_policy_csrf_strictness">
|
|
|
- <option value="0" <?php if($_SESSION['POLICY_CSRF_STRICTNESS'] == '0') echo 'selected' ?>><?=_('Disabled');?></option>
|
|
|
- <option value="1" <?php if($_SESSION['POLICY_CSRF_STRICTNESS'] == '1') echo 'selected' ?>><?=_('Enabled');?></option>
|
|
|
- <option value="2" <?php if($_SESSION['POLICY_CSRF_STRICTNESS'] == '2') echo 'selected' ?>><?=_('Strict');?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <?php if (($_SESSION['userContext'] === "admin") && ($_SESSION['user'] === 'admin')) {?>
|
|
|
- <h3 class="section-title" onclick="javascript:elementHideShow('security-sysadminprotect-table',this);">
|
|
|
- <?=_('System Protection');?>
|
|
|
+ <?php if (($_SESSION['userContext'] === "admin") && ($_SESSION['user'] === 'admin')) {?>
|
|
|
+ <h3 class="section-title" onclick="javascript:elementHideShow('security-sysadminprotect-table',this);">
|
|
|
+ <?=_('System Protection');?>
|
|
|
+ <i class="fas fa-plus-square status-icon dim maroon section-hide-button"></i>
|
|
|
+ </h3>
|
|
|
+ <div id="security-sysadminprotect-table" style="display: none;">
|
|
|
+ <p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
+ <?=_('System Administrator account');?>
|
|
|
+ </p>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_policy_system_protected_admin" class="form-label"><?=_('Restrict access to read-only for other administrators');?></label>
|
|
|
+ <select class="form-select" name="v_policy_system_protected_admin" id="v_policy_system_protected_admin">
|
|
|
+ <option value="yes"><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_SYSTEM_PROTECTED_ADMIN'] !== 'yes') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_policy_system_hide_admin" class="form-label"><?=_('Hide account from other administrators');?></label>
|
|
|
+ <select class="form-select" name="v_policy_system_hide_admin" id="v_policy_system_hide_admin">
|
|
|
+ <option value="yes"><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_SYSTEM_HIDE_ADMIN'] !== 'yes') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_policy_system_hide_services" class="form-label"><?=_('Do not allow other administrators to access Server Settings');?></label>
|
|
|
+ <select class="form-select" name="v_policy_system_hide_services" id="v_policy_system_hide_services">
|
|
|
+ <option value="yes"><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_SYSTEM_HIDE_SERVICES'] !== 'yes') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+ <h3 class="section-title" onclick="javascript:elementHideShow('security-policies-table',this);">
|
|
|
+ <?=_('Policies');?>
|
|
|
<i class="fas fa-plus-square status-icon dim maroon section-hide-button"></i>
|
|
|
</h3>
|
|
|
- <div id="security-sysadminprotect-table" style="display: none;">
|
|
|
+ <div id="security-policies-table" style="display: none;">
|
|
|
<p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
- <?=_('System Administrator account');?>
|
|
|
+ <?=_('Users');?>
|
|
|
</p>
|
|
|
+ <?php if ($_SESSION['POLICY_SYSTEM_ENABLE_BACON'] === 'true') { ?>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_policy_user_view_suspended" class="form-label">
|
|
|
+ <?=_('Allow suspended users to log in with read-only access');?> <span class="hint">(<?=_('Preview');?>)</span>
|
|
|
+ </label>
|
|
|
+ <select class="form-select" name="v_policy_user_view_suspended" id="v_policy_user_view_suspended">
|
|
|
+ <option value="yes" <?php if($_SESSION['POLICY_USER_VIEW_SUSPENDED'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_USER_VIEW_SUSPENDED'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_policy_system_protected_admin" class="form-label"><?=_('Restrict access to read-only for other administrators');?></label>
|
|
|
- <select class="form-select" name="v_policy_system_protected_admin" id="v_policy_system_protected_admin">
|
|
|
- <option value="yes"><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_SYSTEM_PROTECTED_ADMIN'] !== 'yes') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ <label for="v_policy_user_edit_details" class="form-label"><?=_('Allow users to edit their account details');?></label>
|
|
|
+ <select class="form-select" name="v_policy_user_edit_details" id="v_policy_user_edit_details">
|
|
|
+ <option value="yes" <?php if($_SESSION['POLICY_USER_EDIT_DETAILS'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_USER_EDIT_DETAILS'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_policy_system_hide_admin" class="form-label"><?=_('Hide account from other administrators');?></label>
|
|
|
- <select class="form-select" name="v_policy_system_hide_admin" id="v_policy_system_hide_admin">
|
|
|
- <option value="yes"><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_SYSTEM_HIDE_ADMIN'] !== 'yes') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ <label for="v_policy_user_edit_web_templates" class="form-label"><?=_('Allow users to change templates when editing web domains');?></label>
|
|
|
+ <select class="form-select" name="v_policy_user_edit_web_templates" id="v_policy_user_edit_web_templates">
|
|
|
+ <option value="yes" <?php if($_SESSION['POLICY_USER_EDIT_WEB_TEMPLATES'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_USER_EDIT_WEB_TEMPLATES'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_policy_system_hide_services" class="form-label"><?=_('Do not allow other administrators to access Server Settings');?></label>
|
|
|
- <select class="form-select" name="v_policy_system_hide_services" id="v_policy_system_hide_services">
|
|
|
- <option value="yes"><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_SYSTEM_HIDE_SERVICES'] !== 'yes') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ <label for="v_policy_user_edit_dns_templates" class="form-label"><?=_('Allow users to change templates when editing DNS zones');?></label>
|
|
|
+ <select class="form-select" name="v_policy_user_edit_dns_templates" id="v_policy_user_edit_dns_templates">
|
|
|
+ <option value="yes" <?php if($_SESSION['POLICY_USER_EDIT_DNS_TEMPLATES'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_USER_EDIT_DNS_TEMPLATES'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <?php } ?>
|
|
|
- <h3 class="section-title" onclick="javascript:elementHideShow('security-policies-table',this);">
|
|
|
- <?=_('Policies');?>
|
|
|
- <i class="fas fa-plus-square status-icon dim maroon section-hide-button"></i>
|
|
|
- </h3>
|
|
|
- <div id="security-policies-table" style="display: none;">
|
|
|
- <p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
- <?=_('Users');?>
|
|
|
- </p>
|
|
|
- <?php if ($_SESSION['POLICY_SYSTEM_ENABLE_BACON'] === 'true') { ?>
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_policy_user_view_suspended" class="form-label">
|
|
|
- <?=_('Allow suspended users to log in with read-only access');?> <span class="hint">(<?=_('Preview');?>)</span>
|
|
|
- </label>
|
|
|
- <select class="form-select" name="v_policy_user_view_suspended" id="v_policy_user_view_suspended">
|
|
|
- <option value="yes" <?php if($_SESSION['POLICY_USER_VIEW_SUSPENDED'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_USER_VIEW_SUSPENDED'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ <label for="v_policy_user_view_logs" class="form-label"><?=_('Allow users to view action and login history logs');?></label>
|
|
|
+ <select class="form-select" name="v_policy_user_view_logs" id="v_policy_user_view_logs">
|
|
|
+ <option value="yes" <?php if($_SESSION['POLICY_USER_VIEW_LOGS'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_USER_VIEW_LOGS'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_policy_user_delete_logs" class="form-label"><?=_('Allow users to delete log history');?></label>
|
|
|
+ <select class="form-select" name="v_policy_user_delete_logs" id="v_policy_user_delete_logs">
|
|
|
+ <option value="yes" <?php if($_SESSION['POLICY_USER_DELETE_LOGS'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['POLICY_USER_DELETE_LOGS'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
+ <?=_('Domains');?>
|
|
|
+ </p>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="v_enforce_subdomain_ownership" class="form-label"><?=_('Enforce subdomain ownership');?></label>
|
|
|
+ <select class="form-select u-mb20" name="v_enforce_subdomain_ownership" id="v_enforce_subdomain_ownership">
|
|
|
+ <option value="yes"><?=_('Yes'); ?></option>
|
|
|
+ <option value="no" <?php if($_SESSION['ENFORCE_SUBDOMAIN_OWNERSHIP'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
- <?php } ?>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_policy_user_edit_details" class="form-label"><?=_('Allow users to edit their account details');?></label>
|
|
|
- <select class="form-select" name="v_policy_user_edit_details" id="v_policy_user_edit_details">
|
|
|
- <option value="yes" <?php if($_SESSION['POLICY_USER_EDIT_DETAILS'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_USER_EDIT_DETAILS'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_policy_user_edit_web_templates" class="form-label"><?=_('Allow users to change templates when editing web domains');?></label>
|
|
|
- <select class="form-select" name="v_policy_user_edit_web_templates" id="v_policy_user_edit_web_templates">
|
|
|
- <option value="yes" <?php if($_SESSION['POLICY_USER_EDIT_WEB_TEMPLATES'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_USER_EDIT_WEB_TEMPLATES'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
- </select>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Plugins tab -->
|
|
|
+ <h2 class="advanced-options u-mb10">
|
|
|
+ <a href="javascript:elementHideShow('hestia');" class="vst-text">
|
|
|
+ <i class="fas fa-puzzle-piece"></i><b><?=_('Hestia Control Panel Plugins');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
+ </a>
|
|
|
+ </h2>
|
|
|
+ <div id="hestia" class="u-pl50 u-mt20 u-mb20" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
+ <div class="u-input-width">
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_policy_user_edit_dns_templates" class="form-label"><?=_('Allow users to change templates when editing DNS zones');?></label>
|
|
|
- <select class="form-select" name="v_policy_user_edit_dns_templates" id="v_policy_user_edit_dns_templates">
|
|
|
- <option value="yes" <?php if($_SESSION['POLICY_USER_EDIT_DNS_TEMPLATES'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_USER_EDIT_DNS_TEMPLATES'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ <label for="v_plugin_app_installer" class="form-label"><?=_('Quick App Installer');?></label>
|
|
|
+ <select class="form-select" name="v_plugin_app_installer" id="v_plugin_app_installer">
|
|
|
+ <option value="false"><?=_('No'); ?></option>
|
|
|
+ <option value="true" <?php if($_SESSION['PLUGIN_APP_INSTALLER'] == 'true') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_policy_user_view_logs" class="form-label"><?=_('Allow users to view action and login history logs');?></label>
|
|
|
- <select class="form-select" name="v_policy_user_view_logs" id="v_policy_user_view_logs">
|
|
|
- <option value="yes" <?php if($_SESSION['POLICY_USER_VIEW_LOGS'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_USER_VIEW_LOGS'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ <label for="v_filemanager" class="form-label"><?=_('Filemanager');?></label>
|
|
|
+ <select class="form-select" name="v_filemanager" id="v_filemanager">
|
|
|
+ <option value="false"><?=_('No'); ?></option>
|
|
|
+ <option value="true" <?php if($_SESSION['FILE_MANAGER'] == 'true') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_policy_user_delete_logs" class="form-label"><?=_('Allow users to delete log history');?></label>
|
|
|
- <select class="form-select" name="v_policy_user_delete_logs" id="v_policy_user_delete_logs">
|
|
|
- <option value="yes" <?php if($_SESSION['POLICY_USER_DELETE_LOGS'] !== 'no') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['POLICY_USER_DELETE_LOGS'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ <label for="v_quota" class="form-label"><?=_('FileSystem Disk Quota');?></label>
|
|
|
+ <select class="form-select" name="v_quota" id="v_quota">
|
|
|
+ <option value="no"><?=_('No'); ?></option>
|
|
|
+ <option value="yes" <?php if($_SESSION['DISK_QUOTA'] == 'yes') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
- <p class="u-pt18" style="font-size:1rem;padding-bottom:12px;">
|
|
|
- <?=_('Domains');?>
|
|
|
- </p>
|
|
|
<div class="u-mb10">
|
|
|
- <label for="v_enforce_subdomain_ownership" class="form-label"><?=_('Enforce subdomain ownership');?></label>
|
|
|
- <select class="form-select u-mb20" name="v_enforce_subdomain_ownership" id="v_enforce_subdomain_ownership">
|
|
|
- <option value="yes"><?=_('Yes'); ?></option>
|
|
|
- <option value="no" <?php if($_SESSION['ENFORCE_SUBDOMAIN_OWNERSHIP'] == 'no') echo 'selected' ?>><?=_('No'); ?></option>
|
|
|
+ <label for="v_firewall" class="form-label"><?=_('Firewall');?></label>
|
|
|
+ <select class="form-select u-mb20" name="v_firewall" id="v_firewall">
|
|
|
+ <option value="no"><?=_('No'); ?></option>
|
|
|
+ <option value="yes" <?php if($_SESSION['FIREWALL_SYSTEM'] == 'iptables') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- Plugins tab -->
|
|
|
- <h2 class="advanced-options u-mb10">
|
|
|
- <a href="javascript:elementHideShow('hestia');" class="vst-text">
|
|
|
- <i class="fas fa-puzzle-piece"></i><b><?=_('Hestia Control Panel Plugins');?> <img src="/images/arrow.png" alt=""></b>
|
|
|
- </a>
|
|
|
- </h2>
|
|
|
- <div id="hestia" class="u-pl50 u-mb20 u-input-width" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_plugin_app_installer" class="form-label"><?=_('Quick App Installer');?></label>
|
|
|
- <select class="form-select" name="v_plugin_app_installer" id="v_plugin_app_installer">
|
|
|
- <option value="false"><?=_('No'); ?></option>
|
|
|
- <option value="true" <?php if($_SESSION['PLUGIN_APP_INSTALLER'] == 'true') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_filemanager" class="form-label"><?=_('Filemanager');?></label>
|
|
|
- <select class="form-select" name="v_filemanager" id="v_filemanager">
|
|
|
- <option value="false"><?=_('No'); ?></option>
|
|
|
- <option value="true" <?php if($_SESSION['FILE_MANAGER'] == 'true') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_quota" class="form-label"><?=_('FileSystem Disk Quota');?></label>
|
|
|
- <select class="form-select" name="v_quota" id="v_quota">
|
|
|
- <option value="no"><?=_('No'); ?></option>
|
|
|
- <option value="yes" <?php if($_SESSION['DISK_QUOTA'] == 'yes') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="u-mb10">
|
|
|
- <label for="v_firewall" class="form-label"><?=_('Firewall');?></label>
|
|
|
- <select class="form-select u-mb20" name="v_firewall" id="v_firewall">
|
|
|
- <option value="no"><?=_('No'); ?></option>
|
|
|
- <option value="yes" <?php if($_SESSION['FIREWALL_SYSTEM'] == 'iptables') echo 'selected' ?>><?=_('Yes'); ?></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
|