mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -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'])) {
|
||||
|
|
|
@ -280,67 +280,6 @@
|
|||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
<label>
|
||||
<input type="checkbox" class="vst-checkbox use_relay" name="v_mail_relay"">
|
||||
<?=__('Use relay')?>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr class="mail-relay" style="display: none;">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="vst-text step-left input-label">
|
||||
<?php print __('Hostname');?><br>
|
||||
<span style="font-size: 10pt; color:#777;"><?=__('enter hostname or IP address');?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="step-left">
|
||||
<input type="text" size="20" class="vst-input v-ftp-user" name="v_relay_hostname" value="<?=htmlentities(trim($v_relay_hostname, "'"))?>">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-left input-label">
|
||||
<?php print __('Port');?><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="step-left">
|
||||
<input type="text" size="20" class="vst-input v-ftp-user" name="v_relay_port" value="<?=htmlentities(trim($v_relay_port, "'"))?>">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-left input-label">
|
||||
<?php print __('Username');?><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="step-left">
|
||||
<input type="text" size="20" class="vst-input v-ftp-user" name="v_relay_username" value="<?=htmlentities(trim($v_relay_username, "'"))?>">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text step-left input-label">
|
||||
<?php print __('Password');?><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="step-left">
|
||||
<input type="text" size="20" class="vst-input v-ftp-user" name="v_relay_password" value="<?=htmlentities(trim($v_relay_password, "'"))?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
|
@ -925,7 +864,7 @@
|
|||
</select>
|
||||
<br><br>
|
||||
<div class="softaculous description" <? if ($_SESSION['SOFTACULOUS'] != 'yes') { ?>style="display:none" <? } ?>>
|
||||
<h5>Web Application Installations Made Easy</h5>
|
||||
<h5>* plugin installation will run in background</h5>
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue