This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

View File

@@ -1,37 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php
$homeElement = $this->element->getElement('home');
?>
<script type="text/javascript">
//<![CDATA[
Jsw.namespace('Smb.Ftp');
Smb.Ftp.showHomePathPopup = function (event) {
event.preventDefault();
new Jsw.DirectoryBrowser({
cls: 'popup-panel',
locale: {
title: <?php echo $this->jsLmsg('smb.components.forms.ftp-user.popupTitle') ?>,
buttonOk: <?php echo $this->jsLmsg('components.buttons.ok') ?>,
buttonCancel: <?php echo $this->jsLmsg('components.buttons.cancel') ?>
},
pathElementId: '<?php echo $homeElement->getId() ?>',
subscriptionId: '<?php echo $this->subscriptionId ?>'
});
};
//]]>
</script>
<div class='form-row' id="<?php echo $homeElement->getId(); ?>-form-row">
<div class='field-name'>
<?php echo $this->elementPart($homeElement)->label(); ?>
</div>
<div class='field-value'>
<?php echo $this->elementPart($homeElement)->content(); ?>
<a href="#" class="btn btn-icon-only input-btn" aria-label="<?php echo $this->jsLmsg('smb.components.forms.ftp-user.selectButtonLabel') ?>" onClick="Smb.Ftp.showHomePathPopup(event);"><i class="icon-folder"></i></a>
<span class="field-errors" style="display: none;"></span>
<span class="hint"><?php echo $this->elementPart($homeElement)->description(); ?></span>
</div>
</div>

View File

