Changeset 3392656
- Timestamp:
- 11/10/2025 05:02:58 AM (5 weeks ago)
- Location:
- db-access-adminer
- Files:
-
- 8 edited
- 1 copied
-
tags/3.0.1 (copied) (copied from db-access-adminer/trunk)
-
tags/3.0.1/README.txt (modified) (2 diffs)
-
tags/3.0.1/db-access-adminer.php (modified) (4 diffs)
-
tags/3.0.1/index.php (modified) (2 diffs)
-
tags/3.0.1/languages/db-access-adminer.pot (modified) (5 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/db-access-adminer.php (modified) (4 diffs)
-
trunk/index.php (modified) (2 diffs)
-
trunk/languages/db-access-adminer.pot (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
db-access-adminer/tags/3.0.1/README.txt
r3390799 r3392656 4 4 Requires at least: 5.3 5 5 Tested up to: 6.8.3 6 Stable tag: 3.0. 06 Stable tag: 3.0.1 7 7 Requires PHP: 5.6.0 8 8 License: GPLv2 or later … … 21 21 Note that any other databases on the same host and protected by the same credentials will also be accessible in Adminer. This is how databases operate and not a limitation of Adminer nor this plugin. If other databases need different access restrictions, they should have separate credentials. 22 22 23 It comes with all the themes published in Adminer's Git repository, so you can select a style that suits you. 24 23 25 == Installation == 24 26 25 After installing the plugin, go to *Settings > Adminer* to configure the plugin and confirm the warning about the risk to your data. Go to *Tools > Adminer* to use it.27 After installing the plugin, go to *Settings > Database Access with Adminer* to configure the plugin and confirm the warning about the risk to your data. Go to *Tools > Adminer* to use it. 26 28 27 29 == Changelog == 30 31 = 3.0.1 = 32 * Fix issue with style selection. Re-save your existing settings to ensure correct loading if using a dark theme. 33 * Clearer error when plugin deactivated. 28 34 29 35 = 3.0.0 = -
db-access-adminer/tags/3.0.1/db-access-adminer.php
r3390799 r3392656 3 3 Plugin Name: Database Access with Adminer 4 4 Description: Direct database administration using the open source Adminer application. 5 Version: 3.0. 05 Version: 3.0.1 6 6 Requires at least: 5.3 7 7 Requires PHP: 5.6 … … 23 23 const WP_REST_NONCE = 'wp_rest'; 24 24 const ENCRYPTION_LIFETIME = 300; 25 const RES_CSS = __DIR__ . '/adminer.css';26 25 27 26 add_action('admin_menu', function() { … … 132 131 [ 133 132 'auto_submit', 134 'warning_accepted' 133 'looser_perms', 134 'warning_accepted', 135 135 ] 136 136 , false 137 137 ); 138 138 139 $design_reset_error = false; 140 foreach (['', '-dark'] as $design_link_suffix) { 141 $design_link_file = "adminer$design_link_suffix.css"; 142 $design_link_path = __DIR__ . "/$design_link_file"; 143 if (@is_link($design_link_path)) { 144 if ( 145 $design !== null 146 && basename($design) === $design_link_file 147 && $design === @readlink($design_link_path) 148 ) { 149 $design = null; # setting unchanged so leave existing link 150 } 151 elseif (!@unlink($design_link_path)) { 152 $design_reset_error = true; 153 } 154 } 155 elseif (@file_exists($design_link_path)) { # likely a custom file 156 $design_reset_error = true; 157 } 158 } 139 159 if ( 140 ( 141 file_exists(RES_CSS) 142 && !@unlink(RES_CSS) 143 ) 160 $design_reset_error 144 161 || ( 145 162 $design !== null 146 && !@symlink($design, RES_CSS)163 && !@symlink($design, __DIR__ . '/' . basename($design)) 147 164 ) 148 165 ) { … … 514 531 __('Database communication error.', 'db-access-adminer'), 515 532 ], 516 ' load_failed' => [517 __(' Could not loadAdminer.', 'db-access-adminer'),533 'inactive' => [ 534 __('The plugin must be activated to use Adminer.', 'db-access-adminer'), 518 535 ], 519 536 'unknown' => [ -
db-access-adminer/tags/3.0.1/index.php
r3390799 r3392656 113 113 ) { 114 114 $message = [ 115 'No messages file found. Check %sWP Admin > Settings > Adminer%s.',115 'No messages file found. Check %sWP Admin > Settings > Database Access with Adminer%s.', 116 116 [ 117 117 '<em>', … … 217 217 $message = empty($body->message) ? $messages['unknown'] : (array) $body->message; 218 218 } 219 elseif ( 220 $status == 404 221 && !empty($body->code) 222 && $body->code === 'rest_no_route' 223 ) { 224 $message = $messages['inactive']; 225 } 219 226 else { 220 227 $message = $messages['unprivileged']; -
db-access-adminer/tags/3.0.1/languages/db-access-adminer.pot
r3390799 r3392656 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Database Access with Adminer 3.0. 0\n"5 "Project-Id-Version: Database Access with Adminer 3.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/db-access-adminer\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-11- 05T08:44:07+00:00\n"12 "POT-Creation-Date: 2025-11-10T04:43:06+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 35 35 msgstr "" 36 36 37 #: db-access-adminer.php:6 637 #: db-access-adminer.php:65 38 38 msgid "Open Adminer" 39 39 msgstr "" 40 40 41 41 #. translators: open and close <em> tag 42 #: db-access-adminer.php: 7042 #: db-access-adminer.php:69 43 43 #, php-format 44 44 msgid "The link is also found under the %sTools%s menu." 45 45 msgstr "" 46 46 47 #: db-access-adminer.php:12 347 #: db-access-adminer.php:122 48 48 msgid "Unknown design selection." 49 49 msgstr "" 50 50 51 #: db-access-adminer.php:1 5251 #: db-access-adminer.php:169 52 52 msgid "Failed to set design." 53 53 msgstr "" 54 54 55 #: db-access-adminer.php:1 7455 #: db-access-adminer.php:191 56 56 msgid "Alternative design" 57 57 msgstr "" 58 58 59 #: db-access-adminer.php:2 0259 #: db-access-adminer.php:219 60 60 msgid "Change the theme Adminer uses." 61 61 msgstr "" 62 62 63 #: db-access-adminer.php:2 2963 #: db-access-adminer.php:246 64 64 msgid "Auto-submit Adminer's login form" 65 65 msgstr "" 66 66 67 #: db-access-adminer.php:2 3167 #: db-access-adminer.php:248 68 68 msgid "Adminer has its own login system which must still be activated, even though this plugin limits access. It's slightly more secure to submit it manually at the cost of a little convenience." 69 69 msgstr "" 70 70 71 #: db-access-adminer.php:2 3971 #: db-access-adminer.php:256 72 72 msgid "Less restrictive permissions on authentication files" 73 73 msgstr "" 74 74 75 #: db-access-adminer.php:2 4075 #: db-access-adminer.php:257 76 76 msgid "This grants read access to the group set on those ephemeral files, for cases where the group is different to the owner and that prevents Adminer from running. This can occur when the web server runs under a different account to PHP. Enable only if necessary." 77 77 msgstr "" 78 78 79 #: db-access-adminer.php:2 5279 #: db-access-adminer.php:269 80 80 msgid "I accept" 81 81 msgstr "" 82 82 83 83 #. translators: open and close <strong> tag on consequences, WP capability name 84 #: db-access-adminer.php:2 5584 #: db-access-adminer.php:272 85 85 #, php-format 86 86 msgid "This tool enables direct editing of your database, which can be very useful. However, if you are unfamiliar with it, %syou risk irreversible loss of or damage to your site's data%s. This includes losing access to your site admin pages if you modify records in the users table. It is recommended you do not use this tool unless you have a regular backup regime. It will also be available to all accounts that have the %s capability (normally admins), so you may wish to limit other accounts' access now. Checking this box means you understand this and accept the risk." 87 87 msgstr "" 88 88 89 #: db-access-adminer.php:2 6789 #: db-access-adminer.php:284 90 90 msgid "Adminer" 91 91 msgstr "" 92 92 93 #: db-access-adminer.php:2 8193 #: db-access-adminer.php:298 94 94 msgid "Unable to override menu link." 95 95 msgstr "" 96 96 97 #: db-access-adminer.php:3 0897 #: db-access-adminer.php:325 98 98 msgid "Settings" 99 99 msgstr "" 100 100 101 101 #. translators: PHP config setting name 102 #: db-access-adminer.php:4 24102 #: db-access-adminer.php:441 103 103 #, php-format 104 104 msgid "You need the cURL PHP extension enabled, or the %s PHP config setting on to use this tool." … … 106 106 107 107 #. translators: 1: open tag of link to WP admin 2: close tag 3: WP capability name 108 #: db-access-adminer.php:4 78108 #: db-access-adminer.php:495 109 109 #, php-format 110 110 msgid "You must be %1$slogged in to WordPress%2$s and possess the %3$s capability to use this tool." … … 112 112 113 113 #. translators: open and close tags of link to plugin settings 114 #: db-access-adminer.php: 487114 #: db-access-adminer.php:504 115 115 #, php-format 116 116 msgid "Ensure you have completed %sAdminer setup%s and addressed missing requirements, if any." 117 117 msgstr "" 118 118 119 #: db-access-adminer.php: 494119 #: db-access-adminer.php:511 120 120 msgid "Could not create one or more ephemeral files for Adminer. Write access to the plugin directory is required." 121 121 msgstr "" 122 122 123 123 #. translators: open and close tags of link to plugin settings 124 #: db-access-adminer.php: 498124 #: db-access-adminer.php:515 125 125 #, php-format 126 126 msgid "Could not load one or more ephemeral files from WordPress. The plugin may not be %sset up%s correctly." 127 127 msgstr "" 128 128 129 #: db-access-adminer.php:5 05129 #: db-access-adminer.php:522 130 130 msgid "Credentials were not shared because they could not first be secured." 131 131 msgstr "" 132 132 133 #: db-access-adminer.php:5 08133 #: db-access-adminer.php:525 134 134 msgid "Could not read secured credentials. Try again." 135 135 msgstr "" 136 136 137 #: db-access-adminer.php:5 11137 #: db-access-adminer.php:528 138 138 msgid "Could not communicate with WordPress. It may be being blocked." 139 139 msgstr "" 140 140 141 #: db-access-adminer.php:5 14141 #: db-access-adminer.php:531 142 142 msgid "Database communication error." 143 143 msgstr "" 144 144 145 #: db-access-adminer.php:5 17146 msgid " Could not loadAdminer."145 #: db-access-adminer.php:534 146 msgid "The plugin must be activated to use Adminer." 147 147 msgstr "" 148 148 149 #: db-access-adminer.php:5 20149 #: db-access-adminer.php:537 150 150 msgid "An unknown error has occurred." 151 151 msgstr "" 152 152 153 153 #. translators: no specific design selected 154 #: db-access-adminer.php:6 13154 #: db-access-adminer.php:630 155 155 msgid "default" 156 156 msgstr "" -
db-access-adminer/trunk/README.txt
r3390799 r3392656 4 4 Requires at least: 5.3 5 5 Tested up to: 6.8.3 6 Stable tag: 3.0. 06 Stable tag: 3.0.1 7 7 Requires PHP: 5.6.0 8 8 License: GPLv2 or later … … 21 21 Note that any other databases on the same host and protected by the same credentials will also be accessible in Adminer. This is how databases operate and not a limitation of Adminer nor this plugin. If other databases need different access restrictions, they should have separate credentials. 22 22 23 It comes with all the themes published in Adminer's Git repository, so you can select a style that suits you. 24 23 25 == Installation == 24 26 25 After installing the plugin, go to *Settings > Adminer* to configure the plugin and confirm the warning about the risk to your data. Go to *Tools > Adminer* to use it.27 After installing the plugin, go to *Settings > Database Access with Adminer* to configure the plugin and confirm the warning about the risk to your data. Go to *Tools > Adminer* to use it. 26 28 27 29 == Changelog == 30 31 = 3.0.1 = 32 * Fix issue with style selection. Re-save your existing settings to ensure correct loading if using a dark theme. 33 * Clearer error when plugin deactivated. 28 34 29 35 = 3.0.0 = -
db-access-adminer/trunk/db-access-adminer.php
r3390799 r3392656 3 3 Plugin Name: Database Access with Adminer 4 4 Description: Direct database administration using the open source Adminer application. 5 Version: 3.0. 05 Version: 3.0.1 6 6 Requires at least: 5.3 7 7 Requires PHP: 5.6 … … 23 23 const WP_REST_NONCE = 'wp_rest'; 24 24 const ENCRYPTION_LIFETIME = 300; 25 const RES_CSS = __DIR__ . '/adminer.css';26 25 27 26 add_action('admin_menu', function() { … … 132 131 [ 133 132 'auto_submit', 134 'warning_accepted' 133 'looser_perms', 134 'warning_accepted', 135 135 ] 136 136 , false 137 137 ); 138 138 139 $design_reset_error = false; 140 foreach (['', '-dark'] as $design_link_suffix) { 141 $design_link_file = "adminer$design_link_suffix.css"; 142 $design_link_path = __DIR__ . "/$design_link_file"; 143 if (@is_link($design_link_path)) { 144 if ( 145 $design !== null 146 && basename($design) === $design_link_file 147 && $design === @readlink($design_link_path) 148 ) { 149 $design = null; # setting unchanged so leave existing link 150 } 151 elseif (!@unlink($design_link_path)) { 152 $design_reset_error = true; 153 } 154 } 155 elseif (@file_exists($design_link_path)) { # likely a custom file 156 $design_reset_error = true; 157 } 158 } 139 159 if ( 140 ( 141 file_exists(RES_CSS) 142 && !@unlink(RES_CSS) 143 ) 160 $design_reset_error 144 161 || ( 145 162 $design !== null 146 && !@symlink($design, RES_CSS)163 && !@symlink($design, __DIR__ . '/' . basename($design)) 147 164 ) 148 165 ) { … … 514 531 __('Database communication error.', 'db-access-adminer'), 515 532 ], 516 ' load_failed' => [517 __(' Could not loadAdminer.', 'db-access-adminer'),533 'inactive' => [ 534 __('The plugin must be activated to use Adminer.', 'db-access-adminer'), 518 535 ], 519 536 'unknown' => [ -
db-access-adminer/trunk/index.php
r3390799 r3392656 113 113 ) { 114 114 $message = [ 115 'No messages file found. Check %sWP Admin > Settings > Adminer%s.',115 'No messages file found. Check %sWP Admin > Settings > Database Access with Adminer%s.', 116 116 [ 117 117 '<em>', … … 217 217 $message = empty($body->message) ? $messages['unknown'] : (array) $body->message; 218 218 } 219 elseif ( 220 $status == 404 221 && !empty($body->code) 222 && $body->code === 'rest_no_route' 223 ) { 224 $message = $messages['inactive']; 225 } 219 226 else { 220 227 $message = $messages['unprivileged']; -
db-access-adminer/trunk/languages/db-access-adminer.pot
r3390799 r3392656 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Database Access with Adminer 3.0. 0\n"5 "Project-Id-Version: Database Access with Adminer 3.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/db-access-adminer\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-11- 05T08:44:07+00:00\n"12 "POT-Creation-Date: 2025-11-10T04:43:06+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 35 35 msgstr "" 36 36 37 #: db-access-adminer.php:6 637 #: db-access-adminer.php:65 38 38 msgid "Open Adminer" 39 39 msgstr "" 40 40 41 41 #. translators: open and close <em> tag 42 #: db-access-adminer.php: 7042 #: db-access-adminer.php:69 43 43 #, php-format 44 44 msgid "The link is also found under the %sTools%s menu." 45 45 msgstr "" 46 46 47 #: db-access-adminer.php:12 347 #: db-access-adminer.php:122 48 48 msgid "Unknown design selection." 49 49 msgstr "" 50 50 51 #: db-access-adminer.php:1 5251 #: db-access-adminer.php:169 52 52 msgid "Failed to set design." 53 53 msgstr "" 54 54 55 #: db-access-adminer.php:1 7455 #: db-access-adminer.php:191 56 56 msgid "Alternative design" 57 57 msgstr "" 58 58 59 #: db-access-adminer.php:2 0259 #: db-access-adminer.php:219 60 60 msgid "Change the theme Adminer uses." 61 61 msgstr "" 62 62 63 #: db-access-adminer.php:2 2963 #: db-access-adminer.php:246 64 64 msgid "Auto-submit Adminer's login form" 65 65 msgstr "" 66 66 67 #: db-access-adminer.php:2 3167 #: db-access-adminer.php:248 68 68 msgid "Adminer has its own login system which must still be activated, even though this plugin limits access. It's slightly more secure to submit it manually at the cost of a little convenience." 69 69 msgstr "" 70 70 71 #: db-access-adminer.php:2 3971 #: db-access-adminer.php:256 72 72 msgid "Less restrictive permissions on authentication files" 73 73 msgstr "" 74 74 75 #: db-access-adminer.php:2 4075 #: db-access-adminer.php:257 76 76 msgid "This grants read access to the group set on those ephemeral files, for cases where the group is different to the owner and that prevents Adminer from running. This can occur when the web server runs under a different account to PHP. Enable only if necessary." 77 77 msgstr "" 78 78 79 #: db-access-adminer.php:2 5279 #: db-access-adminer.php:269 80 80 msgid "I accept" 81 81 msgstr "" 82 82 83 83 #. translators: open and close <strong> tag on consequences, WP capability name 84 #: db-access-adminer.php:2 5584 #: db-access-adminer.php:272 85 85 #, php-format 86 86 msgid "This tool enables direct editing of your database, which can be very useful. However, if you are unfamiliar with it, %syou risk irreversible loss of or damage to your site's data%s. This includes losing access to your site admin pages if you modify records in the users table. It is recommended you do not use this tool unless you have a regular backup regime. It will also be available to all accounts that have the %s capability (normally admins), so you may wish to limit other accounts' access now. Checking this box means you understand this and accept the risk." 87 87 msgstr "" 88 88 89 #: db-access-adminer.php:2 6789 #: db-access-adminer.php:284 90 90 msgid "Adminer" 91 91 msgstr "" 92 92 93 #: db-access-adminer.php:2 8193 #: db-access-adminer.php:298 94 94 msgid "Unable to override menu link." 95 95 msgstr "" 96 96 97 #: db-access-adminer.php:3 0897 #: db-access-adminer.php:325 98 98 msgid "Settings" 99 99 msgstr "" 100 100 101 101 #. translators: PHP config setting name 102 #: db-access-adminer.php:4 24102 #: db-access-adminer.php:441 103 103 #, php-format 104 104 msgid "You need the cURL PHP extension enabled, or the %s PHP config setting on to use this tool." … … 106 106 107 107 #. translators: 1: open tag of link to WP admin 2: close tag 3: WP capability name 108 #: db-access-adminer.php:4 78108 #: db-access-adminer.php:495 109 109 #, php-format 110 110 msgid "You must be %1$slogged in to WordPress%2$s and possess the %3$s capability to use this tool." … … 112 112 113 113 #. translators: open and close tags of link to plugin settings 114 #: db-access-adminer.php: 487114 #: db-access-adminer.php:504 115 115 #, php-format 116 116 msgid "Ensure you have completed %sAdminer setup%s and addressed missing requirements, if any." 117 117 msgstr "" 118 118 119 #: db-access-adminer.php: 494119 #: db-access-adminer.php:511 120 120 msgid "Could not create one or more ephemeral files for Adminer. Write access to the plugin directory is required." 121 121 msgstr "" 122 122 123 123 #. translators: open and close tags of link to plugin settings 124 #: db-access-adminer.php: 498124 #: db-access-adminer.php:515 125 125 #, php-format 126 126 msgid "Could not load one or more ephemeral files from WordPress. The plugin may not be %sset up%s correctly." 127 127 msgstr "" 128 128 129 #: db-access-adminer.php:5 05129 #: db-access-adminer.php:522 130 130 msgid "Credentials were not shared because they could not first be secured." 131 131 msgstr "" 132 132 133 #: db-access-adminer.php:5 08133 #: db-access-adminer.php:525 134 134 msgid "Could not read secured credentials. Try again." 135 135 msgstr "" 136 136 137 #: db-access-adminer.php:5 11137 #: db-access-adminer.php:528 138 138 msgid "Could not communicate with WordPress. It may be being blocked." 139 139 msgstr "" 140 140 141 #: db-access-adminer.php:5 14141 #: db-access-adminer.php:531 142 142 msgid "Database communication error." 143 143 msgstr "" 144 144 145 #: db-access-adminer.php:5 17146 msgid " Could not loadAdminer."145 #: db-access-adminer.php:534 146 msgid "The plugin must be activated to use Adminer." 147 147 msgstr "" 148 148 149 #: db-access-adminer.php:5 20149 #: db-access-adminer.php:537 150 150 msgid "An unknown error has occurred." 151 151 msgstr "" 152 152 153 153 #. translators: no specific design selected 154 #: db-access-adminer.php:6 13154 #: db-access-adminer.php:630 155 155 msgid "default" 156 156 msgstr ""
Note: See TracChangeset
for help on using the changeset viewer.