Skip to content

Commit 1401c62

Browse files
committed
Fix issues with edit/server/
POLICY_SYSTEM_ENABLE_BACON = Was always submited DEBUG_MODE = Was always submited Select in v_policy_user_edit_dns_templates was wrong
1 parent 63e5d90 commit 1401c62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/edit/server/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@
279279

280280
// Update debug mode status
281281
if (empty($_SESSION['error_msg'])) {
282+
if ($_POST['v_debug_mode'] == 'on') { $_POST['v_debug_mode'] = 'true'; } else { $_POST['v_debug_mode'] = 'false'; }
282283
if ($_POST['v_debug_mode'] != $_SESSION['DEBUG_MODE']) {
283-
if ($_POST['v_debug_mode'] == 'on') { $_POST['v_debug_mode'] = 'true'; } else { $_POST['v_debug_mode'] = 'false'; }
284284
exec (HESTIA_CMD."v-change-sys-config-value DEBUG_MODE ".escapeshellarg($_POST['v_debug_mode']), $output, $return_var);
285285
check_return_code($return_var,$output);
286286
unset($output);
@@ -300,8 +300,8 @@
300300

301301
// Update experimental features status
302302
if (empty($_SESSION['error_msg'])) {
303+
if ($_POST['v_experimental_features'] == 'on') { $_POST['v_experimental_features'] = 'true'; } else { $_POST['v_experimental_features'] = 'false'; }
303304
if ($_POST['v_experimental_features'] != $_SESSION['POLICY_SYSTEM_ENABLE_BACON']) {
304-
if ($_POST['v_experimental_features'] == 'on') { $_POST['v_experimental_features'] = 'true'; } else { $_POST['v_experimental_features'] = 'false'; }
305305
exec (HESTIA_CMD."v-change-sys-config-value POLICY_SYSTEM_ENABLE_BACON ".escapeshellarg($_POST['v_experimental_features']), $output, $return_var);
306306
check_return_code($return_var,$output);
307307
unset($output);

web/templates/pages/edit_server.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@
11601160
</tr>
11611161
<tr>
11621162
<td>
1163-
<select class="vst-list" name="v_policy_user_edit_web_templates">
1163+
<select class="vst-list" name="v_policy_user_edit_dns_templates">
11641164
<option value='yes' <?php if($_SESSION['POLICY_USER_EDIT_DNS_TEMPLATES'] !== 'no') echo 'selected' ?>><?=_('yes'); ?></option>
11651165
<option value='no' <?php if($_SESSION['POLICY_USER_EDIT_DNS_TEMPLATES'] == 'no') echo 'selected' ?>><?=_('no'); ?></option>
11661166
</select>

0 commit comments

Comments
 (0)