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,15 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_GET_SESSION_STATUS' => $this->urlGetSessionStatus,
'MESSAGE_SUBSCRIPTIONS_IN_PROGRESS' => $this->lmsg('sessionStatusSubscriptionsInProgress'),
'MESSAGE_ALL_SUBSCRIPTIONS_MIGRATED' => $this->lmsg('sessionStatusAllSubscriptionsMigrated'),
'MESSAGE_SUBSCRIPTIONS_MIGRATED' => $this->lmsg('sessionStatusSubscriptionsMigrated'),
'SESSION_PROGRESS_UPDATE_INTERVAL' => 2000
]);
echo $this->finishMigrationDialog;
$this->includeMigratorJavaScript('common.js');
$this->includeMigratorJavaScript('progress.js');
echo $this->renderSmallTools($this->tools);
echo $this->renderList($this->list);

View File

@@ -1,129 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
use Plesk\MigrationLibV8\Plesk\PleskFunctions;
echo $this->renderTabs($this->tabs);
echo $this->serverInfoToolbar;
echo $this->progressStatus;
echo $this->popupMigrate;
echo $this->popupResync;
if ($this->isDNSSwitchSupported) {
echo $this->popupSwitchDns;
echo $this->popupRevertDns;
}
echo $this->popupCancel;
echo $this->popupRemove;
echo $this->popupReassignOwner;
echo $this->popupReassignPlan;
echo $this->popupChangeIp;
echo $this->popupSelectNode;
echo $this->popupPostMigrationChecks;
echo $this->popupStatusDetails;
echo $this->popupPreChecks;
$this->passVariablesToJavaScript([
'URL_GET_MIGRATION_STATUS' => $this->urlGetMigrationStatus,
'MIGRATION_STATUS_DATA' => $this->migrationStatusData,
'SHOW_SERVER_CONFIGURATION_BLOCK' => $this->showServerConfigurationBlock,
'SHOW_EXTENSIONS_SETTINGS_BLOCK' => $this->showExtensionsSettingsBlock,
'IS_DNS_SWITCH_SUPPORTED' => $this->isDNSSwitchSupported,
'URL_RESET_REASSIGN_SUBSCRIPTIONS' => $this->urlResetReassignSubscriptions,
'SUBSCRIPTIONS_LIST_DATA' => $this->subscriptionsList->fetchData(),
'URL_SUBSCRIPTIONS_LIST' => $this->subscriptionsList->getDataUrl(),
'SUBSCRIPTIONS_LIST_FILTER_CONFIG' => $this->subscriptionsList->getSearchFilterConfig(),
'HAS_IPV6_ADDRESSES' => $this->hasIPv6Addresses,
'IS_PLESK_MULTISERVER' => PleskFunctions::isPleskMultiserver(),
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'subscriptionsListStatusQueued',
'subscriptionsListStatusCancelled',
'subscriptionsListStatusInProgress',
'subscriptionsListStatusNotStarted',
'subscriptionsListStatusDnsSwitched',
'subscriptionsListStatusFinishedOk',
'subscriptionsListStatusFinishedWarnings',
'subscriptionsListStatusFinishedErrors',
'subscriptionsListOperationMigration',
'subscriptionsListOperationContentSync',
'subscriptionsListOperationDnsSwitch',
'subscriptionsListOperationPostMigrationCheck',
'subscriptionsListOperationConfigurationSync',
'subscriptionsListOperationExtensionsSync',
]);
$this->includeMigratorJavaScript('subscription-status.js');
$this->addJavaScriptLocaleKeys([
'subscriptionsListActionMigrate',
'subscriptionsListButtonMigrateTitle',
'subscriptionsListButtonMigrateHint',
'subscriptionsListActionRestart',
'subscriptionsListButtonSwitchDnsTitle',
'subscriptionsListButtonSwitchDnsHint',
'subscriptionActionSwitchDns',
'subscriptionsListButtonReassignOwnerTitle',
'subscriptionsListButtonReassignOwnerHint',
'subscriptionActionReassignOwner',
'subscriptionsListButtonReassignPlanTitle',
'subscriptionsListButtonReassignPlanHint',
'subscriptionActionReassignPlan',
'subscriptionsListButtonResetReassignTitle',
'subscriptionsListButtonResetReassignHint',
'subscriptionActionReassignReset',
'subscriptionsListButtonChangeIpMappingTitle',
'subscriptionsListButtonChangeIpMappingHint',
'subscriptionActionChangeIpMapping',
'subscriptionsListButtonSelectNodeTitle',
'subscriptionsListButtonSelectNodeHint',
'subscriptionActionSelectNode',
'subscriptionsListActionResync',
'subscriptionsListButtonResyncTitle',
'subscriptionsListButtonResyncHint',
'subscriptionsListButtonPostMigrationChecksTitle',
'subscriptionsListButtonPostMigrationChecksHint',
'subscriptionActionRunPostMigrationChecks',
'subscriptionsListButtonRevertDnsTitle',
'subscriptionsListButtonRevertDnsHint',
'subscriptionActionRevertDns',
'subscriptionsListActionCancel',
'subscriptionsListButtonRemoveFromQueueTitle',
'subscriptionsListButtonRemoveFromQueueHint',
'subscriptionsListButtonRemoveMigratedTitle',
'subscriptionsListButtonRemoveMigratedHint',
'subscriptionActionShowLog',
]);
$this->includeMigratorJavaScript('subscription-operations.js');
$this->addJavaScriptLocaleKeys([
'subscriptionsListButtonReassignTitle',
'subscriptionsListButtonIpAddressesTitle',
'subscriptionsListButtonShowIpMappingTitle',
'subscriptionsListButtonShowIpMappingHint',
'subscriptionsListOperationsCanNotBeApplied',
'subscriptionsListTableSubscription',
'subscriptionsListTableOwner',
'hintOwnerByCustomerOwnedByReseller',
'hintOwnedByReseller',
'hintOwnerByCustomer',
'hintOwnedByAdministrator',
'administratorTitle',
'reassignedTo',
'subscriptionsListTablePlan',
'reassignedTo',
'subscriptionsListTableIP',
'ipv4Address',
'ipv6Address',
'nodeIP',
'subscriptionsListTableStatus',
'actionDetails',
'subscriptionsListStatusFinishedErrors',
'subscriptionsListTableActions',
'issuesPopupTitleSubscription',
'issuesPopupTitleConfiguration',
'issuesPopupTitleExtensions',
]);
$this->includeMigratorJavaScript('subscriptions-list.js');
$this->includeMigratorCss('subscriptions-list.css');

View File

@@ -1,19 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
echo $this->includeMigratorCss('radio-mode-selector.css');
$this->includeMigratorJavaScript('list-of-subscriptions-simple.js');
echo $this->renderTabs($this->tabs);
echo $this->serverInfoToolbar;
echo $this->progressStatus;
echo $this->popupPreChecks;
echo $this->form;
?>
<script>
//<![CDATA[
Jsw.onReady(function() {
configureFormSubmitPopup();
configureToggleExistingSubscriptions();
});
//]]>
</script>

View File

