mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Softaculous enable/disable scripts
This commit is contained in:
parent
8dd1d4d581
commit
7d956abd59
6 changed files with 219 additions and 66 deletions
|
@ -463,7 +463,7 @@ if (!empty($_POST['save'])) {
|
|||
// activating softaculous
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
if($_SESSION['SOFTACULOUS'] != $_POST['v_softaculous'] && $_POST['v_softaculous'] == 'yes'){
|
||||
exec (VESTA_CMD."v-add-sys-softaculous", $output, $return_var);
|
||||
exec (VESTA_CMD."v-add-vesta-softaculous WEB", $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
|
@ -476,7 +476,7 @@ if (!empty($_POST['save'])) {
|
|||
// disable softaculous
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
if($_SESSION['SOFTACULOUS'] != $_POST['v_softaculous'] && $_POST['v_softaculous'] == 'no'){
|
||||
exec (VESTA_CMD."v-delete-sys-softaculous", $output, $return_var);
|
||||
exec (VESTA_CMD."v-delete-vesta-softaculous", $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue