1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-22 14:12:51 +02:00

362 Commits

Author SHA1 Message Date
Jakub Vrana
6dec0d63b0 New plugin: Specify query timeout 2025-07-07 15:21:02 +02:00
Jakub Vrana
62a9cf3e3f Editor: Fix bit edit 2025-05-04 15:20:11 +02:00
Jakub Vrana
e707c7a5f4 Editor: Fix bit and enum search (fix #1062) 2025-05-04 15:20:11 +02:00
Jakub Vrana
3dad86d279 Plugins: Allow setting dark mode in css() (bug #1049) 2025-04-17 16:58:58 +02:00
Jakub Vrana
5867b0724f Plugins: Method bodyClass() to add <body class> (fix #309) 2025-04-13 08:24:16 +02:00
Jakub Vrana
e6cc8bf91e AdminerConfig: Move link (fix #995) 2025-04-07 20:55:01 +02:00
Jakub Vrana
cca943015f New plugin: Configure options by end-users and store them to a cookie 2025-04-06 07:29:16 +02:00
Jakub Vrana
01d8fe112c Do not include compiled logo twice 2025-04-04 17:44:58 +02:00
Jakub Vrana
7dbd929600 CSS: Link logo 2025-04-04 17:29:14 +02:00
Jakub Vrana
6c9ac63508 Editor: Split sending e-mails to a plugin 2025-04-04 17:26:56 +02:00
Jakub Vrana
6e8c89ee71 CSS: Add logo 2025-04-04 07:59:17 +02:00
Jakub Vrana
9f3f3b9515 Plugins: Allow changing CSP by more plugins 2025-03-31 20:20:26 +02:00
Jakub Vrana
016c1b2357 PHPStan: Fix types 2025-03-31 10:09:30 +02:00
Jakub Vrana
712d96b22c Use connection() instead of $connection 2025-03-29 22:10:20 +01:00
Jakub Vrana
168ea5ae6d Use driver() instead of $driver 2025-03-29 22:05:31 +01:00
Jakub Vrana
845445baad Use adminer() instead of $adminer 2025-03-29 21:43:29 +01:00
Jakub Vrana
f0920af6b7 Move $VERSION and version() to VERSION 2025-03-28 18:39:30 +01:00
Jakub Vrana
dc38a7ded3 Plugins: Move operators to a method 2025-03-28 14:30:00 +01:00
Jakub Vrana
c169c55d70 Call Plugins from Adminer class 2025-03-28 12:47:09 +01:00
Jakub Vrana
5e88dae4e2 Doc-comments: Format 2025-03-28 12:45:02 +01:00
Jakub Vrana
45c045382a Doc-comments: Move return types to declaration 2025-03-28 12:45:02 +01:00
Jakub Vrana
641ee4ff26 Doc-comments: Move param types to declaration 2025-03-28 12:45:02 +01:00
Jakub Vrana
911f3b71b7 Doc-comments: Add param names 2025-03-28 12:45:02 +01:00
Jakub Vrana
309fdb0d86 PHPStan: Fix level 3 errors 2025-03-26 16:57:58 +01:00
Jakub Vrana
7e5757f8b4 PHPStan: Fix level 2 errors 2025-03-26 16:22:15 +01:00
Jakub Vrana
1b8a428d2f Notices: Avoid accessing offset on null
Thanks to @peterpp at 62017e3.
2025-03-26 07:20:10 +01:00
Jakub Vrana
41aad5bc37 Doc-comment: Use type aliases for arrays
Type aliases could be defined either globally (https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases) or just for a class.
I prefer having them at the place where they are created.
2025-03-26 02:43:08 +01:00
Jakub Vrana
cccc784da4 Always return array from table_status() 2025-03-26 01:34:48 +01:00
Jakub Vrana
2ee325183b Doc-comment: Improve array @param
This uses syntax from https://phpstan.org/writing-php-code/phpdoc-types#general-arrays.

int[] means an array of ints with arbitrary keys (usually strings)
list<string> means an array of strings with sequential integer keys starting at 0
list<string>[] means an arbitrary array of string lists
list<string[]> means list of arbitrary string arrays
string[][] means two dimensional array with arbitrary keys in both dimensions
array was left in the comments for https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
2025-03-25 14:31:27 +01:00
Jakub Vrana
60555c5736 Editor: Fix pre-selecting empty enum 2025-03-24 07:30:22 +01:00
Jakub Vrana
8cec1bd611 Notices: Declare Adminer::$error 2025-03-24 07:30:22 +01:00
Jakub Vrana
ff0fe92c00 Add forgotten space 2025-03-18 19:51:25 +01:00
Jakub Vrana
bc9de24d77 Add helper for <input type=hidden> 2025-03-18 17:15:10 +01:00
Jakub Vrana
9cfea02e19 Avoid excessive PHP and HTML mixing 2025-03-18 16:45:15 +01:00
Jakub Vrana
a9b020452e Plugins: Add backward-keys 2025-03-17 19:58:20 +01:00
Jakub Vrana
517f63835d Plugins: add syntaxHighlighting() and CodeMirror 2025-03-16 14:00:39 +01:00
Jakub Vrana
42bf7b9ca0 Align numbers right (bug #912) 2025-03-15 15:13:41 +01:00
Jakub Vrana
e3515fd63f CSS: Dark mode syntax highlighting and adminer-dark.css 2025-03-15 02:00:21 +01:00
Jakub Vrana
dd3cc4e683 Add plugin AdminerEditorViews (fix #905) 2025-03-12 05:22:57 +01:00
Jakub Vrana
199edfe11f Plugins: Add method dumpFooter() 2025-03-11 08:59:38 +01:00
Jakub Vrana
1e963cf90f Change var to public 2025-03-11 08:17:00 +01:00
Jakub Vrana
0c15a9f42d Use private visibility on methods 2025-03-11 08:16:41 +01:00
Jakub Vrana
607febea8e Use private visibility 2025-03-11 08:16:39 +01:00
Jakub Vrana
d35c896b92 Add helper function 2025-03-08 06:13:18 +01:00
Jakub Vrana
c873ceba17 Use PHP 5.3 functions 2025-03-05 15:54:13 +01:00
Jakub Vrana
ed5de27dd3 Code style: Indent long statements 2025-03-05 14:59:13 +01:00
Jakub Vrana
a7f097e78c Code style: Indent long statements 2025-03-05 14:51:17 +01:00
Jakub Vrana
af68e30742 Code style: Remove newline before } 2025-03-05 14:38:48 +01:00
Jakub Vrana
e1e085f312 Use namespace in callbacks 2025-03-05 13:10:40 +01:00
Jakub Vrana
52c5392089 PHP: Use namespace 2025-03-05 13:10:40 +01:00