@@ -1,272 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
use Plesk\MigrationLibV8\Utils\StringUtils;
use PleskExt\PanelMigrator\AdvancedMode;
echo $this->renderTabs($this->tabs);
echo $this->serverInfoToolbar;
echo $this->progressStatus;
echo $this->popupResync;
echo $this->popupStatusDetails;
echo $this->popupPreChecks;
$this->passVariablesToJavaScript([
// initial set of data
'MIGRATION_STATUS_DATA' => $this->migrationStatusData,
// URL to update migration status data
'URL_GET_MIGRATION_STATUS' => $this->urlGetMigrationStatus,
// URL to start queue runner
'URL_RUN_QUEUE' => $this->urlRunQueue,
// Period between queue runner starts
'RUN_QUEUE_PERIOD' => 60 * 1000,
'SHOW_SERVER_CONFIGURATION_BLOCK' => $this->showServerConfigurationBlock,
'SHOW_EXTENSIONS_SETTINGS_BLOCK' => $this->showExtensionsSettingsBlock,
]);
$this->includeMigratorJavaScript('migration-status.js');
$this->includeMigratorCss('migration-status.css');
$this->includeMigratorJavaScript('run-queue-periodically.js');
function printStatusImages($viewScript)
{
echo <<<EOT
<img
class="migration-status-status-image image-status-success"
src="{$viewScript->migratorImage('subscription-status-success.png')}"
style="display: none;"
>
<img
class="migration-status-status-image image-status-warning"
src="{$viewScript->migratorImage('subscription-status-warning.png')}"
style="display: none;"
>
<img
class="migration-status-status-image image-status-failure"
src="{$viewScript->migratorImage('subscription-status-error.png')}"
style="display: none;"
>
EOT;
}
$this->addJavaScriptLocaleKeys([
'issuesPopupTitleSubscription',
'issuesPopupTitleReseller',
'issuesPopupTitleCustomer',
'issuesPopupTitleOverall',
'issuesPopupTitleServerConfiguration',
'issuesPopupTitleExtensions',
]);
?>
<!-- Queue column: subscriptions in progress and queued subscriptions-->
<div class="migration-status-block-queue">
<div class="migration-status-block-header">
<?php echo $this->lmsg('migrationQueue'); ?> -
<img
src="<?php echo $this->migratorImage('subscription-status-queue.png'); ?>"
class="migration-status-status-image"
>&nbsp;
<span id="queue-count">0</span>
</div>
<div>
<div id="overall-status" style="display: none;">
<img
class="migration-status-status-image image-status-in-progress"
src="<?php echo $this->migratorImage('subscription-status-in-progress.gif'); ?>"
>
<span><?php echo $this->lmsg('overallProgress'); ?></span>
<span> - </span>
<span id="overall-status-text"></span>
</div>
<?php foreach ($this->progressSubscriptions as $subscriptionProgress) { ?>
<div class="subscription-in-progress" style="display: none;">
<div>
<img
class="migration-status-status-image image-status-in-progress"
src="<?php echo $this->migratorImage('subscription-status-in-progress.gif'); ?>"
style="display: none;"
>
<img
class="migration-status-status-image image-status-on-hold"
src="<?php echo $this->migratorImage('subscription-status-queue.png'); ?>"
style="display: none;"
>
<span class="subscription-name" style="display: none;">
<?php echo htmlspecialchars($subscriptionProgress->getSubscriptionName()); ?>
</span>
<span class="subscription-name-normalized" style="display: none;">
<?php
echo htmlspecialchars(
StringUtils::normalizeDomainName(
$subscriptionProgress->getSubscriptionName()
)
);
?>
</span>
<span class="subscription-name-plain">
<?php echo htmlspecialchars($subscriptionProgress->getSubscriptionName()); ?>
</span>
<span class="subscription-name-link" style="display: none;">
<a href=""><?php echo htmlspecialchars($subscriptionProgress->getSubscriptionName()); ?></a>
</span>
<span class="status-separator"> - </span>
<span class="status-text"><?php echo htmlspecialchars($subscriptionProgress->getAction() ?: ''); ?></span>
</div>
<?php if (AdvancedMode::isEnabled()) { ?>
<div class="details-text-container" style="padding-left: 50px; display: none;">
<img
class="migration-status-status-image image-status-in-progress"
src="<?php echo $this->migratorImage('subscription-status-in-progress-details.gif'); ?>"
>
<span class="details-text" style="color: #707070">
<?php echo htmlspecialchars($subscriptionProgress->getDetails()); ?>
</span>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
<div id="migration-status-block-pre-checks">
<div class="migration-status-block-header"><?php echo $this->lmsg('preChecks'); ?></div>
<?php foreach ($this->preCheckTasks as $taskId => $taskInfo) { ?>
<div style="display: none;" class="migration-status-pre-check-task">
<div style="display: none;" class="task-id"><?php echo htmlspecialchars($taskId); ?></div>
<div><a href="javascript:;">Pre-migration checks (<?php echo htmlspecialchars($taskInfo['date']); ?>)</a></div>
</div>
<?php } ?>
</div>
</div>
<!-- Results column -->
<div class="migration-status-block-results">
<!-- Overall results -->
<div id="migration-status-block-results-overall">
<div class="migration-status-block-header"><?php echo $this->lmsg('resultsTitleOverall'); ?></div>
<div>
<div class="overallStatus">
<img
src="<?php echo $this->migratorImage('server-info-toolbar-subscriptions.png'); ?>"
class="migration-status-status-image"
>
<span>Overall</span>
<span><a class="action-details" href="javascript:;">[<?php echo $this->lmsg('actionDetails'); ?>]</a></span>
</div>
</div>
</div>
<div id="migration-status-block-results-server-settings">
<div class="migration-status-block-header"><?php echo $this->lmsg('resultsTitleServerConfiguration'); ?></div>
<div id="migration-status-block-results-server-configuration">
<div class="serverConfStatus">
<?php printStatusImages($this) ?>
<span>Configuration</span>
<span><a class="action-details" href="javascript:;">[<?php echo $this->lmsg('actionDetails'); ?>]</a></span>
</div>
</div>
<div id="migration-status-block-results-extensions">
<div class="extensionStatus">
<?php printStatusImages($this) ?>
<span>Extensions</span>
<span><a class="action-details" href="javascript:;">[<?php echo $this->lmsg('actionDetails'); ?>]</a></span>
</div>
</div>
</div>
<!-- Per-subscription results -->
<div id="migration-status-block-results-subscription">
<div class="migration-status-block-header">
<?php echo $this->lmsg('resultsTitleSubscriptions'); ?> -
<span class="count-block">
<img
src="<?php echo $this->migratorImage('subscription-status-success.png'); ?>"
class="migration-status-status-image"
>
<span id="success-count">0</span>
</span>
<span class="count-block">
<img
src="<?php echo $this->migratorImage('subscription-status-warning.png'); ?>"
class="migration-status-status-image"
>
<span id="warning-count">0</span>
</span>
<span class="count-block">
<img
src="<?php echo $this->migratorImage('subscription-status-error.png'); ?>"
class="migration-status-status-image"
>
<span id="failed-count">0</span>
</span>
</div>
<div>
<?php foreach ($this->progressSubscriptions as $subscriptionProgress) { ?>
<div class="subscription-finished" style="display: none;">
<?php printStatusImages($this) ?>
<span class="subscription-name" style="display: none;">
<?php echo htmlspecialchars($subscriptionProgress->getSubscriptionName()); ?>
</span>
<span class="subscription-name-normalized" style="display: none;">
<?php
echo htmlspecialchars(
StringUtils::normalizeDomainName(
$subscriptionProgress->getSubscriptionName()
)
);
?>
</span>
<span class="subscription-name-plain">
<?php echo htmlspecialchars($subscriptionProgress->getSubscriptionName()); ?>
</span>
<span class="subscription-name-link" style="display: none;">
<a href=""><?php echo htmlspecialchars($subscriptionProgress->getSubscriptionName()); ?></a>
</span>
<span>
<a class="action-details" href="javascript:;">[<?php echo $this->lmsg('actionDetails'); ?>]</a>
</span>
<span>
<a class="action-resync" href="javascript:;">[<?php echo $this->lmsg('subscriptionActionResync'); ?>]</a>
</span>
</div>
<?php } ?>
</div>
</div>
<!-- Per-reseller results -->
<div id="migration-status-block-results-reseller">
<div class="migration-status-block-header"><?php echo $this->lmsg('resultsTitleResellers') ?></div>
<div>
<?php foreach ($this->resellers as $resellerLogin => $resellerInfo) { ?>
<div class="resellerStatus">
<div class="resellerLogin" style="display: none;"><?php echo htmlspecialchars($resellerLogin); ?></div>
<img
src="<?php echo $this->migratorImage('server-info-toolbar-resellers.png'); ?>"
class="migration-status-status-image"
>
<span class=""><?php echo htmlspecialchars($resellerInfo['contact_name']); ?></span>
<span><a class="action-details">[<?php echo $this->lmsg('actionDetails'); ?>]</a></span>
</div>
<?php } ?>
</div>
</div>
<!-- Per-customer results -->
<div id="migration-status-block-results-customer">
<div class="migration-status-block-header"><?php echo $this->lmsg('resultsTitleCustomers'); ?></div>
<div>
<?php foreach ($this->customers as $customerLogin => $customerInfo) { ?>
<div class="customerStatus">
<div class="customerLogin" style="display: none;">
<?php echo htmlspecialchars($customerLogin); ?>
</div>
<img
src="<?php echo $this->migratorImage('server-info-toolbar-customers.png'); ?>"
class="migration-status-status-image"
>
<span class=""><?php echo htmlspecialchars($customerInfo['contact_name']); ?></span>
<span><a class="action-details">[<?php echo $this->lmsg('actionDetails'); ?>]</a></span>
</div>
<?php } ?>
</div>
</div>
</div>
&nbsp;

View File

@@ -1,85 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
use Plesk\MigrationLibV8\Plesk\PleskFunctions;
use PleskExt\PanelMigrator\AdvancedMode;
if (pm_ProductInfo::isWindows()) {
$this->passVariablesToJavaScript([
'MESSAGE_LABEL_BUILT_IN_ADMIN_LOGIN' => $this->lmsg('newMigrationFormBuiltInAdminLogin'),
'MESSAGE_LABEL_BUILT_IN_ADMIN_PASSWORD' => $this->lmsg('newMigrationFormBuiltInAdminPassword'),
'MESSAGE_LABEL_HELM_ADMIN_LOGIN' => $this->lmsg('newMigrationFormHelmAdminLogin'),
'MESSAGE_LABEL_HELM_ADMIN_PASSWORD' => $this->lmsg('newMigrationFormHelmAdminPassword'),
'MESSAGE_DOWNLOAD_RPC_AGENT' => $this->lmsg('downloadRpcAgent'),
'URL_DOWNLOAD_RPC_AGENT' => $this->urlDownloadRpcAgent,
]);
$this->includeMigratorJavaScript('new-migration-windows.js');
if (PleskFunctions::hasRemoteSmarterMail()) {
$this->includeMigratorJavaScript('new-migration-remote-smarter-mail.js');
}
} else {
$this->includeMigratorJavaScript('new-migration-unix.js');
}
if (AdvancedMode::isEnabled()) {
$this->includeMigratorJavaScript('new-migration-custom.js');
}
$this->passVariablesToJavaScript([
'URL_SELECT_OBJECTS_TO_MIGRATE' => $this->urlSelectObjectsToMigrate,
]);
$this->includeMigratorCss('image-selector.css');
?>
<?php echo $this->form ?>
<?php echo $this->popupFetchSource ?>
<script>
//<![CDATA[
Jsw.onReady(function() {
// Hack to make popup after form is submitted and processed at controller side:
// redefine _onSuccess function, which will display popup and call the original _onSuccess
// function.
var formComponent = Jsw.getComponent('new-migration-form');
var oldFunction = formComponent._onSuccess;
formComponent._onSuccess = function(req) {
var response = req.responseText.evalJSON();
var result = oldFunction.apply(this, arguments);
if (response.session) {
// Fill session field, so new session is not created on new form submit (for example in case of error).
// This field should be handled by controller code.
var elemSessionField = $('session');
elemSessionField.value = response.session;
if (response.success) {
// Show progress popup dialog.
showFetchSourcePopup(
response.session,
// On success function
function () {
Jsw.redirect(URL_SELECT_OBJECTS_TO_MIGRATE + '/session/' + response.session);
},
// On error function
function (errorId, errorMessage) {
// Add error message as status message to the top of the form, so user will still
// see the error message after popup is closed.
var message = formatStr(errorMessage);
if (errorId && errorId.indexOf('RPC_AGENT_') === 0) {
message += (
'<div style="padding-top: 15px;">' +
'<a href="' + URL_DOWNLOAD_RPC_AGENT + '">' +
MESSAGE_DOWNLOAD_RPC_AGENT +
'</a>' +
'<div>'
);
}
Jsw.addStatusMessage('error', message);
}
);
}
}
return result;
}
});
//]]>
</script>

View File

@@ -1,17 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
?>
<div class="s-btn" id="remove-session-button-<?php echo $this->sessionId; ?>" style="cursor: pointer; color: #2498e3">
<img src="<?php echo $this->migratorImage('list-of-migrations-finish-migration-button.png'); ?>"> <?php echo $this->lmsg('finishMigration'); ?>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
$('remove-session-button-<?php echo $this->sessionId; ?>').observe(
'click', function () {
finishMigration(<?php echo $this->sessionId; ?>);
}
);
});
//]]>
</script>

View File

@@ -1,13 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_GET_SUBSCRIPTIONS_IN_QUEUE_COUNT' => $this->urlGetSubscriptionsInQueueCount,
'URL_REMOVE_SESSION' => $this->urlRemoveSession,
'MESSAGE_FINISH_MIGRATION_CONFIRMATION' => $this->lmsg('finishMigrationConfirmation'),
'MESSAGE_FINISH_MIGRATION_STOP_TASKS' => $this->lmsg('finishMigrationStopTasks'),
'MESSAGE_FINISH_MIGRATION_YES' => $this->lmsg('finishMigrationYes'),
'MESSAGE_FINISH_MIGRATION_NO' => $this->lmsg('finishMigrationNo')
]);
?>
<?php $this->includeMigratorJavaScript('finish-migration-dialog.js'); ?>

View File

@@ -1,49 +0,0 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All Rights Reserved.
?>
<div class="form-row" id="<?php echo $this->id ? $this->id : $this->element->getId() . '-form-row'; ?>">
<div class="field-name">
<label for="<?php echo $this->element->getId(); ?>">
<?php echo $this->element->getLabel(); ?>
<?php if ($this->element->isRequired()): ?>
<span class="required">*</span>
<?php endif; ?>
</label>
</div>
<div class="field-value">
<div class="image-selector">
<?php foreach ($this->element->getMultiOptions() as $optionName => $optionTitle): ?>
<div class="image-selector-item">
<label class="image-selector-radio <?php echo ($optionName == $this->element->getValue()) ? 'checked' : ''; ?>">
<div>
<img class="image-selector-image" src="/modules/panel-migrator/images/<?php echo $this->element->getImage($optionName); ?>">
</div>
<div class="image-selector-text">
<input
type="radio"
id="<?php echo $this->element->getId() . "-$optionName"; ?>"
name="<?php echo $this->element->getFullyQualifiedName();?>"
class="image-selector-radio-input"
<?php echo ($optionName == $this->element->getValue()) ? 'checked="checked"' : ''; ?>
value="<?php echo $optionName; ?>"
>&nbsp;
<span class="image-selector-radio-label">
<?php echo false === $this->element->escape ? $optionTitle : $this->escape($optionTitle); ?>
</span>
</div>
</label>
</div>
<?php endforeach;?>
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
$$('.image-selector-radio input').invoke('observe', 'change', function (e) {
$$('.image-selector-radio').invoke('removeClassName', 'checked');
e.target.up('.image-selector-radio').addClassName('checked');
});
});
//]]>
</script>

View File

@@ -1,42 +0,0 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All Rights Reserved.
?>
<div class="form-row" id="<?php echo $this->id ? $this->id : $this->element->getId() . '-form-row'; ?>">
<div class="field-name"><label for="<?php echo $this->element->getId(); ?>">
<?php echo $this->element->getLabel(); ?>
<?php if ($this->element->isRequired()): ?>
<span class="required">*</span>
<?php endif; ?></label></div>
<div class="field-value">
<div class="migrate-by-mode-selector">
<?php foreach ($this->element->getMultiOptions() as $optionName => $optionTitle): ?>
<div class="migrate-by-mode-selector-item">
<label class="migrate-by-mode-selector-radio <?php echo ($optionName == $this->element->getValue()) ? 'checked' : ''; ?>">
<input type="radio" id="<?php echo $this->element->getId() . "-$optionName"; ?>" name="<?php
echo $this->element->getBelongsTo()
? $this->element->getBelongsTo() . '[' . $this->element->getName() . ']'
: $this->element->getName();
?>" class="migrate-by-mode-selector-radio-input" <?php echo ($optionName == $this->element->getValue()) ? 'checked="checked"' : ''; ?> <?php echo ($this->element->disable === true
|| (is_array($this->element->disable) && in_array($optionName, $this->element->disable)))
? 'disabled="disabled"' : ''; ?> value="<?php echo $optionName; ?>">
&nbsp;<img style="max-width: 32px; max-height: 32px;" src="<?php echo $this->migratorImage($this->element->getImage($optionName)); ?>"><span class="migrate-by-mode-selector-radio-label"><?php echo false === $this->element->escape ? $optionTitle : $this->escape($optionTitle); ?></span>
</label>
</div>
<?php endforeach;?>
</div>
<div style="padding-top: 5px; padding-bottom: 5px;">
<label for="show-existing-subscriptions">
<input type="checkbox" id="show-existing-subscriptions">
<?php echo $this->lmsg('selectObjectsFormShowExistingSubscriptions') ?>
</label>
</div>
<?php if ($this->element->getHintText()) { ?>
<span class="hint"><?php echo htmlspecialchars($this->element->getHintText()); ?></span>
<?php } ?>
</div>
</div>
<?php
$this->includeMigratorJavaScript('radio-mode-selector.js');
?>

