mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
enable/disable softaculous plugin
This commit is contained in:
parent
fbc0cf5151
commit
42f6ceddc4
3 changed files with 137 additions and 0 deletions
|
@ -459,6 +459,33 @@ 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);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
$_SESSION['ok_msg'] = __('Softaculous Activated');
|
||||
$_SESSION['SOFTACULOUS'] = 'yes';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
$_SESSION['ok_msg'] = __('Softaculous Disabled');
|
||||
$_SESSION['SOFTACULOUS'] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Check system configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue