Changeset 3045503
- Timestamp:
- 03/05/2024 09:41:14 AM (22 months ago)
- Location:
- wp-migrate-2-aws/trunk
- Files:
-
- 5 edited
-
admin/assets/styles.css (modified) (1 diff)
-
admin/classes/adminMigrate.class.php (modified) (1 diff)
-
admin/includes/adminPages/adminPagesGeneral.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-migrate-2-aws.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-migrate-2-aws/trunk/admin/assets/styles.css
r2997784 r3045503 554 554 margin: 5px 5px 0px 0px; 555 555 } 556 557 .wp2aws-table th { 558 background-color: #008ec2; 559 padding: 10px; 560 text-align: left; 561 border-bottom: 1px solid #ddd; 562 color: #fff; 563 } 564 565 .wp2aws-table td { 566 padding: 10px; 567 text-align: left; 568 border-bottom: 1px solid #ddd; 569 } 570 571 table.wp2aws-table { 572 border-collapse: collapse; 573 width: 100%; 574 } -
wp-migrate-2-aws/trunk/admin/classes/adminMigrate.class.php
r2997784 r3045503 1167 1167 1168 1168 'wpm2aws-redirect-home-name', 1169 1170 'wpm2aws_system_report_logged', 1169 1171 ); 1170 1172 -
wp-migrate-2-aws/trunk/admin/includes/adminPages/adminPagesGeneral.php
r2997784 r3045503 46 46 self::makeValidateLicenceSection(); 47 47 self::makeLoadingOverlaySection(); 48 49 echo '<div id="wpm2aws-settings-section-register-trial" style="width:50%;margin:auto;margin-top:50px;">'; 50 echo '<div class="wpm2aws-inputs-row">'; 51 echo '<div class="wpm2aws-inputs-row-body wpm2aws-inputs-row-body-fw">'; 52 echo self::makeServerAndVersionsReport(); 53 echo '</div>'; 54 echo '</div>'; 55 echo '</div>'; 56 48 57 } else { 49 58 // Launch User Page … … 1119 1128 return $html; 1120 1129 } 1130 1131 /** 1132 * Retrieves the current database version from the WordPress database 1133 * 1134 * @global wpdb 1135 * @return string 1136 */ 1137 private static function getDatabaseVersion() { 1138 global $wpdb; 1139 1140 return $wpdb->get_var("SELECT VERSION() AS version"); 1141 } 1142 1143 /** 1144 * Generates and returns an HTML report of the server and versions information 1145 * 1146 * @return string 1147 */ 1148 private static function makeServerAndVersionsReport() 1149 { 1150 $webServer = $_SERVER['SERVER_SOFTWARE']; 1151 1152 $systemPhpVersion = phpversion(); 1153 $isRequiredSystemPhpVersion = version_compare($systemPhpVersion, WPM2AWS_REQUIRED_MINIMUM_PHP_VERSION, '>='); 1154 1155 $databaseVersion = self::getDatabaseVersion(); 1156 1157 $wordPressVersion = get_bloginfo('version'); 1158 $isRequiredWordPressVersion = version_compare($wordPressVersion, WPM2AWS_REQUIRED_MINIMUM_WP_VERSION, '>='); 1159 1160 $allowUrlFopen = ini_get('allow_url_fopen'); 1161 $isCurlEnabled = function_exists('curl_version'); 1162 $isSslSupported = defined('OPENSSL_VERSION_TEXT'); 1163 1164 $enabledText = 'Enabled'; 1165 $disabledText = 'Disabled'; 1166 1167 $isValidColour = 'green'; 1168 $isNotValidColour = 'red'; 1169 1170 $isValidIcon = '<span style="color:' . $isValidColour . ';" class="dashicons dashicons-yes"></span>'; 1171 $isNotValidIcon = '<span style="color:' . $isNotValidColour . ';" class="dashicons dashicons-no"></span>'; 1172 $infoIcon = '<span class="dashicons dashicons-info-outline"></span>'; 1173 1174 if ($allowUrlFopen !== '' && $allowUrlFopen !== null) { 1175 $urlFopenText = $enabledText; 1176 $urlFopenColour = $isValidColour; 1177 $urlFopenIcon = $isValidIcon; 1178 } else { 1179 $urlFopenText = $disabledText; 1180 $urlFopenColour = $isNotValidColour; 1181 $urlFopenIcon = $isNotValidIcon; 1182 } 1183 1184 if ($isCurlEnabled === true) { 1185 $curlText = $enabledText; 1186 $curlColour = $isValidColour; 1187 $curlIcon = $isValidIcon; 1188 } else { 1189 $curlText = $disabledText; 1190 $curlColour = $isNotValidColour; 1191 $curlIcon = $isNotValidIcon; 1192 } 1193 1194 if ($isSslSupported === true) { 1195 $sslSupportedText = OPENSSL_VERSION_TEXT; 1196 $sslSupportedColour = $isValidColour; 1197 $sslSupportedIcon = $isValidIcon; 1198 } else { 1199 $sslSupportedText = 'Not Available'; 1200 $sslSupportedColour = $isNotValidColour; 1201 $sslSupportedIcon = $isNotValidIcon; 1202 } 1203 1204 if ($isRequiredWordPressVersion === true) { 1205 $wordPressVersionColor = $isValidColour; 1206 $wordPressVersionIcon = $isValidIcon; 1207 } else { 1208 $wordPressVersionColor = $isNotValidColour; 1209 $wordPressVersionIcon = $isNotValidIcon; 1210 } 1211 1212 if ($isRequiredSystemPhpVersion === true) { 1213 $systemPhpVersionColor = $isValidColour; 1214 $systemPhpVersionIcon = $isValidIcon; 1215 } else { 1216 $systemPhpVersionColor = $isNotValidColour; 1217 $systemPhpVersionIcon = $isNotValidIcon; 1218 } 1219 1220 $html = '<h4>System Information</h4>'; 1221 $html .= '<table class="wp2aws-table">'; 1222 $html .= '<tr><th>Component</th><th>Version/Status</th></tr>'; 1223 $html .= '<tr><td>Web Server</td><td>' . $infoIcon . ' ' . $webServer . '</td></tr>'; 1224 $html .= '<tr><td>PHP Version</td><td style="color:' . $systemPhpVersionColor . ';">'. $systemPhpVersionIcon . ' ' . $systemPhpVersion . '</td></tr>'; 1225 $html .= '<tr><td>Database Version</td><td>' . $infoIcon . ' ' . $databaseVersion . '</td></tr>'; 1226 $html .= '<tr><td>WordPress Version</td><td style="color:' . $wordPressVersionColor . ';">'. $wordPressVersionIcon . ' ' . $wordPressVersion . '</td></tr>'; 1227 $html .= '<tr><td>URL Fopen</td><td style="color:' . $urlFopenColour . ';">' . $urlFopenIcon . ' ' . $urlFopenText . '</td></tr>'; 1228 $html .= '<tr><td>cURL</td><td style="color:' . $curlColour . ';">'. $curlIcon . ' ' . $curlText . '</td></tr>'; 1229 $html .= '<tr><td>SSL Support</td><td style="color:' . $sslSupportedColour . ';">'. $sslSupportedIcon . ' ' . $sslSupportedText . '</td></tr>'; 1230 $html .= '</table>'; 1231 1232 $isSystemReportLogged = get_option('wpm2aws_system_report_logged'); 1233 1234 if ($isSystemReportLogged !== '1') { 1235 wpm2awsLogRAction('wpm2aws-server-details', 'Server Info: ' . $webServer .' | PHP: '. $systemPhpVersion .' | DB: '. $databaseVersion .' | WP: '. $wordPressVersion . ' | fopen: '. $allowUrlFopen .' | cURL: '. $isCurlEnabled .' | SSL: '. $isSslSupported); 1236 1237 wpm2awsAddUpdateOptions('wpm2aws_system_report_logged', '1'); 1238 } 1239 1240 return $html; 1241 } 1121 1242 1122 1243 /** -
wp-migrate-2-aws/trunk/readme.txt
r3001271 r3045503 4 4 Tags: migration, aws, migrate, manage, clone, move, transfer, copy, backup, upgrade, restore, db migration, wordpress migration, website migration, migrate to aws, migrar aws, atualizar, mejora 5 5 Requires at least: 4.8 6 Tested up to: 6.4. 16 Tested up to: 6.4.3 7 7 Requires PHP: 5.6 8 8 Stable tag: 5.0.1 … … 93 93 == Changelog == 94 94 95 = 5.0.21 = 96 * feature - #21 Show server info on report section 97 * patch - tested with wordpress v6.4.3 98 95 99 = 5.0.1 = 96 100 * patch - #16 tested with wordpress v6.4.1 -
wp-migrate-2-aws/trunk/wp-migrate-2-aws.php
r3001271 r3045503 10 10 Tags: migration, AWS, migrate WordPress, manage AWS 11 11 Requires at least: 4.8 12 Tested up to: 6.4. 112 Tested up to: 6.4.3 13 13 Stable tag: 4.8 14 14 Domain Path: /languages/ 15 Version: 5.0. 115 Version: 5.0.21 16 16 License: GPLv2 or later 17 17 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 25 25 } 26 26 27 define('WPM2AWS_VERSION', '5.0.1'); 28 29 define('WPM2AWS_REQUIRED_WP_VERSION', '4.8'); 27 define('WPM2AWS_VERSION', '5.0.21'); 28 29 define('WPM2AWS_REQUIRED_MINIMUM_WP_VERSION', '4.8'); 30 31 define('WPM2AWS_REQUIRED_MINIMUM_PHP_VERSION', '5.6'); 30 32 31 33 define('WPM2AWS_PLUGIN', __FILE__);
Note: See TracChangeset
for help on using the changeset viewer.