|
695 | 695 | } |
696 | 696 | } |
697 | 697 |
|
| 698 | + // Change POLICY_USER_EDIT_DETAILS |
| 699 | + if (empty($_SESSION['error_msg'])) { |
| 700 | + if ($_POST['v_policy_user_edit_details'] != $_SESSION['POLICY_USER_EDIT_DETAILS']) { |
| 701 | + exec (HESTIA_CMD."v-change-sys-config-value POLICY_USER_EDIT_DETAILS ".escapeshellarg($_POST['v_policy_user_edit_details']), $output, $return_var); |
| 702 | + check_return_code($return_var,$output); |
| 703 | + unset($output); |
| 704 | + if (empty($_SESSION['error_msg'])) $v_enforce_subdomain_ownership = $_POST['v_policy_user_edit_details']; |
| 705 | + $v_security_adv = 'yes'; |
| 706 | + } |
| 707 | + } |
| 708 | + |
| 709 | + // Change POLICY_USER_VIEW_LOGS |
| 710 | + if (empty($_SESSION['error_msg'])) { |
| 711 | + if ($_POST['v_policy_user_view_logs'] != $_SESSION['POLICY_USER_VIEW_LOGS']) { |
| 712 | + exec (HESTIA_CMD."v-change-sys-config-value POLICY_USER_VIEW_LOGS ".escapeshellarg($_POST['v_policy_user_view_logs']), $output, $return_var); |
| 713 | + check_return_code($return_var,$output); |
| 714 | + unset($output); |
| 715 | + if (empty($_SESSION['error_msg'])) $v_enforce_subdomain_ownership = $_POST['v_policy_user_view_logs']; |
| 716 | + $v_security_adv = 'yes'; |
| 717 | + } |
| 718 | + } |
| 719 | + |
| 720 | + // Change POLICY_USER_DELETE_LOGS |
| 721 | + if (empty($_SESSION['error_msg'])) { |
| 722 | + if ($_POST['v_policy_user_delete_logs'] != $_SESSION['POLICY_USER_DELETE_LOGS']) { |
| 723 | + exec (HESTIA_CMD."v-change-sys-config-value POLICY_USER_DELETE_LOGS ".escapeshellarg($_POST['v_policy_user_delete_logs']), $output, $return_var); |
| 724 | + check_return_code($return_var,$output); |
| 725 | + unset($output); |
| 726 | + if (empty($_SESSION['error_msg'])) $v_enforce_subdomain_ownership = $_POST['v_policy_user_delete_logs']; |
| 727 | + $v_security_adv = 'yes'; |
| 728 | + } |
| 729 | + } |
| 730 | + |
698 | 731 | // Change RESTRICTED_ADMIN |
699 | 732 | if (empty($_SESSION['error_msg'])) { |
700 | 733 | if ($_POST['v_restrict_admin'] != $_SESSION['RESTRICTED_ADMIN']) { |
|
0 commit comments