diff --git a/.gitignore b/.gitignore index 2afb1ac5..946395f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ /adminer/adminer.css +/adminer/adminer-dark.css +/editor/adminer.css +/editor/adminer-dark.css /adminer*.php /editor*.php /vendor/ +adminer-plugins/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 306273a1..56a77204 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ - CSS: Sticky table headers (bug #918) - CSS: Allow more custom styles with dark mode (bug #925) - IMAP: New plugin driver created for fun +- Plugins: autoload plugins from adminer-plugins/ +- Plugins: configure plugins with adminer-plugins/config.php ## Adminer 5.0.6 (released 2025-03-17) - Align numbers right (bug #912) diff --git a/README.md b/README.md index 62f31c6b..b70f40d0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Adminer -**Adminer** is a full-featured database management tool written in PHP. It consists of a single file ready to deploy -to the target server. **Adminer Editor** offers data manipulation for end-users. +**Adminer** is a full-featured database management tool written in PHP. +It consists of a single file ready to deploy to the target server. +**Adminer Editor** offers data manipulation for end-users. https://www.adminer.org/ @@ -18,11 +19,32 @@ If downloaded from Git then run: `git submodule update --init` - `adminer/index.php` - Run development version of Adminer - `editor/index.php` - Run development version of Adminer Editor - `editor/example.php` - Example customization -- `plugins/readme.txt` - Plugins for Adminer and Adminer Editor -- `adminer/plugin.php` - Plugin demo - `adminer/sqlite.php` - Development version of Adminer with SQLite allowed - `editor/sqlite.php` - Development version of Editor with SQLite allowed - `adminer/designs.php` - Development version of Adminer with `adminer.css` switcher - `compile.php` - Create a single file version - `lang.php` - Update translations - `tests/*.html` - Katalon Recorder test suites + +## Plugins +There are [several plugins](plugins/) distributed with Adminer and there are also many user-contributed plugins linked from https://www.adminer.org/plugins/. +To use a plugin, simply upload it to `adminer-plugins/` next to `adminer.php`. + +``` +- adminer.php +- adminer-plugins + - config.php + - dump-xml.php + - login-password-less.php +``` + +Some plugins require configuration. To use them, you need to create another file in `adminer-plugins/`: + +```php +plugins = $plugins; } diff --git a/adminer/include/version.inc.php b/adminer/include/version.inc.php index 06e2b335..8f8811d6 100644 --- a/adminer/include/version.inc.php +++ b/adminer/include/version.inc.php @@ -1,4 +1,4 @@ for system databases and schemas - information_schema and driver-specific (thanks to Vaclav Novotny) Define foreign keys name - http://forum.zdrojak.root.cz/index.php?topic=185.msg1255#msg1255 Skinnable plus.gif and other images - http://typo3.org/extensions/repository/view/t3adminer/current/ -Plugins autoloader: branch autoload; are there security risks? ? Filter by value in row under in select ? Column and table names auto-completion in SQL textarea - http://blog.quplo.com/2010/06/css-code-completion-in-your-browser/ ? Aliasing of built-in functions can save 7 KB, function minification can save 7 KB, substitution of repetitive $a["a"] can save 4 KB, substitution of $_GET and friends can save 2 KB, aliasing of $connection->query can save 24 B, JS Closure compiler can save 2 KB, not enclosing HTML attribute values can save 1.2 KB, replacing \\n by \n can save .3 KB