View File

@@ -1,75 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
// Control to reassign migrated subscriptions to different client or reseller. Consists of:
// 1) Radio selector: whether reassign is enabled or not.
// 2) Lookup field: select new customer or reseller.
?>
<div class='form-row' id='<?php echo $this->element->getId();?>-form-row'>
<div class='field-name'>
<?php echo $this->elementPart($this->element)->label(); ?>
</div>
<div class='field-value'>
<div class="indent-box">
<input
type="radio"
name="<?php echo $this->element->getId();?>[enabled]"
value="false"
id="<?php echo $this->element->getId();?>-do-not-change"
class="radio"
checked="checked"
>
<div class="indent-box-content">
<label for="<?php echo $this->element->getId();?>-do-not-change">
<?php echo $this->labelDoNotChange; ?>
</label>
<span class="hint">
<?php echo $this->hintDoNotChange; ?>
</span>
</div>
</div>
<div class="indent-box">
<input
type="radio"
name="<?php echo $this->element->getId();?>[enabled]"
value="true"
id="<?php echo $this->element->getId();?>-reassign"
class="radio"
>
<div class="indent-box-content">
<label for="<?php echo $this->element->getId();?>-reassign">
<?php echo $this->labelReassign; ?>
</label>
<div class="form-row">
<div id='<?php echo $this->element->getId();?>-reassign-container'></div>
</div>
</div>
</div>
<span class="field-errors" style="display: none;"></span>
</div>
</div>
<?php $this->includeMigratorJavaScript('lookup-extended.js'); ?>
<?php $this->includeMigratorJavaScript('reassign-owner.js'); ?>
<script type="text/javascript">
//<![CDATA[
<?php
$lookupLocale = Zend_Json::encode(
array_merge(
Zend_Registry::get('translate')->getSection('components.elements.lookup'),
[
'label' => $this->label,
]
)
);
?>
Jsw.onReady(function() {
createReassignControl(
'<?php echo $this->element->getId();?>',
<?php echo Zend_Json::encode($this->data); ?>,
<?php echo $this->value ? Zend_Json::encode($this->value) : 'null'; ?>,
<?php echo $lookupLocale; ?>
);
});
//]]>
</script>

View File

@@ -1,22 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
?>
<div class='form-row' id='<?php echo $this->element->getId();?>-form-row'>
<div class='field-name'></div>
<div class='field-value'>
<div>
<?php
echo $this->lmsg(
'rpcAgentHint',
[
'download_link' => (
'<a href="' . $this->element->downloadUrl . '">' .
$this->lmsg('rpcAgentPackage') .
"</a>"
)
]
);
?>
</div>
</div>
</div>

View File

@@ -1,15 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_CANCEL' => $this->urlCancel,
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'popupCancelAllDescription',
'popupCancelAllButtonYes',
'popupCancelAllButtonNo',
'popupCancelAllInProgress',
]);
?>
<?php $this->includeMigratorJavaScript('popup/cancel_all.js'); ?>

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_CANCEL_SUBSCRIPTIONS' => $this->urlCancelSubscriptions,
'MESSAGE_POPUP_CANCEL_DESCRIPTION' => $this->lmsg('popupCancelDescription'),
'MESSAGE_POPUP_CANCEL_BUTTON_YES' => $this->lmsg('popupCancelButtonYes'),
'MESSAGE_POPUP_CANCEL_BUTTON_NO' => $this->lmsg('popupCancelButtonNo'),
]);
?>
<?php $this->includeMigratorJavaScript('popup/cancel.js'); ?>

View File

@@ -1,33 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_CHANGE_IP_SUBSCRIPTIONS' => $this->urlChangeIPSubscriptions,
'URL_LIST_IP_ADDRESSES' => $this->urlListIPAddresses,
'MESSAGE_POPUP_CHANGE_IP_TITLE_MULTIPLE' => $this->lmsg('popupChangeIpTitleMultiple'),
'MESSAGE_POPUP_CHANGE_IP_TITLE_SINGLE' => $this->lmsg('popupChangeIpTitleSingle'),
'MESSAGE_POPUP_CHANGE_IP_MAP_TO' => $this->lmsg('popupChangeIpMapTo'),
'MESSAGE_POPUP_CHANGE_IP_MAPPING_AUTO' => $this->lmsg('popupChangeIpMappingAuto'),
'MESSAGE_POPUP_CHANGE_IP_MAPPING_SHARED' => $this->lmsg('popupChangeIpMappingShared'),
'MESSAGE_POPUP_CHANGE_IP_MAPPING_DEDICATED' => $this->lmsg('popupChangeIpMappingDedicated'),
'MESSAGE_POPUP_CHANGE_IP_MAPPING_SELECTED' => $this->lmsg('popupChangeIpMappingSelected'),
'MESSAGE_POPUP_CHANGE_IP_MAP_TO_SELECTED' => $this->lmsg('popupChangeIpMapToSelected'),
'MESSAGE_POPUP_CHANGE_IP_IPV4' => $this->lmsg('popupChangeIpIpv4'),
'MESSAGE_POPUP_CHANGE_IP_IPV6' => $this->lmsg('popupChangeIpIpv6'),
'MESSAGE_POPUP_CHANGE_IP_BUTTON_OK' => $this->lmsg('popupChangeIpButtonOk'),
'MESSAGE_POPUP_CHANGE_IP_BUTTON_CANCEL' => $this->lmsg('popupChangeIpButtonCancel'),
'CHANGE_IP_LOCALE' => array_merge(
Zend_Registry::get('translate')->getSection('components.elements.lookup'),
[
'label' => $this->lmsg('popupChangeIpMapToSelected'),
]
)
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'changingButtonTitle',
]);
$this->includeMigratorCss('popup/popup.css');
?>
<?php $this->includeMigratorJavaScript('lookup-extended.js'); ?>
<?php $this->includeMigratorJavaScript('popup/change-ip.js'); ?>

View File

@@ -1,23 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_GET_PROGRESS' => $this->urlGetProgress,
'URL_CANCEL_FETCH_SOURCE' => $this->urlCancelFetchSource,
'URL_DOWNLOAD_RPC_AGENT' => $this->urlDownloadRpcAgent,
'FETCH_SOURCE_POLL_INTERVAL' => 1000
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'fetchSourceStarting',
'fetchSourceButtonCancel',
'fetchSourceButtonClose',
'fetchSourceFinished',
'fetchSourceCancelling',
'downloadRpcAgent'
]);
$this->includeMigratorCss('progress-bar.css');
$this->includeMigratorCss('popup/fetch-source.css');
$this->includeMigratorJavaScript('common.js');
$this->includeMigratorJavaScript('overall-status.js');
$this->includeMigratorJavaScript('popup/fetch-source.js');

View File

@@ -1,28 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_MIGRATE_SUBSCRIPTIONS' => $this->urlMigrateSubscriptions,
'URL_RUN_PRE_MIGRATION_CHECKS' => $this->urlRunPreMigrationChecks,
'MESSAGE_POPUP_MIGRATE_TITLE_MIGRATE_MULTIPLE' => $this->lmsg('popupMigrateTitleMigrateMultiple'),
'MESSAGE_POPUP_MIGRATE_TITLE_MIGRATE_SINGLE' => $this->lmsg('popupMigrateTitleMigrateSingle'),
'MESSAGE_POPUP_MIGRATE_SERVER_SETTINGS' => $this->lmsg('popupMigrateServerSettings'),
'MESSAGE_POPUP_MIGRATE_COPY_MAIL_SETTINGS' => $this->lmsg('popupMigrateCopyMailSettings'),
'MESSAGE_POPUP_MIGRATE_COPY_EXTENSIONS_SETTINGS' => $this->lmsg('popupMigrateCopyExtensionsSettings'),
'MESSAGE_POPUP_MIGRATE_COPY_ADMIN_PROFILE' => $this->lmsg('popupMigrateCopyAdminProfile'),
'MESSAGE_POPUP_MIGRATE_CONTENT' => $this->lmsg('popupMigrateContent'),
'MESSAGE_POPUP_MIGRATE_COPY_FILES' => $this->lmsg('popupMigrateCopyFiles'),
'MESSAGE_POPUP_MIGRATE_COPY_DATABASES' => $this->lmsg('popupMigrateCopyDatabases'),
'MESSAGE_POPUP_MIGRATE_COPY_MAIL' => $this->lmsg('popupMigrateCopyMail'),
'MESSAGE_POPUP_MIGRATE_COPY_ID' => $this->lmsg('popupMigrateCopyExternalId'),
'MESSAGE_POPUP_MIGRATE_BUTTON_OK' => $this->lmsg('popupMigrateButtonOk'),
'MESSAGE_POPUP_MIGRATE_BUTTON_CANCEL' => $this->lmsg('popupMigrateButtonCancel')
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'schedulingButtonTitle',
'popupMigrateContentHint',
'popupMigratePreChecks'
]);
?>
<?php $this->includeMigratorJavaScript('popup/migrate.js'); ?>

View File

@@ -1,22 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_POST_MIGRATION_CHECKS_SUBSCRIPTIONS' => $this->urlPostMigrationChecksSubscriptions,
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_TITLE_MULTIPLE' => $this->lmsg('popupPostMigrationChecksTitleMultiple'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_TITLE_SINGLE' => $this->lmsg('popupPostMigrationChecksTitleSingle'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_WHAT' => $this->lmsg('popupPostMigrationChecksWhat'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_SITES' => $this->lmsg('popupPostMigrationChecksSites'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_MAIL' => $this->lmsg('popupPostMigrationChecksMail'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_DATABASES' => $this->lmsg('popupPostMigrationChecksDatabases'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_DNS' => $this->lmsg('popupPostMigrationChecksDNS'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_USERS' => $this->lmsg('popupPostMigrationChecksUsers'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_BUTTON_OK' => $this->lmsg('popupPostMigrationChecksButtonOk'),
'MESSAGE_POPUP_POST_MIGRATION_CHECKS_BUTTON_CANCEL' => $this->lmsg('popupPostMigrationChecksButtonCancel'),
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'schedulingButtonTitle',
]);
?>
<?php $this->includeMigratorJavaScript('popup/post-migration-checks.js'); ?>

View File

@@ -1,30 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_GET_PROGRESS_PRE_CHECKS' => $this->urlGetProgress,
'URL_CANCEL_PRE_CHECKS' => $this->urlCancelPreChecks,
'URL_START_MIGRATION' => $this->urlStartMigration,
'URL_MIGRATION_STATUS' => $this->urlMigrationStatus,
'URL_LIST_OF_SUBSCRIPTIONS' => $this->urlListOfSubscriptions,
'URL_PRE_MIGRATION_CHECK_RESULTS' => $this->urlPreMigrationCheckResults,
'URL_HAS_PRE_MIGRATION_ISSUES' => $this->urlHasPreMigrationIssues,
'PRE_CHECKS_POLL_INTERVAL' => 1000
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'preMigrationChecksTitle',
'preMigrationChecksStarting',
'preMigrationChecksWaitingForTasks',
'preMigrationChecksSkipButton',
'preMigrationChecksCancelling',
'preMigrationChecksFinishedRedirecting',
'preMigrationChecksFinishedCheckIssues',
'preMigrationChecksFinishedStartingMigration',
'preMigrationChecksInBackgroud',
'waitButtonTitle'
]);
$this->includeMigratorCss('progress-bar.css');
$this->includeMigratorJavaScript('common.js');
$this->includeMigratorJavaScript('overall-status.js');
$this->includeMigratorJavaScript('popup/pre-checks.js');

View File

@@ -1,25 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_REASSIGN_OWNER_SUBSCRIPTIONS' => $this->urlReassignOwnerSubscriptions,
'MESSAGE_POPUP_REASSIGN_OWNER_TITLE_MULTIPLE' => $this->lmsg('popupReassignOwnerTitleMigrateMultiple'),
'MESSAGE_POPUP_REASSIGN_OWNER_TITLE_MIGRATE_SINGLE' => $this->lmsg('popupReassignOwnerTitleMigrateSingle'),
'MESSAGE_POPUP_REASSIGN_OWNER_NAME' => $this->lmsg('popupReassignOwnerName'),
'MESSAGE_POPUP_REASSIGN_OWNER_BUTTON_OK' => $this->lmsg('popupReassignOwnerButtonOk'),
'MESSAGE_POPUP_REASSIGN_OWNER_BUTTON_CANCEL' => $this->lmsg('popupReassignOwnerButtonCancel'),
'REASSIGN_OWNER_DATA' => $this->reassignControlData,
'REASSIGN_OWNER_LOCALE' => array_merge(
Zend_Registry::get('translate')->getSection('components.elements.lookup'),
[
'label' => $this->lmsg('popupReassignOwnerName'),
]
)
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'changingButtonTitle',
]);
$this->includeMigratorCss('popup/popup.css');
?>
<?php $this->includeMigratorJavaScript('popup/reassign-owner.js'); ?>

View File

@@ -1,25 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_REASSIGN_PLAN_SUBSCRIPTIONS' => $this->urlReassignPlanSubscriptions,
'URL_GET_REASSIGN_PLAN_CONTROL_DATA' => $this->urlGetReassignPlanControlData,
'MESSAGE_POPUP_REASSIGN_PLAN_TITLE_MULTIPLE' => $this->lmsg('popupReassignPlanTitleMigrateMultiple'),
'MESSAGE_POPUP_REASSIGN_PLAN_TITLE_MIGRATE_SINGLE' => $this->lmsg('popupReassignPlanTitleMigrateSingle'),
'MESSAGE_POPUP_REASSIGN_PLAN_NEW_PLAN' => $this->lmsg('popupReassignPlanNewPlan'),
'MESSAGE_POPUP_REASSIGN_PLAN_BUTTON_OK' => $this->lmsg('popupReassignPlanButtonOk'),
'MESSAGE_POPUP_REASSIGN_PLAN_BUTTON_CANCEL' => $this->lmsg('popupReassignPlanButtonCancel'),
'REASSIGN_PLAN_LOCALE' => array_merge(
Zend_Registry::get('translate')->getSection('components.elements.lookup'),
[
'label' => $this->lmsg('popupReassignPlanNewPlan'),
]
)
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'changingButtonTitle',
]);
$this->includeMigratorCss('popup/popup.css');
?>
<?php $this->includeMigratorJavaScript('popup/reassign-plan.js'); ?>

View File

@@ -1,15 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_REMOVE_SUBSCRIPTIONS' => $this->urlRemoveSubscriptions,
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'popupRemoveDescription',
'popupRemoveButtonYes',
'popupRemoveButtonNo',
'popupRemoveInProgress',
]);
?>
<?php $this->includeMigratorJavaScript('popup/remove.js'); ?>

View File

