|
254 | 254 | } |
255 | 255 | } |
256 | 256 |
|
| 257 | + // Set File Manager support |
| 258 | + if (empty($_SESSION['error_msg'])) { |
| 259 | + if ((!empty($_POST['v_filemanager'])) && ($_SESSION['FILE_MANAGER'] != $_POST['v_filemanager'])) { |
| 260 | + if ($_POST['v_filemanager'] == 'yes') { |
| 261 | + $_POST['v_filemanager'] == 'true'; |
| 262 | + exec (HESTIA_CMD."v-add-sys-filemanager", $output, $return_var); |
| 263 | + check_return_code($return_var,$output); |
| 264 | + unset($output); |
| 265 | + if (empty($_SESSION['error_msg'])) $_SESSION['FILE_MANAGER'] = 'yes'; |
| 266 | + } else { |
| 267 | + $_POST['v_filemanager'] == 'false'; |
| 268 | + exec (HESTIA_CMD."v-delete-sys-filemanager", $output, $return_var); |
| 269 | + check_return_code($return_var,$output); |
| 270 | + unset($output); |
| 271 | + if (empty($_SESSION['error_msg'])) $_SESSION['FILE_MANAGER'] = 'no'; |
| 272 | + } |
| 273 | + } |
| 274 | + } |
| 275 | + |
257 | 276 | // Set disk_quota support |
258 | 277 | if (empty($_SESSION['error_msg'])) { |
259 | 278 | if ((!empty($_POST['v_quota'])) && ($_SESSION['DISK_QUOTA'] != $_POST['v_quota'])) { |
260 | | - if($_POST['v_quota'] == 'yes') { |
| 279 | + if ($_POST['v_quota'] == 'yes') { |
261 | 280 | exec (HESTIA_CMD."v-add-sys-quota", $output, $return_var); |
262 | 281 | check_return_code($return_var,$output); |
263 | 282 | unset($output); |
|
276 | 295 | if ($_SESSION['FIREWALL_SYSTEM'] == 'iptables') $v_firewall = 'yes'; |
277 | 296 | if ($_SESSION['FIREWALL_SYSTEM'] != 'iptables') $v_firewall = 'no'; |
278 | 297 | if ((!empty($_POST['v_firewall'])) && ($v_firewall != $_POST['v_firewall'])) { |
279 | | - if($_POST['v_firewall'] == 'yes') { |
| 298 | + if ($_POST['v_firewall'] == 'yes') { |
280 | 299 | exec (HESTIA_CMD."v-add-sys-firewall", $output, $return_var); |
281 | 300 | check_return_code($return_var,$output); |
282 | 301 | unset($output); |
|
0 commit comments