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,11 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="uploadFiles">
<?php echo $this->content; ?>
</div>
<?= $this->requireJs('app/backup/upload-files', [
'applyTo' => 'uploadFiles',
'addButtonId' => 'upload-uploadFiles-buttonAddFile',
'removeButtonId' => 'remove-upload-file-button-wrapper',
]) ?>

View File

@@ -1,118 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function () {
var repositories = document.querySelectorAll('input[id^=backup-content-repository]');
var confAndContent = document.getElementById('backup-content-content-configuration_and_content');
var mailContent = document.getElementById('backup-content-content_type-backup_content_mail');
var fileContent = document.getElementById('backup-content-content_type-backup_content_file');
var databaseContent = document.getElementById('backup-content-content_type-backup_content_database');
var incrementalTypeControlState = function () {
var repository;
if (1 === repositories.length) {
repository = repositories[0].value;
} else {
repositories.forEach(function (item){
if (item.checked) {
repository = item.value;
}
});
}
if ((confAndContent && confAndContent.checked)
|| ((mailContent && mailContent.checked) || (fileContent && fileContent.checked))
) {
if (document.getElementById('backup-content-incrementalTypeRadio-incremental').checked) {
document.getElementById('backup-content-incremental').value = 1;
}
document.querySelectorAll('div[id^=backup-content-incrementalTypeRadio]').forEach(function (el) {
el.style.display = '';
});
document.querySelectorAll('div[id^=backup-content-incrementalTypeText]').forEach(function (el) {
el.style.display = 'none';
});
} else {
document.querySelectorAll('div[id^=backup-content-incrementalTypeRadio]').forEach(function (el) {
el.style.display = 'none';
});
document.querySelectorAll('div[id^=backup-content-incrementalTypeText]').forEach(function (el) {
el.style.display = '';
});
document.getElementById('backup-content-incremental').value = 0;
}
document.querySelectorAll('div[id^=backup-content-split_backup_size]').forEach(function (el) {
el.style.display = 'local' === repository ? 'none' : '';
});
document.querySelectorAll('div[id^=backup-content-remote_storage-form-row]').forEach(function (el) {
el.style.display = 'local' === repository ? 'none' : '';
});
};
var contentControlState = function() {
var comment = document.getElementById('backup-settings-comment');
var conf = document.getElementById('backup-content-content-configuration');
if (conf && conf.checked) {
comment.innerHTML = conf.parentNode.querySelector('label').innerHTML.trim();
} else if (confAndContent && confAndContent.checked) {
comment.innerHTML = confAndContent.parentNode.querySelector('label').innerHTML.trim();
} else if (mailContent && mailContent.checked && fileContent && fileContent.checked && databaseContent && databaseContent.checked) {
comment.innerHTML = <?= $this->jsLmsg('components.forms.backup.subform.backupAll'); ?>;
} else if (mailContent && mailContent.checked && fileContent && !fileContent.checked && databaseContent && !databaseContent.checked) {
comment.innerHTML = <?= $this->jsLmsg('components.forms.backup.subform.backupMail'); ?>;
} else if (fileContent && fileContent.checked && databaseContent && databaseContent.checked && (!mailContent || !mailContent.checked)) {
comment.innerHTML = <?= $this->jsLmsg('components.forms.backup.subform.backupVhost'); ?>;
} else if (fileContent && fileContent.checked && databaseContent && !databaseContent.checked && (!mailContent || !mailContent.checked)) {
comment.innerHTML = <?= $this->jsLmsg('components.forms.backup.subform.backupFile'); ?>;
} else if (fileContent && fileContent.checked && databaseContent && !databaseContent.checked && mailContent && mailContent.checked) {
comment.innerHTML = <?= $this->jsLmsg('components.forms.backup.subform.backupMailFile'); ?>;
} else if (fileContent && !fileContent.checked && databaseContent && databaseContent.checked && (!mailContent || !mailContent.checked)) {
comment.innerHTML = <?= $this->jsLmsg('components.forms.backup.subform.backupDatabase'); ?>;
} else if (fileContent && !fileContent.checked && databaseContent && databaseContent.checked && mailContent && mailContent.checked) {
comment.innerHTML = <?= $this->jsLmsg('components.forms.backup.subform.backupMailDatabase'); ?>;
} else {
comment.innerHTML = <?= $this->jsLmsg('components.forms.backup.subform.backupConfiguration'); ?>;
}
};
var excludeFilesState = function () {
var checkbox = document.getElementById('backup-settings-excludeFilesMasterCheckbox');
var rows = [
checkbox.closest('.form-row'),
document.getElementById('backup-settings-exclude_logs').closest('.form-row')
];
if (checkbox.checked) {
rows.push(document.getElementById('backup-settings-exclude_files-form-row'));
}
rows.forEach(function (el) {
el.style.display = fileContent.checked ? '' : 'none';
});
};
document.querySelectorAll('input[id^=backup-content-incrementalTypeRadio]').forEach(function (el) {
el.addEventListener('click', function () {
document.getElementById('backup-content-incremental').value = 'incremental' === this.value ? 1 : 0;
});
});
document.querySelectorAll('input[id^=backup-content-content]').forEach(function (el) {
el.addEventListener('change', incrementalTypeControlState);
el.addEventListener('change', contentControlState);
el.addEventListener('change', excludeFilesState);
});
repositories.forEach(function (el) {
el.addEventListener('click', incrementalTypeControlState);
});
incrementalTypeControlState();
contentControlState();
excludeFilesState();
});
//]]>
</script>

View File

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

View File

@@ -1,17 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
function checkUploadFileStatus() {
if (document.getElementById('ipMappingFile').value) {
Jsw.getComponent('btn-uploadMappingFile').enable();
}
}
document.getElementById('ipMappingFile').addEventListener('change', checkUploadFileStatus);
});
//]]>
</script>

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,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,20 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?= $this->requireJs('app/backup/list', [
'searchFilters' => $this->backupList->getSearchFilterConfig(),
'data' => $this->backupList->fetchData(),
'urls' => $this->urls,
'showDownloadColumn' => $this->backupList->showDownloadColumn(),
'isDownloadEnabled' => $this->backupList->isDownloadEnabled(),
'showUploadButton' => $this->showUploadButton,
'showSettingsButton' => $this->showSettingsButton,
'showFtpSettingsButton' => $this->showFtpSettingsButton,
'showBackupButton' => $this->showBackupButton,
'showRemoveButton' => $this->showRemoveButton,
'showScheduleButton' => $this->showScheduleButton,
'showSystemNotesColumn' => true,
'showCommentColumn' => true,
'downloadDump' => 'true' === $this->downloadDump,
'downloadData' => $this->downloadData,
]) ?>

View File

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

View File

@@ -1,58 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.Panel({
renderTo: 'securitySettings',
renderMode: 'top',
cls: 'tools-list-box',
items: [{
componentType: 'Jsw.ListContainer',
cls: 'tools-list',
itemClass: 'tools-item',
items: <?php echo json_encode($this->buttons) ?>
}]
});
});
//]]>
</script>
<div id="securitySettings" class="form-box">
<?php if ($this->isAnyConfigured): ?>
<div class="box-area">
<div class="title ">
<div class="title-area">
<h3>
<span><?php echo $this->lmsg('securitySettingsTitle'); ?></span>
</h3>
</div>
</div>
<div class="content">
<div class="content-area">
<div id="secureBackup-content-area">
<p><?php echo $this->lmsg('securitySettingsDescription'); ?></p>
</div>
</div>
</div>
<table class="form-table form-limits" width="100%" cellspacing="0">
<tr class="form-row">
<td class="field-name nowrap">
<?php echo $this->lmsg('passwordProtection'); ?>
</td>
<td>
<?php if ($this->passwordProtection): ?>
<img class="b-indent-icon" src="<?php echo $this->skinUrl('/icons/16/plesk/ok.png'); ?>" alt="" />
<?php echo $this->lmsg('enabled'); ?>
<?php else: ?>
<img class="b-indent-icon" src="<?php echo $this->skinUrl('/icons/16/plesk/off.png'); ?>" alt="" />
<?php echo $this->lmsg('disabled'); ?>
<?php endif; ?>
[<a href="<?php echo $this->baseUrl($this->urls['securitySettings']); ?>"><?php echo $this->lmsg('change'); ?></a>]
</td>
</tr>
</table>
</div>
<?php endif; ?>
</div>

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>
<?= $this->requireJs('app/backup/restore', [
'type' => $this->type,
'disableRestore' => (int)$this->disableRestore,
'taskStatuses' => $this->taskStatuses,
'urls' => $this->urls,
]) ?>

View File

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

View File

@@ -1,24 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
use \Plesk\Plesk\Base\Utils\SizeFormatter;
?>
<table cellspacing="0" class="popup-data-table">
<tr>
<th><?php echo $this->lmsg('thisSize') ?></th>
<td><?php echo \Plesk_Base_Utils_String::safeForHtml(SizeFormatter::formatPretty($this->thisSize, true)) ?></td>
</tr>
<tr>
<th><?php echo $this->lmsg('prevSize') ?></th>
<td><?php echo \Plesk_Base_Utils_String::safeForHtml(SizeFormatter::formatPretty($this->prevSize, true)) ?></td>
</tr>
<tr>
<th><?php echo $this->lmsg('baseSize') ?></th>
<td><?php echo \Plesk_Base_Utils_String::safeForHtml(SizeFormatter::formatPretty($this->baseSize, true)) ?></td>
</tr>
<tr>
<th><b><?php echo $this->lmsg('totalSize') ?><b></th>
<td><b><?php echo \Plesk_Base_Utils_String::safeForHtml(SizeFormatter::formatPretty($this->totalSize, true)) ?><b></td>
</tr>
</table>

View File

@@ -1,116 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="form-box">
<div class="title">
<div class="title-area"><h3><span><?php echo $this->lmsg('detailsSection'); ?></span></h3></div>
</div>
<?php foreach ($this->taskProperties as $name => $value): ?>
<div class="form-row">
<div class="field-name">
<?php echo $this->lmsg('property' . ucfirst($name)); ?>
</div>
<div class="field-value">
<div class="text-value" id="<?php echo $name ?>"><?php echo $this->escape($value); ?></div>
</div>
</div>
<?php endforeach; ?>
<?php if ('working' == $this->taskStatus): ?>
<div class="form-row">
<div class="field-name">
<?php echo $this->lmsg('propertyProgress'); ?>
</div>
<div class="field-value">
<div class="text-value">
<div class="progress-box">
<div class="progress progress-sm">
<div class="progress-bar" id="taskProgress" style="width: <?php echo $this->progress; ?>%"></div>
</div>
<div class="progress-label" id="taskProgressText"><?php echo $this->progress; ?>%</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
<div id="errorLogSection" class="form-box" <?php if ('finished' != $this->taskStatus) echo 'style="display:none"'?>>
<div class="title">
<div class="title-area"><h3><span><?php echo $this->lmsg('errorLogSection'); ?></span></h3></div>
</div>
<div id="errorLog"><?php if ('finished' == $this->taskStatus) echo $this->errorLog; ?></div>
</div>
<div class="btns-box">
<div class="box-area">
<div class="form-row">
<div class="field-name"></div>
<div class="field-value">
<button id="btn-ok" class="btn action"></button>
<button id="btn-stop" class="btn"></button>
<input type="hidden" name="hidden" value="" id="hidden">
<!-- ability to submit form via Enter -->
<input type="image" src="<?= $this->skinUrl('/images/blank.gif') ?>" style="border: 0; height: 0; width: 0; position: absolute;">
</div>
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
new Jsw.CommandButton({
applyTo: 'btn-ok',
title: <?php echo $this->jsLmsg('ok'); ?>,
cls: 'btn',
name: 'ok',
value: '',
description: '',
disabled: false,
handler: function(event) { Jsw.redirect('<?php echo $this->urls['list'] ?>'); }
});
new Jsw.CommandButton({
applyTo: 'btn-stop',
title: <?php echo $this->jsLmsg('stop'); ?>,
cls: 'btn',
name: 'stop',
value: '',
description: '',
disabled: <?php echo 'working' == $this->taskStatus ? 'false': 'true' ?>,
handler: function(event) { Jsw.redirectPost('<?php echo $this->urls['stopTask'] ?>'); }
});
function taskDetailsAjaxUpdate() {
Jsw.api.get(<?= $this->jsEscape($this->ajaxUpdateUrl) ?>)
.then(function (response) {
var taskStatus = response.taskStatus;
if (taskStatus === 'working') {
document.getElementById('taskProgress').style.width = response.progress + '%';
document.getElementById('taskProgressText').innerHTML = response.progress + '%';
document.getElementById('currentOperation').innerHTML = response.currentOperation;
setTimeout(function () {
taskDetailsAjaxUpdate();
}, 1000);
} else {
Jsw.getComponent('btn-stop').disable();
if (document.getElementById('taskProgress')) {
document.getElementById('taskProgress').style.width = '100%';
document.getElementById('taskProgressText').innerHTML = '100%';
document.getElementById('currentOperation').innerHTML = '';
}
if (response.errorLog) {
document.getElementById('errorLogSection').style.display = '';
document.getElementById('errorLog').innerHTML = response.errorLog;
}
}
});
}
taskDetailsAjaxUpdate();
});
//]]>
</script>

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->textLog ?>