@@ -1,26 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_RESYNC_SUBSCRIPTIONS' => $this->urlResyncSubscriptions,
'MESSAGE_POPUP_RESYNC_TITLE_MULTIPLE' => $this->lmsg('popupResyncTitleMultiple'),
'MESSAGE_POPUP_RESYNC_TITLE_SINGLE' => $this->lmsg('popupResyncTitleSingle'),
'MESSAGE_POPUP_RESYNC_CONTENT' => $this->lmsg('popupResyncContent'),
'MESSAGE_POPUP_RESYNC_SERVER_SETTINGS' => $this->lmsg('popupResyncServerSettings'),
'MESSAGE_POPUP_RESYNC_BUSINESS_OBJECTS' => $this->lmsg('popupResyncBusinessObjects'),
'MESSAGE_POPUP_RESYNC_FILES' => $this->lmsg('popupResyncFiles'),
'MESSAGE_POPUP_RESYNC_DATABASES' => $this->lmsg('popupResyncDatabases'),
'MESSAGE_POPUP_RESYNC_MAIL' => $this->lmsg('popupResyncMail'),
'MESSAGE_POPUP_RESYNC_ID' => $this->lmsg('popupResyncId'),
'MESSAGE_POPUP_RESYNC_MAIL_SETTINGS' => $this->lmsg('popupResyncMailSettings'),
'MESSAGE_POPUP_RESYNC_ADMIN_PROFILE' => $this->lmsg('popupResyncAdminProfile'),
'MESSAGE_POPUP_RESYNC_EXTENSIONS_SETTINGS' => $this->lmsg('popupResyncExtensionsSettings'),
'MESSAGE_POPUP_RESYNC_BUTTON_OK' => $this->lmsg('popupResyncButtonOk'),
'MESSAGE_POPUP_RESYNC_BUTTON_CANCEL' => $this->lmsg('popupResyncButtonCancel'),
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'schedulingButtonTitle',
]);
?>
<?php $this->includeMigratorJavaScript('popup/resync.js'); ?>

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_REVERT_DNS_SUBSCRIPTIONS' => $this->urlRevertDnsSubscriptions,
'MESSAGE_POPUP_REVERT_DNS_DESCRIPTION' => $this->lmsg('popupRevertDnsDescription'),
'MESSAGE_POPUP_REVERT_DNS_BUTTON_YES' => $this->lmsg('popupRevertDnsButtonYes'),
'MESSAGE_POPUP_REVERT_DNS_BUTTON_NO' => $this->lmsg('popupRevertDnsButtonNo'),
]);
?>
<?php $this->includeMigratorJavaScript('popup/revert-dns.js'); ?>

View File

@@ -1,30 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_CHANGE_IP_SUBSCRIPTIONS' => $this->urlChangeIPSubscriptions,
'URL_LIST_PLESK_MULTI_SERVER_NODES' => $this->urlListPleskMultiServerNodes,
'SELECT_NODE_LOCALE' => array_merge(
Zend_Registry::get('translate')->getSection('components.elements.lookup'),
[
'label' => $this->lmsg('popupSelectNodeNode'),
]
)
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'popupSelectNodeTitleMultiple',
'popupSelectNodeTitleSingle',
'popupSelectNodeNode',
'popupSelectNodeIPv4Type',
'popupSelectNodeIPv6Type',
'popupSelectNodeIPNone',
'popupSelectNodeIPShared',
'popupSelectNodeIPDedicated',
'popupSelectNodeButtonOk',
'popupSelectNodeButtonCancel',
]);
$this->includeMigratorCss('popup/popup.css');
?>
<?php $this->includeMigratorJavaScript('lookup-extended.js'); ?>
<?php $this->includeMigratorJavaScript('popup/select-node.js'); ?>

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->includeMigratorJavaScript('date.js');
$this->includeMigratorJavaScript('popup/status-details.js');
$this->includeMigratorCss('popup/status-details.css');
$this->addJavaScriptLocaleKeys([
'popupStatusDetailsNoIssues',
'popupStatusDetailsButtonOk'
]);

View File

@@ -1,21 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'URL_SWITCH_DNS_SUBSCRIPTIONS' => $this->urlSwitchDnsSubscriptions,
'MESSAGE_POPUP_SWITCH_DNS_TITLE_MULTIPLE' => $this->lmsg('popupSwitchDnsTitleMultiple'),
'MESSAGE_POPUP_SWITCH_DNS_TITLE_SINGLE' => $this->lmsg('popupSwitchDnsTitleSingle'),
'MESSAGE_POPUP_SWITCH_DNS_BEFORE' => $this->lmsg('popupSwitchDnsBefore'),
'MESSAGE_POPUP_SWITCH_DNS_RESYNC_BUSINESS_OBJECTS' => $this->lmsg('popupSwitchDnsResyncBusinessObjects'),
'MESSAGE_POPUP_SWITCH_DNS_RESYNC_FILES' => $this->lmsg('popupSwitchDnsResyncFiles'),
'MESSAGE_POPUP_SWITCH_DNS_RESYNC_DATABASES' => $this->lmsg('popupSwitchDnsResyncDatabases'),
'MESSAGE_POPUP_SWITCH_DNS_RESYNC_MAIL' => $this->lmsg('popupSwitchDnsResyncMail'),
'MESSAGE_POPUP_SWITCH_DNS_BUTTON_OK' => $this->lmsg('popupSwitchDnsButtonOk'),
'MESSAGE_POPUP_SWITCH_DNS_BUTTON_CANCEL' => $this->lmsg('popupSwitchDnsButtonCancel'),
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'dnsSwitchDescription',
'schedulingButtonTitle',
]);
$this->includeMigratorJavaScript('popup/switch-dns.js');

View File

@@ -1,158 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->passVariablesToJavaScript([
'SHOW_STATUS_ICONS' => $this->showStatusIcons,
'SHOW_ADD_SUBSCRIPTIONS_LINK' => $this->showAddSubscriptionsLink,
'PROGRESS_STATUS_UPDATE_INTERVAL' => 3000,
'SESSION_STATUS' => $this->sessionStatus,
'URL_GET_SESSION_STATUS' => $this->urlGetSessionStatus,
'MESSAGE_SUBSCRIPTIONS_IN_QUEUE' => $this->lmsg('progressStatusSubscriptionsInQueue'),
'MESSAGE_SUBSCRIPTIONS_MIGRATED' => $this->lmsg('progressStatusSubscriptionsMigrated'),
'MESSAGE_SUBSCRIPTIONS_NOT_MIGRATED' => $this->lmsg('progressStatusSubscriptionsNotMigrated'),
'MESSAGE_ALL_SUBSCRIPTIONS_MIGRATED' => $this->lmsg('progressStatusAllSubscriptionsMigrated'),
]);
$this->includeMigratorJavaScript('common.js');
$this->includeMigratorJavaScript('progress-status.js');
$this->includeMigratorCss('progress-status.css');
$this->includeMigratorCss('gauge.css');
echo $this->popupCancelAll;
?>
<div id="progress-status" class="progress-status-container">
<?php // Situation #1: migration was not started yet ?>
<div id="progress-status-not-started" style="display: none">
<div class="progress-status-msg-box-not-finished">
<div class="progress-status-migration-status-row">
<?php echo $this->lmsg('progressStatusMigrationStatus') ?>
</div>
<div>
<?php echo $this->lmsg('progressStatusNotStarted'); ?>
<span class="progress-status-add-subscriptions-link">
<a href="<?php echo $this->urlAddSubscriptionsToMigrate; ?>">[<?php echo $this->lmsg('progressStatusSelectSubscriptionsToMigrate'); ?>]</a>
</span>
</div>
</div>
</div>
<?php // Situation #2: migration is in progress right now: display progress bar ?>
<div id="progress-status-in-progress" style="display: none;">
<div class="progress-status-msg-box-not-finished">
<div class="progress-status-migration-status-row">
<?php echo $this->lmsg('progressStatusMigrationStatus') ?>
</div>
<div class="progress-status-gauge-row">
<span class="migrator-gauge-block">
<span title="" class="migrator-gauge-wrapper not_empty">
<span class="migrator-gauge-container">
<?php
// Progress bar element, will have "width" CSS property set from JavaScript
// according to the current progress
?>
<span class="migrator-gauge-filled" id="progress-status-progress-bar"></span>
</span>
</span>
</span>
</div>
<div class="progress-status-bottom-row">
<div>
<span id="progress-status-text-subscriptions-in-queue"></span>
<a href="javascript:;" id="progress-status-cancel">[<?php echo $this->lmsg('progressStatusCancel'); ?>]</a>
</div>
<div class="progress-status-count-box">
<div class="progress-status-count-item progress-status-count-item-success" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-success.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-success">-</span>
</a>
</div>
<div class="progress-status-count-item progress-status-count-item-failed" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-error.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-failed">-</span>
</a>
</div>
<div class="progress-status-count-item progress-status-count-item-warning" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-warning.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-warning">-</span>
</a>
</div>
</div>
</div>
</div>
</div>
<?php // Situation #3: migration finished for several (but not all) subscriptions ?>
<div id="progress-status-queue-finished" style="display: none">
<div class="progress-status-msg-box-finished">
<div class="progress-status-top-row">
<span id="progress-status-text-subscriptions-migrated"></span>
</div>
<div class="progress-status-bottom-row">
<div>
<span id="progress-status-text-subscriptions-not-migrated"></span>
<span class="progress-status-add-subscriptions-link">
<a href="<?php echo $this->urlAddSubscriptionsToMigrate; ?>">[<?php echo $this->lmsg('progressStatusSelectSubscriptionsToMigrate'); ?>]</a>
</span>
</div>
<div class="progress-status-count-box">
<div class="progress-status-count-item progress-status-count-item-success" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-success.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-success">-</span>
</a>
</div>
<div class="progress-status-count-item progress-status-count-item-failed" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-error.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-failed">-</span>
</a>
</div>
<div class="progress-status-count-item progress-status-count-item-warning" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-warning.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-warning">-</span>
</a>
</div>
</div>
</div>
</div>
</div>
<?php // Situation #4: migration finished for all subscriptions of the server ?>
<div id="progress-status-all-migrated" style="display: none">
<div class="progress-status-msg-box-finished">
<div class="progress-status-top-row">
<span id="progress-status-text-all-subscriptions-migrated"></span>
</div>
<div class="progress-status-bottom-row">
<div>
<?php echo $this->lmsg('progressStatusFinished'); ?>
</div>
<div class="progress-status-count-box">
<div class="progress-status-count-item progress-status-count-item-success" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-success.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-success">-</span>
</a>
</div>
<div class="progress-status-count-item progress-status-count-item-failed" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-error.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-failed">-</span>
</a>
</div>
<div class="progress-status-count-item progress-status-count-item-warning" style="display: none">
<a href="">
<img src="<?php echo $this->migratorImage('subscription-status-warning.png'); ?>" class="progress-status-count-icon">
<span class="progress-status-count-value-warning">-</span>
</a>
</div>
</div>
</div>
</div>
</div>
<?php // Situation #5: migration failed with overall failure ?>
<div id="progress-status-overall-failure" style="display: none">
<div class="progress-status-msg-box-failed">
<span id="progress-status-text-overall-failure"></span>
</div>
</div>
</div>

