mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
license manager
This commit is contained in:
parent
45fd7dc75b
commit
60ebfe321a
13 changed files with 534 additions and 47 deletions
|
@ -605,13 +605,13 @@
|
|||
<tr>
|
||||
<td class="vst-text input-label step-top">
|
||||
<a href="javascript:elementHideShow('vesta');" class="vst-text">
|
||||
<b><?php print __('Vesta Control Panel Plugins');?> <span style="color:#ff6701;font-size:10px; padding:0 10px;">preview</span><img src="/images/arrow.png"></b>
|
||||
<b><?php print __('Vesta Control Panel Plugins');?> <!-- span style="color:#ff6701;font-size:10px; padding:0 10px;">preview</span--><img src="/images/arrow.png"></b>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text input-label step-left">
|
||||
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="vesta">
|
||||
<table style="display:<?php if (empty($v_adv) && $_GET['lead'] != 'filemanager' && $_GET['lead'] != 'sftp') echo 'none';?> ;" id="vesta">
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
<?php print __('Version') ?>
|
||||
|
@ -630,7 +630,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select class="vst-list" name="v_reseller">
|
||||
<select class="vst-list" name="v_reseller" disabled="disabled">
|
||||
<option value='no'><?php print __('no'); ?></option>
|
||||
</select>
|
||||
<br><br>
|
||||
|
@ -643,7 +643,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select class="vst-list" name="v_conf_editor">
|
||||
<select class="vst-list" name="v_conf_editor" disabled="disabled">
|
||||
<option value='no'><?php print __('no'); ?></option>
|
||||
</select>
|
||||
<br><br>
|
||||
|
@ -656,7 +656,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select class="vst-list" name="v_template_manager">
|
||||
<select class="vst-list" name="v_template_manager" disabled="disabled">
|
||||
<option value='no'><?php print __('no'); ?></option>
|
||||
</select>
|
||||
<br><br>
|
||||
|
@ -669,35 +669,111 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select class="vst-list" name="v_backup_manager">
|
||||
<select class="vst-list" name="v_backup_manager" disabled="disabled">
|
||||
<option value='no'><?php print __('no'); ?></option>
|
||||
</select>
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text">
|
||||
<?php print __('FileManager') ?>
|
||||
<td class="vst-text" id="module-sftp">
|
||||
<?php print __('SFTP Chroot') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select class="vst-list" name="v_sftp">
|
||||
<?
|
||||
if($_SESSION['SFTP_KEY']){
|
||||
echo '<option value="cancel">'.__('Disable and Cancel Licence').'</option>';
|
||||
} else {
|
||||
echo '<option value="no">'.__('no').'</option>';
|
||||
}
|
||||
?>
|
||||
|
||||
<option value='yes' <? if($_GET['lead'] == 'sftp' || $_SESSION['SFTP_KEY'] != '') echo 'selected="selected"'; ?>><?php print __('yes'); ?></option>
|
||||
</select>
|
||||
<br><br>
|
||||
<div class="sftp description" <? if($_GET['lead'] != 'sftp' && !$_SESSION['SFTP_KEY']) echo 'style="display:none"'; ?>>
|
||||
<?
|
||||
|
||||
if($_GET['sftp_licence_key'] != '' || $_SESSION['SFTP_KEY']){
|
||||
$licence_key = $_GET['sftp_licence_key'] != '' ? $_GET['sftp_licence_key'] : $_SESSION['SFTP_KEY'];
|
||||
echo 'Restrict users so that they cannot use SSH and access only their home directory.
|
||||
<div class="licence">
|
||||
Licence Key: <input type="text" class="vst-input" name="v_sftp_licence" value="'.$licence_key.'" /><br>
|
||||
</div>';
|
||||
} else {
|
||||
echo '
|
||||
Restrict users so that they cannot use SSH and access only their home directory.
|
||||
This is a commercial module, you would need to purchace license key to enable it.
|
||||
|
||||
<div class="licence">
|
||||
Enter License Key: <input type="text" class="vst-input" name="v_sftp_licence" /><br>
|
||||
</div>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://vestacp.com/checkout/2co.php?demo=Y&product_id=6&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">Buy Licence 1$/month</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://vestacp.com/checkout/2co.php?demo=Y&product_id=9&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">Buy Lifetime License 18$</a>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="twoco">2Checkout.com Inc. (Ohio, USA) is a payment facilitator for goods and services provided by vestacp.com.</span>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="vst-text" id="module-filemanager">
|
||||
<?php print __('File Manager') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select class="vst-list" name="v_filemanager">
|
||||
<option value='no'><?php print __('no'); ?></option>
|
||||
<option value='yes'><?php print __('yes'); ?></option>
|
||||
<?
|
||||
if($_SESSION['FILEMANAGER_KEY']){
|
||||
echo '<option value="cancel">'.__('Disable and Cancel Licence').'</option>';
|
||||
|
||||
} else {
|
||||
echo '<option value="no">'.__('no').'</option>';
|
||||
}
|
||||
?>
|
||||
<option value='yes' <? if($_GET['lead'] == 'filemanager' || $_SESSION['FILEMANAGER_KEY']) echo 'selected="selected"'; ?>><?php print __('yes'); ?></option>
|
||||
</select>
|
||||
<br><br>
|
||||
<div class="filemanager description" style="display:none">
|
||||
Web Filemanager is a commercial module. By purchasing it you not only get powerfull filemanagement tool but also help VestaCP get better and stronger.<br>
|
||||
You can see the bref video review of the module functionality.<br>
|
||||
<span>(to try it free for a week please use "TMKE765" as a licence key)</span>
|
||||
<div class="licence">
|
||||
To activate filemanager insert licence key: <input type="text" class="vst-input" name="v_filemanager_licence" /><br>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a class="purchase" href="read.com">get monthly licence 3$/month</a></li>
|
||||
<li><a class="purchase" href="read.com">get forever licence 50$</a></li>
|
||||
</ul>
|
||||
<div class="filemanager description" <? if($_GET['lead'] != 'filemanager' && !$_SESSION['FILEMANAGER_KEY']) echo 'style="display:none"'; ?>>
|
||||
<?
|
||||
|
||||
if($_GET['filemanager_licence_key'] != '' || $_SESSION['FILEMANAGER_KEY']){
|
||||
$licence_key = $_GET['filemanager_licence_key'] != '' ? $_GET['filemanager_licence_key'] : $_SESSION['FILEMANAGER_KEY'];
|
||||
echo '
|
||||
Browse, copy, edit, view, and retrieve all of your web domain files using fully featured File Manager.
|
||||
|
||||
<div class="licence">
|
||||
Licence Key: <input type="text" class="vst-input" name="v_filemanager_licence" value="'.$licence_key.'" /><br>
|
||||
</div>';
|
||||
} else {
|
||||
echo '
|
||||
Browse, copy, edit, view, and retrieve all of your web domain files using fully featured File Manager.
|
||||
This is a commercial module, you would need to purchace license key to enable it.
|
||||
<div class="licence">
|
||||
Enter Licence Key: <input type="text" class="vst-input" name="v_filemanager_licence" /><br>
|
||||
</div>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://vestacp.com/checkout/2co.php?demo=Y&product_id=7&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">Buy Licence 3$/month</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://vestacp.com/checkout/2co.php?demo=Y&product_id=8&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">Buy Lifetime Licence 50$</a>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="twoco">2Checkout.com Inc. (Ohio, USA) is a payment facilitator for goods and services provided by vestacp.com.</span>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -732,5 +808,13 @@
|
|||
$('.filemanager.description').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('select[name=v_sftp]').change(function(){
|
||||
if($(this).val() == 'yes'){
|
||||
$('.sftp.description').show();
|
||||
} else {
|
||||
$('.sftp.description').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue