PluginProbe ʕ •ᴥ•ʔ
Transferito: WP Migration / trunk
Transferito: WP Migration vtrunk
trunk 11.4.0 12.0.0 13.1.0 14.0.0 14.0.11 14.0.7 14.1.0 14.1.1 14.1.2 14.1.3 14.1.4
transferito / src / Views / parts / migration / manual / main.php
transferito / src / Views / parts / migration / manual Last commit date
database-detail.php 9 months ago directory-selection.php 10 months ago main.php 10 months ago
main.php
537 lines
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2
3 <input type="hidden" id="ftpMigration" value="<?php echo esc_html(wp_create_nonce('ftp_migration')); ?>">
4 <input type="hidden" id="manualMigrationServerDetail" value="<?php echo esc_html(wp_create_nonce('manual_migration_server_detail')); ?>">
5
6 <div class="transferito__three-columns">
7
8 <div class="transferito__column transferito__navigation-column">
9 <?php
10 $data['sidebarNavigation'] = [
11 'destinationURL' => 'completed',
12 'chooseMethod' => 'completed',
13 'ftpAuthentication' => 'active',
14 'selectDirectory' => 'disabled',
15 'databaseAuthentication'=> 'disabled',
16 'startMigration' => 'disabled'
17 ];
18 include getTransferitoViewPath('parts/migration/navigation');
19 ?>
20 </div>
21 <div id="destinationServerFTPDetailsScreen" class="transferito__column transferito__main-column">
22 <div class="transferito-text__h1">
23 Destination Server FTP details!
24 </div>
25 <div class="transferito__content-container">
26 <div class="transferito-ftp-authentication">
27
28
29 <div class="transferito-ftp-authentication__checkbox">
30 <label class="transferito-input__checkbox--label transferito-text__p1--bold" for="toggleSelectedFolders">
31 <input type="checkbox"
32 class="transferito-input__checkbox transferito-form-element show-selected-folder"
33 name="transfer_selected_folders"
34 id="useSelectedFolders"
35 <?php echo isset($data['detail']['transfer_selected_folders']) && ($data['detail']['transfer_selected_folders'] === 'true') ? 'checked' : ''; ?>>
36 Select the folders to transfer to your destination server
37 </label>
38 <div class="transferito-ftp-authentication__checkbox--content transferito-text__small">If you're transferring your entire website, leave this unchecked!</div>
39 </div>
40
41 <div id="selectedFoldersDetails" class="<?php echo isset($data['detail']['transfer_selected_folders']) && ($data['detail']['transfer_selected_folders'] === 'true') ? '' : 'transferito-ftp-authentication__directories'; ?>">
42 <div class="transferito-ftp-authentication__folder-selection">
43 <ul class="transferito-ftp-authentication__folder-list">
44 <?php if (isset($data['directories'])) : ?>
45 <?php foreach ($data['directories'] as $directory => $subDirectories) : ?>
46 <li>
47 <label class="menu-item-title">
48 <input
49 <?php echo isset($data['detail']['folder_path']) && (in_array(WP_CONTENT_DIR . '/' . $directory, $data['detail']['folder_path'])) ? 'checked' : ''; ?>
50 type="checkbox"
51 class="transferito-form-element menu-item-checkbox"
52 name="folder_path[]"
53 value="<?php echo esc_html(WP_CONTENT_DIR . '/' . $directory); ?>">
54 <?php echo esc_html(ucfirst($directory)); ?>
55 </label>
56
57 <?php if (count($subDirectories) > 0) : ?>
58 <span class="transferito-ftp-authentication__folder-expander">+</span>
59
60 <?php
61 if (isset($data['detail']['folder_path'])) {
62 $cleanPath = preg_quote(WP_CONTENT_DIR . '/', '/');
63 $folderPaths = preg_replace("/$cleanPath/", "", $data['detail']['folder_path']);
64 $cleanDirectory = preg_quote($directory . '/', '/');
65 $foundSubDirectories = preg_grep("/$cleanDirectory/", $folderPaths);
66 $showSubDirectories = count($foundSubDirectories) > 0;
67 } else {
68 $showSubDirectories = false;
69 }
70
71 ?>
72
73 <ul class="transferito-ftp-authentication__sub-folders" <?php
74 echo isset($data['detail']['folder_path']) && $showSubDirectories
75 ? 'style="display:block;"'
76 : ''; ?>>
77 <?php foreach ($subDirectories as $subDirectory) : ?>
78 <li>
79 <label class="menu-item-title">
80 <input
81 <?php echo isset($data['detail']['folder_path']) && (in_array(WP_CONTENT_DIR . '/' . $directory . '/' . $subDirectory, $data['detail']['folder_path'])) ? 'checked' : ''; ?>
82 type="checkbox"
83 class="transferito-form-element menu-item-checkbox"
84 name="folder_path[]"
85 value="<?php echo esc_html(WP_CONTENT_DIR . '/' . $directory . '/' . $subDirectory); ?>">
86 <?php echo esc_html($subDirectory); ?>
87 </label>
88 </li>
89 <?php endforeach; ?>
90 </ul>
91 <?php endif; ?>
92 </li>
93 <?php endforeach; ?>
94 <?php endif; ?>
95 </ul>
96 </div>
97 </div>
98
99
100
101
102 <div class="transferito-ftp-authentication__title transferito-text__p1--bold">
103 <span class="transferito-input__required">*</span>
104 Enter your FTP / SFTP Host or FTP / SFTP Server
105 </div>
106 <div class="transferito-ftp-authentication__input">
107 <input type="text"
108 name="ftpHost"
109 id="field__serverDetailFTPHost"
110 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin"
111 value="<?php echo isset($data['detail']['ftpHost']) ? esc_html($data['detail']['ftpHost']) : ''; ?>">
112 </div>
113
114 <div class="transferito-ftp-authentication__title transferito-text__p1--bold">
115 <span class="transferito-input__required">*</span>
116 Enter your FTP / SFTP Username
117 </div>
118 <div class="transferito-ftp-authentication__input">
119 <input type="text"
120 name="ftpUser"
121 id="field__serverDetailFTPUsername"
122 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin"
123 value="<?php echo isset($data['detail']['ftpUser']) ? esc_html($data['detail']['ftpUser']) : ''; ?>">
124 </div>
125
126 <div class="transferito-ftp-authentication__title transferito-text__p1--bold">
127 <span class="transferito-input__required">*</span>
128 Enter your FTP / SFTP Password
129 </div>
130 <div class="transferito-ftp-authentication__input">
131 <?php
132 /**
133 * FTP Details
134 */
135 $ftpPassword = stripslashes($data['detail']['ftpPass']);
136 ?>
137 <input type="text"
138 name="ftpPass"
139 id="field__serverDetailFTPPass"
140 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin"
141 value="<?php echo isset($data['detail']['ftpUser']) ? esc_html(htmlspecialchars($ftpPassword, ENT_QUOTES, 'UTF-8')) : ''; ?>">
142 </div>
143
144 <div class="transferito-ftp-authentication__action-buttons">
145 <?php
146 $showButtonDisabled = (isset($data['detail']) && $data['detail'] !== false) ? count($data['detail']) !== 0 : false;
147 ?>
148 <button id="routeToMigrationMethodSelection" data-screen-route="migrationMethodSelection" class="transferito-button transferito-button__secondary transferito-button--small transferito__screen-routing">BACK</button>
149 <button id="manualServerDetails" class="transferito-button transferito-button__primary transferito-button--small transferito__manual-server-details" <?php echo $showButtonDisabled ? '' : 'disabled'; ?>>CONTINUE</button>
150 </div>
151 </div>
152 </div>
153 </div>
154 <div class="transferito__column transferito__pro-tip-column">
155 <?php
156 $data = [
157 'mainText' => 'Enter the exact URL or link where you want to migrate (Copy or move) your current website',
158 'textBox' => [
159 "content" => "New to Transferito? Why not watch a video on how to get started with your first migration.",
160 "link" => [
161 "anchorText" => "Click here to see how to create your first migration",
162 "modalName" => "firstFTPMigrationIntro"
163 ]
164 ],
165 'faqs' => [
166 [
167 "anchorText" => "What is FTP & SFTP?",
168 "modalName" => "whatIsFTP"
169 ],
170 [
171 "anchorText" => "How can I create FTP / SFTP details on my destination server?",
172 "modalName" => "createFTP"
173 ],
174 [
175 "anchorText" => "Where can I find FTP / SFTP Port?",
176 "modalName" => "findFTPPort"
177 ],
178 [
179 "anchorText" => "Where can I find FTP / SFTP host?",
180 "modalName" => "findFTPHost"
181 ],
182 [
183 "anchorText" => "Where can I find FTP / SFTP username?",
184 "modalName" => "findFTPUsername"
185 ],
186 [
187 "anchorText" => "What if I don’t know my FTP / SFTP password?",
188 "modalName" => "findFTPPassword"
189 ],
190 ]
191 ];
192 include getTransferitoViewPath('parts/migration/pro-tip');
193 ?>
194 </div>
195 </div>
196
197 <div id="errorFailedDirectorySearch" class="transferito__hide-element">
198 <?php
199 $data = [
200 'image' => 'directory-failure',
201 'type' => 'error',
202 'messageTitle' => 'We can\'t start your directory check!',
203 'message' => 'This could be an issue on our side, please double check your Destination Server FTP details are correct. If they are, contact our support team and they will be able to help you with this issue.',
204 'closeButton' => true,
205 'additionalInfo' => 'If this issue continues, please contact support and our migration specialists will be more than happy to help you resolve this issue.',
206 'supportLink' => [
207 'anchorText' => 'Create Support Ticket',
208 'url' => 'https://wordpress.org/support/plugin/transferito/'
209 ]
210 ];
211 include getTransferitoViewPath('parts/notice');
212 ?>
213 </div>
214
215 <div id="errorDirectoryNotFound" class="transferito__hide-element">
216 <?php
217 $data = [
218 'image' => 'directory-failure',
219 'type' => 'error',
220 'messageTitle' => 'We can\'t find your directory',
221 'message' => 'Please check that you have correctly entered the FTP Details for your Destination Server.',
222 'closeButton' => true,
223 'additionalInfo' => 'If you are still facing this issue our migration specialists are happy to help you resolve this issue.',
224 'supportLink' => [
225 'anchorText' => 'Create Support Ticket',
226 'url' => 'https://wordpress.org/support/plugin/transferito/'
227 ]
228 ];
229 include getTransferitoViewPath('parts/notice');
230 ?>
231 </div>
232
233 <div id="errorDirectoryUpdateFailed" class="transferito__hide-element">
234 <?php
235 $data = [
236 'image' => 'directory-failure',
237 'type' => 'error',
238 'messageTitle' => 'Error checking your directory',
239 'message' => 'We are unable to get an update on the status of your directory check. Please retry.',
240 'closeButton' => true,
241 'additionalInfo' => 'If you are still facing this issue our migration specialists are happy to help you resolve this issue.',
242 'supportLink' => [
243 'anchorText' => 'Create Support Ticket',
244 'url' => 'https://wordpress.org/support/plugin/transferito/'
245 ]
246 ];
247 include getTransferitoViewPath('parts/notice');
248 ?>
249 </div>
250
251 <div id="errorFailedFTPAuth" class="transferito__hide-element">
252 <?php
253 $data = [
254 'image' => 'failed-auth',
255 'type' => 'error',
256 'messageTitle' => 'FTP connection failed!',
257 'message' => 'There has been an error connecting to your FTP server. Please check your FTP details and try again.',
258 'closeButton' => true,
259 'additionalInfo' => 'If you are still facing this issue our migration specialists are happy to help you resolve this issue.',
260 'supportLink' => [
261 'anchorText' => 'Create Support Ticket',
262 'url' => 'https://wordpress.org/support/plugin/transferito/'
263 ]
264 ];
265 include getTransferitoViewPath('parts/notice');
266 ?>
267 </div>
268
269 <div id="firstFTPMigrationIntro" class="transferito__hide-element">
270 <?php
271 $data = [
272 'name' => 'Your First Migration with Transferito',
273 'title' => 'Your First Migration with Transferito',
274 'mainContent' => 'This video will walk you through a full migration, showing you how to get your all of your migration details and start a full migration.',
275 'videoID' => '5saFT85LCo8'
276 ];
277 include getTransferitoViewPath('parts/information');
278 ?>
279 </div>
280 <div id="whatIsFTP" class="transferito__hide-element">
281 <?php
282 $data = [
283 'name' => 'What is FTP?',
284 'title' => 'What is FTP?',
285 'mainContent' => 'This video is a quick introduction that explains what FTP is and how it is used.',
286 'videoID' => 'plD6Mtz4SDM',
287 ];
288 include getTransferitoViewPath('parts/information');
289 ?>
290 </div>
291 <div id="createFTP" class="transferito__hide-element">
292 <?php
293 $data = [
294 'name' => 'How can I create my FTP Details?',
295 'title' => 'How can I create my FTP Details?',
296 'mainContent' => 'These videos will show you how to create your FTP details on your destination server.',
297 'videoID' => 'qo6UnKbiGPE',
298 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
299 'guideMissingLink' => true,
300 'steps' => [
301 'options' => [
302 [
303 'value' => 'bluehost',
304 'text' => 'Bluehost',
305 'videoID' => 'qTkNGYQJJPs'
306 ],
307 [
308 'value' => 'siteground',
309 'text' => 'Siteground',
310 'videoID' => '9YRYbSD-XTU'
311 ],
312 [
313 'value' => 'namehero',
314 'text' => 'Namehero',
315 'videoID' => 'UTO2QVpF6GQ'
316 ],
317 [
318 'value' => 'go-daddy',
319 'text' => 'Go Daddy',
320 'videoID' => 'jqsFx7RX29o'
321 ],
322 [
323 'value' => 'ionos',
324 'text' => 'IONOS',
325 'videoID' => 'qNn0pxkUDBo'
326 ],
327 [
328 'value' => 'hostmonster',
329 'text' => 'Hostmonster',
330 'videoID' => 'anaROUC6_QA'
331 ],
332 ],
333 ]
334 ];
335 include getTransferitoViewPath('parts/information');
336 ?>
337 </div>
338 <div id="serverConnectionType" class="transferito__hide-element">
339 <?php
340 $data = [
341 'name' => 'What is my server connection type?',
342 'title' => 'What is my server connection type?',
343 'mainContent' => 'This is a quick explanation on what the server connection type is, when you need to change it and what it represents.',
344 'videoID' => 'vrwizNoJYh0',
345 ];
346 include getTransferitoViewPath('parts/information');
347 ?>
348 </div>
349 <div id="findFTPPort" class="transferito__hide-element">
350 <?php
351 $data = [
352 'name' => 'Where can I find FTP/SFTP port?',
353 'title' => 'Where can I find FTP/SFTP port?',
354 'mainContent' => 'A quick video showing you how to find your FTP Port for your destination servers hosting provider.',
355 'videoID' => 'nKRxVs9RYKU',
356 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
357 'guideMissingLink' => true,
358 'steps' => [
359 'options' => [
360 [
361 'value' => 'bluehost',
362 'text' => 'Bluehost',
363 'videoID' => 'B6C8V-Z8z9s'
364 ],
365 [
366 'value' => 'siteground',
367 'text' => 'Siteground',
368 'videoID' => 'QU16a3vJymw'
369 ],
370 [
371 'value' => 'namehero',
372 'text' => 'Namehero',
373 'videoID' => 'q1azRMTbDQ8'
374 ],
375 [
376 'value' => 'go-daddy',
377 'text' => 'Go Daddy',
378 'videoID' => 'pTDWtfHa69k'
379 ],
380 [
381 'value' => 'ionos',
382 'text' => 'IONOS',
383 'videoID' => 'Dwjd5HeU7_U'
384 ],
385 [
386 'value' => 'hostmonster',
387 'text' => 'Hostmonster',
388 'videoID' => 'KcRp3XNnxaQ'
389 ],
390 ],
391 ]
392 ];
393 include getTransferitoViewPath('parts/information');
394 ?>
395 </div>
396 <div id="findFTPHost" class="transferito__hide-element">
397 <?php
398 $data = [
399 'name' => 'Where can I find FTP/SFTP host?',
400 'title' => 'Where can I find FTP/SFTP host?',
401 'mainContent' => 'A quick video showing you how to find your FTP Host for your destination servers hosting provider.',
402 'videoID' => '2qV9VB1zVlc',
403 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
404 'guideMissingLink' => true,
405 'steps' => [
406 'options' => [
407 [
408 'value' => 'bluehost',
409 'text' => 'Bluehost',
410 'videoID' => 'rHeT5knukOk'
411 ],
412 [
413 'value' => 'siteground',
414 'text' => 'Siteground',
415 'videoID' => 'riABilfHcwE'
416 ],
417 [
418 'value' => 'namehero',
419 'text' => 'Namehero',
420 'videoID' => 'bFdBLtlXMPE'
421 ],
422 [
423 'value' => 'go-daddy',
424 'text' => 'Go Daddy',
425 'videoID' => 'Vn0_n4fFjdw'
426 ],
427 [
428 'value' => 'ionos',
429 'text' => 'IONOS',
430 'videoID' => '6KliToUskeY'
431 ],
432 [
433 'value' => 'hostmonster',
434 'text' => 'Hostmonster',
435 'videoID' => 'n0RnBPi2Xh8'
436 ],
437 ],
438 ]
439 ];
440 include getTransferitoViewPath('parts/information');
441 ?>
442 </div>
443 <div id="findFTPUsername" class="transferito__hide-element">
444 <?php
445 $data = [
446 'name' => 'Where can I find FTP/SFTP username?',
447 'title' => 'Where can I find FTP/SFTP username?',
448 'mainContent' => 'A quick video showing you how to find your FTP Username for your destination servers hosting provider.',
449 'videoID' => 'lvsd4zlF0-o',
450 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
451 'guideMissingLink' => true,
452 'steps' => [
453 'options' => [
454 [
455 'value' => 'bluehost',
456 'text' => 'Bluehost',
457 'videoID' => '59OyAfe787I'
458 ],
459 [
460 'value' => 'siteground',
461 'text' => 'Siteground',
462 'videoID' => 'a1DEp37Lvc0'
463 ],
464 [
465 'value' => 'namehero',
466 'text' => 'Namehero',
467 'videoID' => 'SdhocGMwl_4'
468 ],
469 [
470 'value' => 'go-daddy',
471 'text' => 'Go Daddy',
472 'videoID' => 'AfGZ5Oc1Juc'
473 ],
474 [
475 'value' => 'ionos',
476 'text' => 'IONOS',
477 'videoID' => '7mN1ZDOH5QE'
478 ],
479 [
480 'value' => 'hostmonster',
481 'text' => 'Hostmonster',
482 'videoID' => '2W7-qmr18tQ'
483 ],
484 ],
485 ]
486 ];
487 include getTransferitoViewPath('parts/information');
488 ?>
489 </div>
490 <div id="findFTPPassword" class="transferito__hide-element">
491 <?php
492 $data = [
493 'name' => 'Where can I find FTP/SFTP password?',
494 'title' => 'Where can I find FTP/SFTP password?',
495 'mainContent' => 'A quick video showing you how to find your FTP Password for your destination servers hosting provider.',
496 'videoID' => 'WNTxoQkuQ8A',
497 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
498 'guideMissingLink' => true,
499 'steps' => [
500 'options' => [
501 [
502 'value' => 'bluehost',
503 'text' => 'Bluehost',
504 'videoID' => 'sgb9BX57YGA'
505 ],
506 [
507 'value' => 'siteground',
508 'text' => 'Siteground',
509 'videoID' => 'XYXBw47Mmhw'
510 ],
511 [
512 'value' => 'namehero',
513 'text' => 'Namehero',
514 'videoID' => 'iZU2bjt01Pk'
515 ],
516 [
517 'value' => 'go-daddy',
518 'text' => 'Go Daddy',
519 'videoID' => '6qoRTnGG4L8'
520 ],
521 [
522 'value' => 'ionos',
523 'text' => 'IONOS',
524 'videoID' => 'NhjcnnIkDlo'
525 ],
526 [
527 'value' => 'hostmonster',
528 'text' => 'Hostmonster',
529 'videoID' => 'XI9IVShQXG0'
530 ],
531 ],
532 ]
533 ];
534 include getTransferitoViewPath('parts/information');
535 ?>
536 </div>
537