View File

@@ -1,98 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
use PleskExt\PanelMigrator\CommonConstants;
echo $this->popupFetchSource;
$this->includeMigratorCss('server-info-toolbar.css');
?>
<div class="clearfix">
<div class="server-info-toolbar">
<div class="server-info-toolbar-info">
<div class="server-info-toolbar-info-item">
<img src="<?php echo $this->migratorImage('server-info-toolbar-source-server.png'); ?>" class="server-info-toolbar-icon"> <?php echo $this->lmsg('serverInfoSourceServer'); ?>
</div>
<div class="server-info-toolbar-info-item">
<img src="<?php echo $this->migratorImage('server-info-toolbar-subscriptions.png'); ?>" class="server-info-toolbar-icon"> <?php echo $this->lmsg('serverInfoSubscriptions'); ?> <?php echo $this->subscriptionsCount; ?>,
</div>
<div class="server-info-toolbar-info-item">
<img src="<?php echo $this->migratorImage('server-info-toolbar-service-plans.png'); ?>" class="server-info-toolbar-icon"> <?php echo $this->lmsg('serverInfoServicePlans'); ?> <?php echo $this->servicePlansCount; ?>,
</div>
<div class="server-info-toolbar-info-item">
<img src="<?php echo $this->migratorImage('server-info-toolbar-customers.png'); ?>" class="server-info-toolbar-icon"> <?php echo $this->lmsg('serverInfoCustomers'); ?> <?php echo $this->customersCount; ?>,
</div>
<div class="server-info-toolbar-info-item">
<img src="<?php echo $this->migratorImage('server-info-toolbar-resellers.png'); ?>" class="server-info-toolbar-icon"> <?php echo $this->lmsg('serverInfoResellers'); ?> <?php echo $this->resellersCount; ?>
</div>
</div>
<div class="server-info-toolbar-actions">
<?php if (
$this->listOfSubscriptionsMode ==
CommonConstants::LIST_OF_SUBSCRIPTIONS_MODE_SIMPLE
) { ?>
<a class="s-btn" href="<?php echo $this->urlListOfSubscriptionsAdvanced; ?>">
<?php echo $this->lmsg('serverInfoButtonSwitchToAdvanced'); ?>
</a>
<?php } else if (
$this->listOfSubscriptionsMode ==
CommonConstants::LIST_OF_SUBSCRIPTIONS_MODE_ADVANCED
) { ?>
<a class="s-btn" href="<?php echo $this->urlListOfSubscriptionsSimple; ?>">
<?php echo $this->lmsg('serverInfoButtonSwitchToSimple'); ?>
</a>
<?php } ?>
<a class="s-btn" href="<?php echo $this->urlSettings; ?>" id="server-info-toolbar-button-settings"><?php echo $this->lmsg('serverInfoButtonSettings'); ?></a>
<a class="s-btn" href="javascript:;" id="server-info-toolbar-button-reload-source-data"><?php echo $this->lmsg('serverInfoButtonReload'); ?></a>
<a class="s-btn" id="server-info-toolbar-button-finish-migration"><?php echo $this->lmsg('serverInfoButtonFinishMigration'); ?></a>
</div>
</div>
</div>
<?php
// Include everything required for finish migration dialog
echo $this->finishMigrationDialog;
?>
<?php
// Handler for finish migration button
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
$('server-info-toolbar-button-finish-migration').observe(
'click', function () {
finishMigration(<?php echo $this->sessionId; ?>)
}
);
$('server-info-toolbar-button-reload-source-data').observe(
'click', function() {
new Ajax.Request(
<?php echo Zend_Json::encode($this->urlReloadSourceData); ?>, {
onSuccess: function() {
showFetchSourcePopup(
<?php echo Zend_Json::encode($this->sessionId); ?>,
function() {
location.reload();
}
);
}
}
);
}
);
});
//]]>
</script>
<?php if ($this->reloadRunning) { ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
showFetchSourcePopup(
<?php echo Zend_Json::encode($this->sessionId); ?>,
function() {
Jsw.redirect(<?php echo Zend_Json::encode($this->onReloadUrl); ?>);
}
);
});
//]]>
</script>
<?php } ?>

View File

@@ -1,45 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->includeMigratorCss('gauge.css');
?>
<?php // Call JavaScript function to update status periodically ?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
updateSessionStatus(
<?php echo Zend_Json::encode($this->sessionId); ?>,
<?php echo Zend_Json::encode($this->sessionStatus); ?>
);
periodicUpdateSessionStatus(<?php echo json_encode($this->sessionId); ?>);
});
//]]>
</script>
<?php // Situation #1: migration is in progress ?>
<div id="<?php $this->sessionElemId('block-in-progress'); ?>" style="display: none;">
<span class="migrator-gauge-block">
<span title="" class="migrator-gauge-wrapper not_empty">
<span class="migrator-gauge-container">
<?php
// Progress bar element, will have "width" CSS property set from JavaScript
// according to the current progress
?>
<span class="migrator-gauge-filled" id="<?php $this->sessionElemId('progress-bar') ?>"></span>
</span>
</span>
<span class="migrator-gauge-legend" id="<?php $this->sessionElemId('text-in-progress'); ?>"></span>
</span>
</div>
<?php // Situation #2: migration finished successfully for all subscriptions, whole server was migrated ?>
<div id="<?php $this->sessionElemId('block-all-migrated'); ?>" style="display: none;">
<img src="<?php echo $this->migratorImage('list-of-migrations-all-subscriptions-migrated.png'); ?>">
<span id="<?php $this->sessionElemId('text-all-migrated'); ?>"></span>
</div>
<?php // Situation #3: migration finished for some subscriptions, but not for the whole server ?>
<div id="<?php $this->sessionElemId('block-migrated'); ?>" style="display: none;">
<span id="<?php $this->sessionElemId('text-migrated'); ?>"></span>
</div>
<?php // Situation #4: not started, for example if bad SSH password was specified and migration list was not create ?>
<div id="<?php $this->sessionElemId('block-not-started'); ?>" style="display: none;">
<span id="<?php $this->sessionElemId('text-not-started'); ?>">-</span>
</div>

