cpanel
10 months ago
manual
9 months ago
progress
9 months ago
completed.php
10 months ago
connect-to-server.php
10 months ago
cpanel-check.php
10 months ago
failure.php
10 months ago
local-migration-completed.php
10 months ago
navigation.php
9 months ago
pro-tip.php
10 months ago
select-migration-method.php
10 months ago
upload-progress.php
10 months ago
connect-to-server.php
132 lines
| 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 | <input type="hidden" id="connectToServer" value="<?php echo esc_html(wp_create_nonce('connect_to_server')); ?>"> |
| 3 | |
| 4 | <div class="transferito__three-columns"> |
| 5 | <div class="transferito__column transferito__navigation-column"> |
| 6 | <?php |
| 7 | $data['sidebarNavigation'] = [ |
| 8 | 'destinationURL' => 'completed', |
| 9 | 'connectToServer' => 'active', |
| 10 | 'emptyItem1' => 'disabled', |
| 11 | 'emptyItem2' => 'disabled', |
| 12 | 'emptyItem3' => 'disabled' |
| 13 | ]; |
| 14 | include getTransferitoViewPath('parts/migration/navigation'); |
| 15 | ?> |
| 16 | |
| 17 | </div> |
| 18 | <div id="connectToServerScreen" class="transferito__column transferito__main-column"> |
| 19 | <div class="transferito-text__h1">Connect to Destination Server</div> |
| 20 | <div class="transferito__content-container"> |
| 21 | |
| 22 | <div class="transferito-connect-to-server"> |
| 23 | |
| 24 | <div class="transferito-connect-to-server__verification"> |
| 25 | |
| 26 | <div id="destinationServerCheckStart" class="transferito-connect-to-server__verification-instructions"> |
| 27 | <div class="transferito-connect-to-server__main-container transferito-connect-to-server__main-container--border"> |
| 28 | <div class="transferito-connect-to-server__text-container"> |
| 29 | <div class="transferito-connect-to-server__title transferito-text__p1--bold"> |
| 30 | 1. Download the verification file |
| 31 | </div> |
| 32 | <div class="transferito-connect-to-server__text transferito-text__small"> |
| 33 | The verification file allows us to connect to your destination server |
| 34 | </div> |
| 35 | </div> |
| 36 | <div class="transferito-connect-to-server__button-container"> |
| 37 | <button id="downloadConnectionFile" class="transferito-button transferito-button__primary transferito-button--small transferito__download-verification-file">DOWNLOAD FILE</button> |
| 38 | </div> |
| 39 | </div> |
| 40 | |
| 41 | <div class="transferito-connect-to-server__main-container"> |
| 42 | <div class="transferito-connect-to-server__text-container"> |
| 43 | <div class="transferito-connect-to-server__title transferito-text__p1--bold"> |
| 44 | 2. Upload the verification file |
| 45 | </div> |
| 46 | <div class="transferito-connect-to-server__text transferito-text__small"> |
| 47 | To the root directory for <span class="transferito-connect-to-server__text--bold-underlined"><?php echo esc_html($data['url']); ?></span> |
| 48 | </div> |
| 49 | </div> |
| 50 | <div class="transferito-connect-to-server__button-container"> |
| 51 | <button |
| 52 | id="helpUploadVerificationFile" |
| 53 | data-transferito-modal="helpConnectingToYourFTPServer" |
| 54 | class="transferito-button transferito-button__primary--blue transferito-button--small transferito__get-upload-help transferito-open-modal">HELP UPLOADING?</button> |
| 55 | </div> |
| 56 | </div> |
| 57 | </div> |
| 58 | |
| 59 | <div id="destinationServerConnectionCheckInProgress" class="transferito-connect-to-server__verification-checking transferito__hide-element"> |
| 60 | <?php |
| 61 | $data = [ |
| 62 | 'removeOneColumnClasses' => true, |
| 63 | 'mainMessage' => 'We\'ll wait for you to upload verification file', |
| 64 | 'secondaryMessage' => 'You\'ll be able to proceed when your file has been uploaded', |
| 65 | ]; |
| 66 | include getTransferitoViewPath('parts/loading'); |
| 67 | ?> |
| 68 | </div> |
| 69 | |
| 70 | <div id="destinationServerCheckCompletion" class="transferito-connect-to-server__verification-complete transferito__hide-element"> |
| 71 | <div class="transferito-navigation__item-icon "> |
| 72 | <div class="transferito-icon transferito-icon--completed"></div> |
| 73 | </div> |
| 74 | <div class="transferito-directory-selection__check-text">We have successfully connected to your Destination Server</div> |
| 75 | </div> |
| 76 | |
| 77 | <div id="destinationServerCheckFailure" class="transferito-connect-to-server__verification-complete transferito__hide-element"> |
| 78 | <div class="transferito-migration-progress__step-icon"> |
| 79 | <div class="transferito-icon transferito-icon--exclamation-mark"></div> |
| 80 | </div> |
| 81 | <div class="transferito-directory-selection__check-text transferito-connect-to-server__text--no-added-padding">We have failed to process your Download Request - Please try again shortly</div> |
| 82 | </div> |
| 83 | </div> |
| 84 | |
| 85 | |
| 86 | <div class="transferito-migration-method__action-buttons"> |
| 87 | <button id="routeToDestinationURL" data-screen-route="destinationURL" class="transferito-button transferito-button__secondary transferito-button--small transferito__screen-routing">BACK</button> |
| 88 | <button id="proceedAfterDestinationServerConnection" class="transferito-button transferito-button__primary transferito-button--small transferito__proceed-to_database-details" disabled>CONTINUE</button> |
| 89 | </div> |
| 90 | |
| 91 | </div> |
| 92 | |
| 93 | </div> |
| 94 | </div> |
| 95 | |
| 96 | <div id="ConnectToServerProTip" class="transferito__column transferito__pro-tip-column"> |
| 97 | <?php |
| 98 | $data = [ |
| 99 | 'secondaryText' => [ |
| 100 | 'text' => 'To use connect to your server, you will need the following', |
| 101 | 'items' => [ |
| 102 | 'Access to your site\'s root directory', |
| 103 | ] |
| 104 | ], |
| 105 | 'textBox' => [ |
| 106 | "content" => "Need help with connecting to your Destination Server?", |
| 107 | "link" => [ |
| 108 | "anchorText" => "Click here, to watch a video on how to connect to your Destination Server", |
| 109 | "modalName" => "helpConnectingToYourFTPServer" |
| 110 | ] |
| 111 | ] |
| 112 | ]; |
| 113 | include getTransferitoViewPath('parts/migration/pro-tip'); |
| 114 | ?> |
| 115 | </div> |
| 116 | </div> |
| 117 | |
| 118 | |
| 119 | <div id="helpConnectingToYourFTPServer" class="transferito__hide-element"> |
| 120 | <?php |
| 121 | $data = [ |
| 122 | 'name' => 'Connect to Your Destination Server', |
| 123 | 'title' => 'Connect to Your Destination Server', |
| 124 | 'mainContent' => 'This video tutorial will give you an overview on how to connect to Your Destination Server.', |
| 125 | 'videoID' => 'DXU8hIln3Sw', |
| 126 | ]; |
| 127 | include getTransferitoViewPath('parts/information'); |
| 128 | ?> |
| 129 | </div> |
| 130 | |
| 131 | |
| 132 |