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
cpanel-check.php
146 lines
| 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 | <?php if (!$data['metRequirements']): ?> |
| 3 | |
| 4 | <?php |
| 5 | $data = [ |
| 6 | 'title' => 'Important Information', |
| 7 | 'image' => 'system-requirements', |
| 8 | 'type' => 'warning', |
| 9 | 'message' => 'We can\'t start your migration because Transferito requires the PHP zip module or PHP function to be enabled.', |
| 10 | 'additionalTitle' => 'To use our plugin:', |
| 11 | 'additionalInfo' => 'You will have enable either exec or the zip module you can check the guide below to see more information.', |
| 12 | 'links' => [ |
| 13 | [ |
| 14 | 'url' => 'https://www.namecheap.com/support/knowledgebase/article.aspx/9396/2219/how-to-enable-exec', |
| 15 | 'anchorText' => 'HOW TO ENABLE PHP exec function' |
| 16 | ], |
| 17 | [ |
| 18 | 'url' => 'https://www.youtube.com/watch?v=WfgyusFEQp4?rel=0&modestbranding=1', |
| 19 | 'anchorText' => 'HOW TO ENABLE PHP Zip module' |
| 20 | ] |
| 21 | ], |
| 22 | 'extraInfo' => [ |
| 23 | 'content' => 'If you are unsure how to enable any of these do this please contact your hosting provider.' |
| 24 | ] |
| 25 | ]; |
| 26 | include getTransferitoViewPath('parts/notice'); |
| 27 | ?> |
| 28 | |
| 29 | <?php endif; ?> |
| 30 | |
| 31 | |
| 32 | <?php if ($data['metRequirements']): ?> |
| 33 | |
| 34 | <input type="hidden" id="cPanelCheckSecurity" value="<?php echo esc_html(wp_create_nonce('cpanel_check')); ?>"> |
| 35 | |
| 36 | <div class="transferito__three-columns"> |
| 37 | <div class="transferito__column transferito__navigation-column"> |
| 38 | <?php |
| 39 | $data['sidebarNavigation'] = [ |
| 40 | 'destinationURL' => 'active', |
| 41 | 'connectToServer' => 'disabled', |
| 42 | 'emptyItem1' => 'disabled', |
| 43 | 'emptyItem2' => 'disabled', |
| 44 | 'emptyItem3' => 'disabled' |
| 45 | ]; |
| 46 | include getTransferitoViewPath('parts/migration/navigation'); |
| 47 | ?> |
| 48 | </div> |
| 49 | <div id="destinationURLScreen" class="transferito__column transferito__main-column"> |
| 50 | <div class="transferito-text__h1">Let's get started</div> |
| 51 | <div class="transferito__content-container"> |
| 52 | <div class="transferito-destination-url"> |
| 53 | <div class="transferito-destination-url__title transferito-text__p1--bold"> |
| 54 | <span class="transferito-input__required">*</span> |
| 55 | Enter the Destination URL |
| 56 | </div> |
| 57 | <div class="transferito-destination-url__content transferito-text__p--regular"> |
| 58 | Is the website address, where you want to migrate your current website |
| 59 | </div> |
| 60 | <div class="transferito-destination-url__input"> |
| 61 | <div class="transferito-input__dropdown-with-text"> |
| 62 | <select id="domainProtocol" class="transferito-input__dropdown transferito-input__dropdown--no-border transferito-input__dropdown--border-right"> |
| 63 | <option>http://</option> |
| 64 | <option>https://</option> |
| 65 | </select> |
| 66 | <input |
| 67 | id="domain" |
| 68 | class="transferito-input__text-box transferito-input__text-box--no-border transferito-input__text-box--full-width" |
| 69 | type="text" |
| 70 | value="<?php echo isset($data['url']) ? esc_url($data['url']) : ''; ?>"> |
| 71 | </div> |
| 72 | </div> |
| 73 | <div class="transferito-destination-url__input transferito-destination-url__input--margin-top"> |
| 74 | |
| 75 | <label class="transferito-input__checkbox--label transferito-text__p1--bold"> |
| 76 | <input type="checkbox" |
| 77 | class="transferito-input__checkbox transferito-form-element" |
| 78 | id="localSiteMigration" |
| 79 | name="local_site_migration"> |
| 80 | Migrate to your local environment |
| 81 | </label> |
| 82 | <div class="transferito-database-authentication__checkbox--content transferito-text__small"> |
| 83 | Only check this if you want to migrate your site to your development machine |
| 84 | </div> |
| 85 | |
| 86 | </div> |
| 87 | <div class="transferito-destination-url__action-button"> |
| 88 | <button id="cpanelCheck" class="transferito-button transferito-button__primary transferito-button--small transferito__check-cpanel-availability" <?php echo isset($data['url']) ? '' : 'disabled'; ?>>CONTINUE</button> |
| 89 | </div> |
| 90 | </div> |
| 91 | </div> |
| 92 | </div> |
| 93 | <div class="transferito__column transferito__pro-tip-column"> |
| 94 | <?php |
| 95 | $data = [ |
| 96 | 'mainText' => 'Enter the exact URL or link where you want to migrate (Copy or move) your current website', |
| 97 | 'secondaryText' => [ |
| 98 | 'text' => 'For example enter your URL like this', |
| 99 | 'items' => [ |
| 100 | 'www.example.com', |
| 101 | 'example.com', |
| 102 | 'test.example.com' |
| 103 | ] |
| 104 | ] |
| 105 | ]; |
| 106 | include getTransferitoViewPath('parts/migration/pro-tip'); |
| 107 | ?> |
| 108 | </div> |
| 109 | </div> |
| 110 | |
| 111 | <div id="errorIncorrectModal" class="transferito__hide-element"> |
| 112 | <?php |
| 113 | $data = [ |
| 114 | 'image' => 'incorrect-url', |
| 115 | 'type' => 'error', |
| 116 | 'messageTitle' => 'Error finding URL!', |
| 117 | 'message' => 'We can not find the Destination URL that you\'ve entered, please remove the http:// or https:// from your URL and try again.', |
| 118 | 'closeButton' => true, |
| 119 | 'additionalInfo' => 'If you are still facing this issue our migration specialists are happy to help you resolve this issue.', |
| 120 | 'supportLink' => [ |
| 121 | 'anchorText' => 'Create Support Ticket', |
| 122 | 'url' => 'https://wordpress.org/support/plugin/transferito/' |
| 123 | ] |
| 124 | ]; |
| 125 | include getTransferitoViewPath('parts/notice'); |
| 126 | ?> |
| 127 | </div> |
| 128 | |
| 129 | <div id="firstMigrationInformation" class="transferito__hide-element"> |
| 130 | <?php |
| 131 | $data = [ |
| 132 | 'title' => 'Your First Migration with Transferito', |
| 133 | 'subTitle' => 'What would you like to do today?', |
| 134 | 'cpanelAllowed' => true, |
| 135 | 'videoID' => '5saFT85LCo8', |
| 136 | ]; |
| 137 | include getTransferitoViewPath('parts/modals/welcome-screen'); |
| 138 | ?> |
| 139 | |
| 140 | </div> |
| 141 | |
| 142 | <?php endif; ?> |
| 143 | |
| 144 | |
| 145 | |
| 146 |