View File

@@ -1,101 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
/**
* @var \PleskExt\PanelMigrator\Backend\Report $report
*/
$report = $this->report;
$affectedObjects = [];
foreach ($report->getAllIssues() as $issueNum => $issue) {
$affectedObjects[$issueNum] = $issue->getAffectedObjects();
}
echo $this->popupPreChecks;
$this->passVariablesToJavaScript([
'URL_START_MIGRATION' => $this->urlStartMigration,
'URL_REFRESH_PRE_MIGRATION_CHECKS' => $this->urlRefreshPreMigrationChecks,
'URL_DISCARD_PRE_MIGRATION_CHECKS' => $this->urlDiscardPreMigrationChecks,
'URL_MIGRATION_STATUS' => $this->urlMigrationStatus,
'URL_LIST_OF_SUBSCRIPTIONS' => $this->urlListOfSubscriptions,
'AFFECTED_OBJECTS' => $affectedObjects,
'MAX_AFFECTED_OBJECTS_INLINE' => 3,
'TASK_ID' => $this->taskId,
'REDIRECT_TO_LIST_OF_SUBSCRIPTIONS' => $this->redirectToListOfSubscriptions,
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
'preMigrationResultsTitleAffectedObjects',
'preMigrationResultsTitleAffectedSubscriptions',
'preMigrationResultsTitleAffectedMssqlServers',
'preMigrationResultsDescriptionAffectedObjects',
'preMigrationResultsDescriptionAffectedSubscriptions',
'preMigrationResultsDescriptionAffectedMssqlServers',
'preMigrationResultsAffectedObjectButtonClose',
'preMigrationResultsButtonContinueHint',
'preMigrationResultsButtonRefreshHint',
'preMigrationResultsButtonCloseHint',
'preMigrationResultsButtonDiscardHint',
'waitButtonTitle',
]);
$this->includeMigratorJavaScript('pre-migration-check-results.js');
$this->includeMigratorCss('pre-migration-check-results.css');
function severityIcon($severity) {
if ($severity == \PleskExt\PanelMigrator\Backend\Issue::SEVERITY_ERROR) {
return 'subscription-status-error.png';
} else if ($severity == \PleskExt\PanelMigrator\Backend\Issue::SEVERITY_WARNING) {
return 'subscription-status-warning.png';
} else {
return 'subscription-status-success.png';
}
}
$issues = $report->getAllIssues();
?>
<?php if (count($issues) > 0) { ?>
<table>
<?php foreach ($report->getAllIssues() as $issueNum => $issue) { ?>
<tr class="<?php echo $issueNum % 2 ? 'odd' : 'even';?>">
<td style="padding: 6px; 8px;">
<div style="font-weight: bold"><?php echo htmlspecialchars($issue->getReportPathText()); ?></div>
<div class="problem-text">
<img src="<?php echo $this->migratorImage(severityIcon($issue->getSeverity())); ?>" style="width: 1em; height: 1em;">
<?php echo nl2br(htmlspecialchars($issue->getProblemText())); ?>
</div>
<?php if (!empty($issue->getAffectedObjects())) {?>
<div class="affected-objects" style="display: none;">
<div class="issue-num" style="display: none"><?php echo $issueNum; ?></div>
</div>
<?php } ?>
<?php if ($issue->getSolutionText()) { ?>
<div class="solution-text"><?php echo nl2br(htmlspecialchars($issue->getSolutionText())); ?></div>
<?php } ?>
<?php if ($issue->getSoltionDownloadRpcAgent()) { ?>
<div class="solution-download-rpc-agent">
<img src="<?php echo $this->migratorImage('download-rpc-agent.png'); ?>" style="width: 16px; height 16px;">&nbsp;
<a href="<?php echo $this->urlDownloadRpcAgent; ?>"><?php echo $this->lmsg('downloadRpcAgent'); ?></a>
</div>
<?php } ?>
</td>
</tr>
<?php } ?>
</table>
<?php } else { ?>
<?php echo $this->lmsg('preMigrationResultsNoIssues'); ?>
<?php } ?>
<div class="btns-box">
<span class="btn action">
<button name="continue" type="button" id="pre-checks-continue"><?php echo $this->lmsg('preMigrationResultsButtonContinue'); ?></button>
</span>
<span class="btn">
<button name="refresh" type="button" id="pre-checks-refresh"><?php echo $this->lmsg('preMigrationResultsButtonRefresh'); ?></button>
</span>
<span class="btn">
<button name="close" type="button" id="pre-checks-close"><?php echo $this->lmsg('preMigrationResultsButtonClose'); ?></button>
</span>
<span class="btn">
<button name="discard" type="button" id="pre-checks-discard"><?php echo $this->lmsg('preMigrationResultsButtonDiscard'); ?></button>
</span>
</div>

View File

@@ -1,9 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->includeMigratorJavaScript('settings.js');
?>
<div style="padding-bottom: 10px;">
<?php echo $this->lmsg('settingsApplicationNote'); ?>
</div>
<?php echo $this->form ?>

View File

@@ -1,11 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
$this->includeMigratorCss('view-log.css');
$this->includeMigratorJavaScript('common.js');
$this->includeMigratorJavaScript('view-log.js');
echo $this->renderTabs($this->tabs);
echo $this->renderSmallTools($this->tools);
echo $this->logHtml;

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
echo $this->form;

View File

@@ -1,39 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
?>
<div class="list">
<table>
<tr>
<th>Name</th>
<th>Description</th>
<th>Size</th>
<th></th>
<th></th>
<th></th>
</tr>
<?php foreach ($this->files as $fileInfo) {
$file = $fileInfo['name'];
$important = $fileInfo['important'];
$size = $fileInfo['size'];
$description = $fileInfo['description'];
// replace directory separator with ":" as Plesk for Windows environment does not allow
// to pass "/" or "\" as separator in GET argument;
// backward replace is performed in \PleskExt\PanelMigrator\Controller\ManageSessionFiles::_getFullFileName
$filenameEncoded = urlencode(str_replace(DIRECTORY_SEPARATOR, ':', $file));
$viewUrl = $this->urlViewSessionFile . '/filename/' . $filenameEncoded;
$downloadUrl = $this->urlDownloadSessionFile . '/filename/' . $filenameEncoded;
$editUrl = $this->urlEditSessionFile . '/filename/' . $filenameEncoded;
?>
<tr style="<?php if ($important) { echo 'font-weight: bold'; } ?>">
<td><?php echo htmlspecialchars($file); ?></td>
<td><?php echo htmlspecialchars($description); ?></td>
<td><?php echo htmlspecialchars($size); ?></td>
<td><a href="<?php echo htmlentities($viewUrl); ?>">View</a></td>
<td><a href="<?php echo htmlentities($downloadUrl); ?>">Download</a></td>
<td><a href="<?php echo htmlentities($editUrl); ?>">Edit</a></td>
</tr>
<?php } ?>
</table>
</div>

View File

@@ -1,19 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
?>
<textarea readonly="readonly" spellcheck="false" style="width: 100%; height: 600px;"><?php echo htmlspecialchars($this->fileContents); ?></textarea>
<div class="btns-box">
<div class="box-area">
<div class="form-row">
<span id="btn-cancel" class="btn"><button type="button" value="" name="cancel">Cancel</button></span>
<script type="text/javascript">
Jsw.onReady(function() {
$('btn-cancel').observe('click', function() {
Jsw.redirect(<?php echo json_encode($this->cancelUrl); ?>);
});
});
</script>
</div>
</div>
</div>

View File

@@ -1,16 +0,0 @@
<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
?>
<div class="msg-box msg-warning"><div><div><div><div><div><div class="msg-content">
<?php
if (\pm_Session::getClient()->isAdmin()) {
echo pm_Locale::lmsg("installSiteImportAdmin");
} else {
echo pm_Locale::lmsg("installSiteImportCustomer");
}
?>
</div></div></div></div></div></div></div>