@@ -1,74 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
new Jsw.Panel({
renderTo: '<?php echo $this->form->getId() ?>',
renderMode: 'top',
cls: 'tools-list-box',
items: [{
componentType: 'Jsw.ListContainer',
cls: 'tools-list',
itemClass: 'tools-item',
items: [{
id: '<?php echo $this->anonFtpEnabled ? 'turnOff' : 'turnOn'; ?>',
componentType: 'Smb.ToolButton',
icon: '<?php echo $this->skinUrl('/icons/32/plesk/' . ($this->anonFtpEnabled ? 'disable' : 'enable') . '.png') ?>',
title: '<?php echo $this->lmsg($this->anonFtpEnabled ? 'turnOff' : 'turnOn') ?>',
comment: '<?php echo $this->lmsg($this->anonFtpEnabled ? 'turnOffHint' : 'turnOnHint') ?>',
handler: function () {
var statusElement = document.getElementById('<?php echo $this->form->getElement('status')->getId() ?>');
statusElement.value = '<?php echo $this->anonFtpEnabled ? 'false' : 'true' ?>';
Jsw.submit(statusElement);
},
}],
}],
});
});
//]]>
</script>
<?php echo $this->partial('partials/tabs.phtml', array('tabs' => $this->tabs, 'renderTo' => 'main', 'renderMode' => 'top')); ?>
<?php if (isset($this->notAllowedWarning)): ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
Jsw.addStatusMessage('warning', <?php echo $this->jsEscape($this->notAllowedWarning) ?>, { renderTo: 'main' });
});
//]]>
</script>
<?php endif ?>
<?php echo $this->masterCheckbox($this->form->getElement('displayLogin'), [$this->form->getElement('loginText')], true, false) ?>
<?php echo $this->form ?>
<?php if ($this->form->getSubForm('quota')): ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var updateState = function () {
var noLimitElement = document.getElementById('<?php echo $this->form->getSubForm('quota')->getElement('noLimit')->getId() ?>');
var quotaElement = document.getElementById('<?php echo $this->form->getSubForm('quota')->getElement('quota')->getId() ?>');
if (document.getElementById('<?php echo $this->form->getElement('incomingDir')->getId() ?>').checked) {
noLimitElement.disabled = false;
if (noLimitElement.checked) {
quotaElement.disabled = true;
} else {
quotaElement.disabled = false;
}
} else {
noLimitElement.disabled = true;
quotaElement.disabled = true;
}
};
updateState();
document.getElementById('<?php echo $this->form->getElement('incomingDir')->getId() ?>').addEventListener('click', updateState);
});
//]]>
</script>
<?php endif ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,114 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->partial('partials/tabs.phtml', array('tabs' => $this->tabs, 'renderTo' => 'main')); ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.Hint({
renderTo: 'main',
hint: <?php echo $this->jsLmsg('hint'); ?>
});
new Jsw.Panel({
cls: 'list-box',
renderTo: 'main',
items: [
new Jsw.List({
id: 'ftp-users-list',
searchOveral: 'name',
searchFilters: <?php echo Zend_Json::encode($this->usersList->getSearchFilterConfig()); ?>,
data: <?php echo Zend_Json::encode($this->usersList->fetchData()); ?>,
dataUrl: '/ftp/users-list-data',
columns: [
Jsw.list.COLUMN_SELECTION,
{
header: <?php echo $this->jsLmsg('headerType'); ?>,
headerCls: 'icon',
sortable: true,
dataIndex: 'type',
cls: 'min',
renderer: function(item) {
var typeIcon = '';
switch (item.type) {
case '<?php echo Smb_View_List_FtpUsers::USER_TYPE_HOSTING ?>':
typeIcon = '<?php echo $this->skinUrl('/icons/16/plesk/ftpsession-domain-user.png') ?>';
break;
case '<?php echo Smb_View_List_FtpUsers::USER_TYPE_WEB ?>':
typeIcon = '<?php echo $this->skinUrl('/icons/16/plesk/ftpsession-web-user.png') ?>';
break;
case '<?php echo Smb_View_List_FtpUsers::USER_TYPE_FTP ?>':
typeIcon = '<?php echo $this->skinUrl('/icons/16/plesk/ftpsession-sub-user.png') ?>';
break;
}
return '<span class="b-indent-icon">' +
'<span class="tooltipData">' + Jsw.escapeHtml(item.typeTitle) + '</span>' +
'<img width="16" height="16" title="' + Jsw.escapeAttribute(item.typeTitle) + '" src="' + typeIcon + '"/>' +
'</span>';
}
}, {
header: <?php echo $this->jsLmsg('headerName'); ?>,
sortable: true,
dataIndex: 'name',
renderer: function (item) {
return '<a href="' + Jsw.prepareUrl(item.link) + '">'
+ Jsw.escapeHtml(item.name) + '</a>';
}
}, {
header: <?php echo $this->jsLmsg('headerHome');?>,
sortable: true,
dataIndex: 'home',
renderer: function(item) {
var hint = '';
if (item.home_in_system_area) {
return '<b>' + Jsw.escapeHtml(item.home) + '</b>';
}
if (item.broken_dir) {
hint = ' <img src="<?php echo $this->skinUrl('/icons/16/plesk/att.png') ?>" alt=""> '
+ '(' + <?php echo $this->jsLmsg('brokenDir'); ?> + ')';
}
return Jsw.escapeHtml(item.home) + hint;
}
}
],
operations: [
<?php if ($this->allowCreateUser): ?>
{
componentType: 'Jsw.SmallButton',
title: <?php echo $this->jsLmsg('buttonAddUser');?>,
description: <?php echo $this->jsLmsg('buttonAddUserHint'); ?> + <?php echo $this->jsEscape(' ' . $this->resourceUsage('max_subftp_users')); ?>,
addCls: 'sb-add-user btn-primary',
href: '/ftp/create-user'
}, {
componentType: 'Jsw.bar.Separator'
},
<?php endif; ?>
{
componentType: 'Jsw.SmallButton',
id: 'buttonRemoveUser',
title: <?php echo $this->jsLmsg('buttonRemoveUser');?>,
description: <?php echo $this->jsLmsg('buttonRemoveUserHint'); ?>,
addCls: 'sb-remove-selected',
handler: function(event) {
Jsw.getComponent('ftp-users-list').execGroupOperation({
url: '/ftp/delete-users',
subtype: 'delete',
mouseEvent: event,
locale: {
confirmOnGroupOperation: <?php echo $this->jsLmsg('confirmOnDelete'); ?>
}
});
}
}],
isDisabledItem: function(item) {
return '<?php echo Smb_View_List_FtpUsers::USER_TYPE_FTP ?>' != item.type;
}
})
]
});
});
//]]>
</script>