diff --git a/web/edit/server/index.php b/web/edit/server/index.php index 2b9a043f..960b9e50 100644 --- a/web/edit/server/index.php +++ b/web/edit/server/index.php @@ -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 diff --git a/web/js/pages/edit_server.js b/web/js/pages/edit_server.js index 205c1fd4..f6a72a78 100644 --- a/web/js/pages/edit_server.js +++ b/web/js/pages/edit_server.js @@ -14,4 +14,20 @@ $(document).ready(function(){ $('.sftp.description').hide(); } }); + + $('select[name=v_softaculous]').change(function(){ + if($(this).val() == 'yes'){ + $('.softaculous.description').show(); + } else { + $('.softaculous.description').hide(); + } + }); + + $('input[name=v_mail_relay]').change(function(){ + if($(this).is(':checked')){ + $('.mail-relay').show(); + } else { + $('.mail-relay').hide(); + } + }); }); diff --git a/web/templates/admin/edit_server.html b/web/templates/admin/edit_server.html index 989c31dd..904e42ef 100644 --- a/web/templates/admin/edit_server.html +++ b/web/templates/admin/edit_server.html @@ -280,6 +280,68 @@

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ "> +
+
+
+ "> +
+
+
+ "> +
+
+
+ "> +
+ + + @@ -846,6 +908,38 @@ + + + + + + + + + + + + +

+
style="display:none" > +
Web Application Installations Made Easy
+ Softaculous is a great Auto Installer having 426 great scripts, 1115 PHP Classes + and we are still adding more. Softaculous is ideal for Web Hosting companies and + it could give a significant boost to your sales. These scripts cover most of the + uses a customer could ever have. We have covered a wide array of Categories so that + everyone could find the required script one would need to power their Web Site. + +
+ + +