🔒 EXCLUSIVE: Changeset/ - Full Gallery 2025

Changeset 3045503


Ignore:
Timestamp:
03/05/2024 09:41:14 AM (22 months ago)
Author:
wpseahorse
Message:

Release 5.0.21

Location:
wp-migrate-2-aws/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-migrate-2-aws/trunk/admin/assets/styles.css

    r2997784 r3045503  
    554554    margin: 5px 5px 0px 0px;
    555555}
     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
     571table.wp2aws-table {
     572  border-collapse: collapse;
     573  width: 100%;
     574}
  • wp-migrate-2-aws/trunk/admin/classes/adminMigrate.class.php

    r2997784 r3045503  
    11671167
    11681168            'wpm2aws-redirect-home-name',
     1169
     1170            'wpm2aws_system_report_logged',
    11691171        );
    11701172
  • wp-migrate-2-aws/trunk/admin/includes/adminPages/adminPagesGeneral.php

    r2997784 r3045503  
    4646            self::makeValidateLicenceSection();
    4747            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
    4857        } else {
    4958            // Launch User Page
     
    11191128        return $html;
    11201129    }
     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    }
    11211242
    11221243    /**
  • wp-migrate-2-aws/trunk/readme.txt

    r3001271 r3045503  
    44Tags: migration, aws, migrate, manage, clone, move, transfer, copy, backup, upgrade, restore, db migration, wordpress migration, website migration, migrate to aws, migrar aws, atualizar, mejora
    55Requires at least: 4.8
    6 Tested up to: 6.4.1
     6Tested up to: 6.4.3
    77Requires PHP: 5.6
    88Stable tag: 5.0.1
     
    9393== Changelog ==
    9494
     95= 5.0.21 =
     96* feature - #21 Show server info on report section
     97* patch - tested with wordpress v6.4.3
     98
    9599= 5.0.1 =
    96100* patch - #16 tested with wordpress v6.4.1
  • wp-migrate-2-aws/trunk/wp-migrate-2-aws.php

    r3001271 r3045503  
    1010Tags: migration, AWS, migrate WordPress, manage AWS
    1111Requires at least: 4.8
    12 Tested up to: 6.4.1
     12Tested up to: 6.4.3
    1313Stable tag: 4.8
    1414Domain Path: /languages/
    15 Version: 5.0.1
     15Version: 5.0.21
    1616License: GPLv2 or later
    1717License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    2525}
    2626
    27 define('WPM2AWS_VERSION', '5.0.1');
    28 
    29 define('WPM2AWS_REQUIRED_WP_VERSION', '4.8');
     27define('WPM2AWS_VERSION', '5.0.21');
     28
     29define('WPM2AWS_REQUIRED_MINIMUM_WP_VERSION', '4.8');
     30
     31define('WPM2AWS_REQUIRED_MINIMUM_PHP_VERSION', '5.6');
    3032
    3133define('WPM2AWS_PLUGIN', __FILE__);
Note: See TracChangeset for help on using the changeset viewer.