Changeset 2903073
- Timestamp:
- 04/24/2023 04:06:03 AM (3 years ago)
- Location:
- database-collation-fix
- Files:
-
- 5 added
- 2 edited
-
tags/1.2.7 (added)
-
tags/1.2.7/README.md (added)
-
tags/1.2.7/databasecollationfix.php (added)
-
tags/1.2.7/prepend.php (added)
-
tags/1.2.7/readme.txt (added)
-
trunk/databasecollationfix.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
database-collation-fix/trunk/databasecollationfix.php
r2507607 r2903073 4 4 Plugin URL: https://serverpress.com/plugins/databasecollationfix 5 5 Description: Convert tables using utf8mb4_unicode_520_ci or utf8_unicode_520_ci collation to standard collation on a cron interval, plus on DesktopServer Create, Copy, Move, Import and Export operations. 6 Version: 1.2. 76 Version: 1.2.8 7 7 Author: Dave Jesch 8 8 Author URI: http://serverpress.com 9 Network: True 9 10 Text Domain: dbcollationfix 10 11 Domain path: /language 12 License: GNU General Public License, version 2 http://www.gnu.org/license/gpl-20.0.html 11 13 */ 12 14 … … 15 17 private static $_instance = NULL; 16 18 19 const VERSION = '1.2.8'; 17 20 const CRON_NAME = 'ds_database_collation_fix'; 18 21 const TRIGGER_FILE = 'trigger.txt'; … … 326 329 public function admin_page() 327 330 { 331 $perform_action = false; 332 333 if (isset($_SERVER['REQUEST_METHOD']) && 'POST' === $_SERVER['REQUEST_METHOD'] && isset($_POST['collation-fix'])) { 334 if (wp_verify_nonce($_POST['collation-nonce'], 'collation-action') && current_user_can('manage_options')) { 335 $perform_action = true; 336 } 337 } 338 //echo '<pre>', 'perform=', ($perform_action ? 'true' : 'false'), PHP_EOL, var_export($_POST, true), '</pre>'; 339 328 340 echo '<div class="wrap">'; 329 echo '<h2>', __('ServerPress Database Collation Fix tool', 'dbcollationfix'), '</h2>';341 echo '<h2>', sprintf(__('ServerPress Database Collation Fix%1$s tool', 'dbcollationfix'), ' v' . self::VERSION), '</h2>'; 330 342 echo '<p>', __('This tool is used to convert your site\'s database tables from using the ...unicode_520_ci Collation Algorithms to use a slightly older, but more compatible utf8mb4_unicode_ci Collation Algorithm.', 'dbcollationfix'), '</p>'; 331 343 echo '<p>', __('The tool will automatically run every 24 hours and change any newly created database table. Or, you can use the button below to perform the database alterations on demand.', 'dbcollationfix'), '</p>'; 332 344 333 echo '<form action="', esc_url(add_query_arg( 'run', '1')), '" method="post">';345 echo '<form action="', esc_url(add_query_arg()), '" method="post">'; 334 346 echo '<p>'; 347 wp_nonce_field('collation-action', 'collation-nonce', true, true); 335 348 echo '<input type="hidden" name="force-collation" value="0" />'; 336 349 echo '<input type="checkbox" name="force-collation" value="1" />'; … … 348 361 echo '</form>'; 349 362 350 if ( isset($_POST['collation-fix']) && '1' === $_GET['run']) {363 if ($perform_action) { 351 364 $this->modify_collation(TRUE); // perform collation changes, with reporting 352 365 } -
database-collation-fix/trunk/readme.txt
r2507607 r2903073 1 1 === Database Collation Fix === 2 Contributors: s erverpress, spectromtech, davejesch, Steveorevo3 Donate link: https:// serverpress.com2 Contributors: spectromtech, davejesch 3 Donate link: https://davejesch.com 4 4 Tags: database, migration, collation algorithm, utf8mb4_unicode_520_ci, desktopserver, export, import, moving data, staging 5 5 Requires at least: 4.6 6 6 Requires PHP: 5.3.1 7 Tested up to: 5.77 Tested up to: 6.2 8 8 Stable tag: trunk 9 9 License: GPLv2 or later … … 90 90 91 91 == Changelog == 92 = 1.2.8 - Apr 24, 2023 = 93 Fix CSRF vulnerability. 94 95 = 1.2.7 - Apr 1, 2021 = 96 Add request method check; update readme.txt contents. 97 92 98 = 1.2.6 - Aug 2, 2018 = 93 99 Add handling for FULLTEXT indexes.
Note: See TracChangeset
for help on using the changeset viewer.