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 / database-detail.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
database-detail.php
470 lines
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2
3 <input type="hidden" id="manualMigrationDatabaseDetail" value="<?php echo esc_html(wp_create_nonce('manual_migration_database_detail')); ?>">
4
5 <div class="transferito__three-columns">
6 <div class="transferito__column transferito__navigation-column">
7 <?php
8 $data['sidebarNavigation'] = [
9 'destinationURL' => 'completed',
10 'connectToServer' => 'completed',
11 'databaseAuthentication'=> 'active',
12 'startMigration' => 'disabled'
13 ];
14 include getTransferitoViewPath('parts/migration/navigation');
15 ?>
16 </div>
17 <div id="destinationServerDatabaseDetailScreen" class="transferito__column transferito__main-column">
18 <div class="transferito-text__h1">Destination Server Database Details</div>
19 <div class="transferito__content-container">
20 <div class="transferito-database-authentication">
21
22 <div class="transferito-database-authentication__help-container">
23 <div class="transferito-connect-to-server__button-container">
24 <button
25 id="helpDatabaseSelect"
26 data-transferito-modal="helpSelectingDatabaseSettings"
27 class="transferito-button transferito-button__primary--blue transferito-button--small transferito__get-upload-help transferito-open-modal">NEED HELP?</button>
28 </div>
29 </div>
30
31 <div class="transferito-database-authentication__checkbox">
32 <label class="transferito-input__checkbox--label transferito-text__p1--bold" for="toggleSelectedFolders">
33 <input type="checkbox"
34 data-uncheck-id="excludeDatabase"
35 class="transferito-input__checkbox transferito-form-element transferito__hide-database-details"
36 id="useExistingDatabase"
37 name="use_existing_database">
38 Use existing Database Details
39 </label>
40 <div class="transferito-database-authentication__checkbox--content transferito-text__small">
41 Check this, if you want to use your existing WordPress site Database details
42 </div>
43 </div>
44
45
46 <div class="transferito-database-authentication__checkbox">
47 <label class="transferito-input__checkbox--label transferito-text__p1--bold" for="toggleSelectedFolders">
48 <input type="checkbox"
49 data-uncheck-id="useExistingDatabase"
50 class="transferito-input__checkbox transferito-form-element transferito__hide-database-details"
51 id="excludeDatabase"
52 name="exclude_database_transfer">
53 Only transfer your website files to your new server
54 </label>
55 <div class="transferito-database-authentication__checkbox--content transferito-text__small">
56 If you're transferring your entire website & database, leave this unchecked!
57 </div>
58 </div>
59
60 <div class="transferito-database-authentication__input-fields">
61
62
63 <div class="transferito-database-authentication__title transferito-text__p1--bold">
64 <span class="transferito-input__required">*</span>
65 Enter your Database Name
66 </div>
67 <div class="transferito-database-authentication__input">
68 <input type="text"
69 name="dbName"
70 id="field__serverDetailDatabaseName"
71 value="<?php echo isset($data['detail']['dbName']) ? esc_html($data['detail']['dbName']) : ''; ?>"
72 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin">
73 </div>
74
75 <div class="transferito-database-authentication__title transferito-text__p1--bold">
76 <span class="transferito-input__required">*</span>
77 Enter your Database Username
78 </div>
79 <div class="transferito-database-authentication__input">
80 <input type="text"
81 name="dbUser"
82 id="field__serverDetailDatabaseUser"
83 value="<?php echo isset($data['detail']['dbUser']) ? esc_html($data['detail']['dbUser']) : ''; ?>"
84 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin">
85 </div>
86
87 <div class="transferito-database-authentication__title transferito-text__p1--bold">
88 <span class="transferito-input__required">*</span>
89 Enter your Database Password
90 </div>
91 <div class="transferito-database-authentication__input">
92 <?php
93 /**
94 * FTP Details
95 */
96 $databasePassword = stripslashes($data['detail']['dbPass']);
97 ?>
98 <input type="text"
99 name="dbPass"
100 id="field__serverDetailDatabasePassword"
101 value="<?php echo isset($data['detail']['dbPass']) ? esc_html(htmlspecialchars(base64_decode($databasePassword), ENT_QUOTES, 'UTF-8')) : ''; ?>"
102 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin">
103 </div>
104
105 <div class="transferito-database-authentication__title transferito-text__p1--bold">
106 Enter your Database Host
107 </div>
108 <div class="transferito-domain-selection__content transferito-text__small">
109 The database host is optional, if you do not have one. Please leave this field empty
110 </div>
111 <div class="transferito-database-authentication__input">
112 <input type="text"
113 name="dbHost"
114 id="field__serverDetailDatabaseHost"
115 value="<?php echo isset($data['detail']['dbHost']) ? esc_html($data['detail']['dbHost']) : ''; ?>"
116 class="transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin">
117 </div>
118 </div>
119
120 <div class="transferito-database-authentication__action-buttons">
121 <button id="routeToDirectorySelector" data-screen-route="destinationURL" class="transferito-button transferito-button__secondary transferito-button--small transferito__screen-routing">BACK</button>
122 <button id="manualServerMigrationStart" class="transferito-button transferito-button__primary transferito-button--small transferito__start-manual-migration" <?php echo $data['completed'] ? '' : 'disabled'; ?>>START MIGRATION</button>
123 </div>
124 </div>
125 </div>
126 </div>
127 <div class="transferito__column transferito__pro-tip-column">
128 <?php
129 $data = [
130 'textBox' => [
131 "content" => "We validate your destination server's database details before we start your migration. Watch our video on how to find and use your destination server's database details.",
132 "link" => [
133 "anchorText" => "Click here to see how we use your database details",
134 "modalName" => "findCreateDatabaseDetails"
135 ]
136 ],
137 'faqs' => [
138 [
139 "anchorText" => "What is a Database?",
140 "modalName" => "whatIsDatabase"
141 ],
142 [
143 "anchorText" => "How can I create Database details on my destination server?",
144 "modalName" => "createDatabaseDestinationServer"
145 ],
146 [
147 "anchorText" => "How do I add my Database Port?",
148 "modalName" => "addDatabasePort"
149 ],
150 [
151 "anchorText" => "Where can I find my Database Host?",
152 "modalName" => "findDatabaseHost"
153 ],
154 [
155 "anchorText" => "Where can I find my Database Name?",
156 "modalName" => "findDatabaseName"
157 ],
158 [
159 "anchorText" => "Where can I find my Database User?",
160 "modalName" => "findDatabaseUser"
161 ],
162 [
163 "anchorText" => "Where can I find my Database Password?",
164 "modalName" => "findDatabasePassword"
165 ]
166 ]
167 ];
168 include getTransferitoViewPath('parts/migration/pro-tip');
169 ?>
170 </div>
171 </div>
172
173 <div id="errorFailedDatabaseAuth" class="transferito__hide-element">
174 <?php
175 $data = [
176 'image' => 'failed-db-auth',
177 'type' => 'error',
178 'messageTitle' => 'Database Connection Failed',
179 'message' => 'There has been an error connecting to your database. Please check your database details and try again.',
180 'closeButton' => true,
181 'additionalInfo' => 'If you are still facing this issue our migration specialists are happy to help you resolve this issue.',
182 'supportLink' => [
183 'anchorText' => 'Create Support Ticket',
184 'url' => 'https://wordpress.org/support/plugin/transferito/'
185 ]
186 ];
187 include getTransferitoViewPath('parts/notice');
188 ?>
189 </div>
190
191 <div id="findCreateDatabaseDetails" class="transferito__hide-element">
192 <?php
193 $data = [
194 'name' => 'Why do we need your Database details?',
195 'title' => 'Why do we need your Database details?',
196 'mainContent' => 'This video will give you an overview of how Transferito uses your database details.',
197 'videoID' => 'bw1cpwIqzi8',
198 ];
199 include getTransferitoViewPath('parts/information');
200 ?>
201 </div>
202 <div id="whatIsDatabase" class="transferito__hide-element">
203 <?php
204 $data = [
205 'name' => 'What is a Database?',
206 'title' => 'What is a Database?',
207 'mainContent' => 'This video is a quick introduction on what a database is and why it is used by WordPress.',
208 'videoID' => 'iFXEZ7s3Rb0',
209 ];
210 include getTransferitoViewPath('parts/information');
211 ?>
212 </div>
213 <div id="createDatabaseDestinationServer" class="transferito__hide-element">
214 <?php
215 $data = [
216 'name' => 'How can I create my Database details?',
217 'title' => 'How can I create my Database details?',
218 'mainContent' => 'These videos will show you how to create your Database details on your destination server.',
219 'videoID' => 'Hr5x1g4DZvg',
220 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
221 'guideMissingLink' => true,
222 'steps' => [
223 'options' => [
224 [
225 'value' => 'bluehost',
226 'text' => 'Bluehost',
227 'videoID' => 'MxBZtzYwPHQ'
228 ],
229 [
230 'value' => 'siteground',
231 'text' => 'Siteground',
232 'videoID' => 'n_fOY0HTNMc'
233 ],
234 [
235 'value' => 'namehero',
236 'text' => 'Namehero',
237 'videoID' => 'H92YpNA6Hd8'
238 ],
239 [
240 'value' => 'go-daddy',
241 'text' => 'Go Daddy',
242 'videoID' => 'EhzDmr--a4o'
243 ],
244 [
245 'value' => 'ionos',
246 'text' => 'IONOS',
247 'videoID' => 'N8HCtKI-cgc'
248 ],
249 [
250 'value' => 'hostmonster',
251 'text' => 'Hostmonster',
252 'videoID' => 'V3QSmfJjJmA'
253 ],
254 ],
255 ]
256 ];
257 include getTransferitoViewPath('parts/information');
258 ?>
259 </div>
260 <div id="addDatabasePort" class="transferito__hide-element">
261 <?php
262 $data = [
263 'name' => 'How do I add my Database port?',
264 'title' => 'How do I add my Database port?',
265 'mainContent' => 'A quick video showing you how to use your Database Port with your Database Host.',
266 'videoID' => 'vxiN7M7UXs4',
267 ];
268 include getTransferitoViewPath('parts/information');
269 ?>
270 </div>
271 <div id="findDatabaseHost" class="transferito__hide-element">
272 <?php
273 $data = [
274 'name' => 'Where can I find my Database host?',
275 'title' => 'Where can I find my Database host?',
276 'mainContent' => 'A quick video showing you how to find your Database Host for your destination servers hosting provider.',
277 'videoID' => 'CtPjIBc188k',
278 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
279 'guideMissingLink' => true,
280 'steps' => [
281 'options' => [
282 [
283 'value' => 'bluehost',
284 'text' => 'Bluehost',
285 'videoID' => 'OiCvtDD4UKI'
286 ],
287 [
288 'value' => 'siteground',
289 'text' => 'Siteground',
290 'videoID' => 'KCHgi9e7_J8'
291 ],
292 [
293 'value' => 'namehero',
294 'text' => 'Namehero',
295 'videoID' => 'cQ0bMM32bMQ'
296 ],
297 [
298 'value' => 'go-daddy',
299 'text' => 'Go Daddy',
300 'videoID' => 'DR68yUoWv10'
301 ],
302 [
303 'value' => 'ionos',
304 'text' => 'IONOS',
305 'videoID' => 'BTrDXL1wq08'
306 ],
307 [
308 'value' => 'hostmonster',
309 'text' => 'Hostmonster',
310 'videoID' => 'yyzMlq_0MX4'
311 ],
312 ],
313 ]
314 ];
315 include getTransferitoViewPath('parts/information');
316 ?>
317 </div>
318 <div id="findDatabaseName" class="transferito__hide-element">
319 <?php
320 $data = [
321 'name' => 'Where can I find my Database name?',
322 'title' => 'Where can I find my Database name?',
323 'mainContent' => 'A quick video showing you how to find your Database Name for your destination servers hosting provider.',
324 'videoID' => 'LW-fFRC2dms',
325 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
326 'guideMissingLink' => true,
327 'steps' => [
328 'options' => [
329 [
330 'value' => 'bluehost',
331 'text' => 'Bluehost',
332 'videoID' => '5H9Tsb8DekE'
333 ],
334 [
335 'value' => 'siteground',
336 'text' => 'Siteground',
337 'videoID' => 'Os1eb74uSkY'
338 ],
339 [
340 'value' => 'namehero',
341 'text' => 'Namehero',
342 'videoID' => 'QyUcAr7FG58'
343 ],
344 [
345 'value' => 'go-daddy',
346 'text' => 'Go Daddy',
347 'videoID' => 'UO7RaSijncc'
348 ],
349 [
350 'value' => 'ionos',
351 'text' => 'IONOS',
352 'videoID' => 'lPaWVAlo-C4'
353 ],
354 [
355 'value' => 'hostmonster',
356 'text' => 'Hostmonster',
357 'videoID' => 'V9hso3phpm8'
358 ],
359 ],
360 ]
361 ];
362 include getTransferitoViewPath('parts/information');
363 ?>
364 </div>
365 <div id="findDatabaseUser" class="transferito__hide-element">
366 <?php
367 $data = [
368 'name' => 'Where can I find my Database username?',
369 'title' => 'Where can I find my Database username?',
370 'mainContent' => 'A quick video showing you how to find your Database Username for your destination servers hosting provider.',
371 'videoID' => 'gghxgxi3lv8',
372 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
373 'guideMissingLink' => true,
374 'steps' => [
375 'options' => [
376 [
377 'value' => 'bluehost',
378 'text' => 'Bluehost',
379 'videoID' => 'N2oaozlEJ-M'
380 ],
381 [
382 'value' => 'siteground',
383 'text' => 'Siteground',
384 'videoID' => 'P9qdiCgC4Qg'
385 ],
386 [
387 'value' => 'namehero',
388 'text' => 'Namehero',
389 'videoID' => '6QDObsrXIN4'
390 ],
391 [
392 'value' => 'go-daddy',
393 'text' => 'Go Daddy',
394 'videoID' => 'Eqssnm0RV3g'
395 ],
396 [
397 'value' => 'ionos',
398 'text' => 'IONOS',
399 'videoID' => 'ziLz2Ul3ltc'
400 ],
401 [
402 'value' => 'hostmonster',
403 'text' => 'Hostmonster',
404 'videoID' => '0a5g4gw_WFM'
405 ],
406 ],
407 ]
408 ];
409 include getTransferitoViewPath('parts/information');
410 ?>
411 </div>
412 <div id="findDatabasePassword" class="transferito__hide-element">
413 <?php
414 $data = [
415 'name' => 'Where can I find my Database password?',
416 'title' => 'Where can I find my Database password?',
417 'mainContent' => 'A quick video showing you how to find your Database Name for your destination servers hosting provider.',
418 'videoID' => 'r77F_ofHDLE',
419 'subTitle' => 'Use the dropdown below to select the video for your hosting provider:',
420 'guideMissingLink' => true,
421 'steps' => [
422 'options' => [
423 [
424 'value' => 'bluehost',
425 'text' => 'Bluehost',
426 'videoID' => 'HtY8FGMFj38'
427 ],
428 [
429 'value' => 'siteground',
430 'text' => 'Siteground',
431 'videoID' => 'xBi2FJE2nK0'
432 ],
433 [
434 'value' => 'namehero',
435 'text' => 'Namehero',
436 'videoID' => '-meHqoqRYd8'
437 ],
438 [
439 'value' => 'go-daddy',
440 'text' => 'Go Daddy',
441 'videoID' => 'ENnWdWrDDCo'
442 ],
443 [
444 'value' => 'ionos',
445 'text' => 'IONOS',
446 'videoID' => 'zkkEg6rNP7g'
447 ],
448 [
449 'value' => 'hostmonster',
450 'text' => 'Hostmonster',
451 'videoID' => 'MwPJW8oCt4M'
452 ],
453 ],
454 ]
455 ];
456 include getTransferitoViewPath('parts/information');
457 ?>
458 </div>
459 <div id="helpSelectingDatabaseSettings" class="transferito__hide-element">
460 <?php
461 $data = [
462 'name' => 'Selecting your Database Settings',
463 'title' => 'Selecting your Database Settings',
464 'mainContent' => 'This video tutorial will give you an overview on what Database settings are available, what they mean and which one is best for you.',
465 'videoID' => 'XtnEs-yyjoU',
466 ];
467 include getTransferitoViewPath('parts/information');
468 ?>
469 </div>
470