Commit Graph

436 Commits

Author SHA1 Message Date
William Desportes
8c7b7b10db
Move PMA_MINIMUM_COMMON for import-status route after auto-loader
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-28 10:38:11 +01:00
William Desportes
bde3e5ae65
Move all index.php code to PhpMyAdmin\Routing and change cache name
Signed-off-by: William Desportes <williamdes@wdes.fr>

Fix some phpdoc comments

Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-28 10:38:11 +01:00
William Desportes
898a526dfa
Use caching to speed up route parsing
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-28 10:38:11 +01:00
Maurício Meneghini Fauth
dd6110e770 Refactor the route definition file
Simplify the routes file by moving the controller creation to the
index.php file.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-02-12 16:47:49 -03:00
Maurício Meneghini Fauth
f80d3e3bd4 Remove unnecessary annotations
@package, @subpackage and others.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-01-20 17:35:56 -03:00
Maurício Meneghini Fauth
63dbcd01d9 Remove or ignore side effects in PHP files
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-01-19 20:22:37 -03:00
Maurício Meneghini Fauth
39f42f848b Remove some useless docblock comments
Fixes docblock spacing

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-12-13 21:15:00 -03:00
Maurício Meneghini Fauth
dd2b05330a Remove useless parentheses
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-12-12 00:18:01 -03:00
Maurício Meneghini Fauth
77518d341e Remove unused use statements
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-12-11 21:20:58 -03:00
Maurício Meneghini Fauth
940b038382 Create ImportStatusController
Moves import_status entry point to ImportStatusController controller and
removes the import_status.php file.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-12-08 21:33:13 -03:00
Maurício Meneghini Fauth
1a14b3e4d3 Remove vim modelines
These settings are no longer required as they are guaranteed through
other coding standard tools.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-09-02 09:43:21 -03:00
Maurício Meneghini Fauth
ae969ecd39 Set the correct HTTP response code for the router
Sets the correct HTTP response code when the route path is not
found or the requested method is not allowed.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-26 12:39:40 -03:00
Maurício Meneghini Fauth
4077c61b2e Remove support for target URL param for FAQ 1.34
Use the route parameter instead.

https://docs.phpmyadmin.net/en/latest/faq.html#faq1-34

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-26 12:23:01 -03:00
Maurício Meneghini Fauth
f6cb7d4d0f Fix issue with FAQ 1.34 redirection system
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-26 10:31:24 -03:00
Maurício Meneghini Fauth
7a27daa00a Extract the route definition from index.php
Moves the route definition from index.php to libraries/route.php.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-21 13:31:09 -03:00
Maurício Meneghini Fauth
632a774de2 Use the router for transformation_wrapper.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-21 00:11:04 -03:00
Maurício Meneghini Fauth
2ca7148f6a Use the router for transformation_overview.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-21 00:11:04 -03:00
Maurício Meneghini Fauth
60f4c5651a Use the router for view_operations.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-21 00:11:04 -03:00
Maurício Meneghini Fauth
ba6bad9533 Use the router for view_create.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-21 00:11:04 -03:00
Maurício Meneghini Fauth
987d5546fa Use the router for version_check.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-20 00:31:47 -03:00
Maurício Meneghini Fauth
ce5cc3c658 Use the router for schema_export.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-20 00:26:34 -03:00
Maurício Meneghini Fauth
1de76c66dd Use the router for prefs_twofactor.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-20 00:21:19 -03:00
Maurício Meneghini Fauth
bf975c68fd Use the router for prefs_manage.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-20 00:15:09 -03:00
Maurício Meneghini Fauth
5a83fd36b9 Use the router for prefs_forms.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-20 00:01:26 -03:00
Maurício Meneghini Fauth
e7c6eaf667 Use the router for phpinfo.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 23:16:26 -03:00
Maurício Meneghini Fauth
4111f215c6 Use the router for normalization.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 23:12:17 -03:00
Maurício Meneghini Fauth
74ac30fa55 Use the router for navigation.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 23:04:55 -03:00
Maurício Meneghini Fauth
84cb56ab4d Use the router for the logout page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 22:47:53 -03:00
Maurício Meneghini Fauth
3c4447960b Use the router for the lint entry point
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 22:24:11 -03:00
Maurício Meneghini Fauth
285529b5fc Use the router for the license page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 21:17:41 -03:00
Maurício Meneghini Fauth
54b7100c83 Use the router for the gis data editor
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 21:05:01 -03:00
Maurício Meneghini Fauth
084f366cca Use the router for error report entry point
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 20:43:18 -03:00
Maurício Meneghini Fauth
277bf0715f Use the router for check relations page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 20:28:08 -03:00
Maurício Meneghini Fauth
e779a72ce5 Use the router for the import entry point
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 19:20:39 -03:00
Maurício Meneghini Fauth
87c16c569c Use the router for the table import page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 18:36:32 -03:00
Maurício Meneghini Fauth
8d6a1de954 Use the router for the server import page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 18:05:11 -03:00
Maurício Meneghini Fauth
4e773c7fd2 Use the router for the database import page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-19 14:41:03 -03:00
Maurício Meneghini Fauth
3262a276e8 Use the router for the export entry point
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-17 12:25:01 -03:00
Maurício Meneghini Fauth
fb6fcec5f5 Use the router for the table export page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-17 12:10:17 -03:00
Maurício Meneghini Fauth
86d78c547f Use the router for server export page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-17 11:50:06 -03:00
Maurício Meneghini Fauth
ef81c86830 Use the router for the database export page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-17 11:38:55 -03:00
Maurício Meneghini Fauth
eda7fbe7fa Use the router for changelog page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-16 01:19:51 -03:00
Maurício Meneghini Fauth
b3bb988f35 Use the router for the user password page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-16 01:00:04 -03:00
Maurício Meneghini Fauth
2d93cb2570 Use the router for the themes page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-16 00:46:05 -03:00
Maurício Meneghini Fauth
6334599625 Use the router for the table row action page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-16 00:28:54 -03:00
Maurício Meneghini Fauth
23b084c259 Use the router for table relation page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-16 00:12:52 -03:00
Maurício Meneghini Fauth
bbe110b27f Use the router for the table recent favorite
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-15 23:37:35 -03:00
Maurício Meneghini Fauth
13fe20c00d Use the router for the table indexes page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-15 23:19:01 -03:00
Maurício Meneghini Fauth
ee732651b3 Use the router for the table gis visualization page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-15 22:58:21 -03:00
Maurício Meneghini Fauth
5dd7a0f9da Use the router for table get field
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-15 22:51:44 -03:00