Commit Graph

454 Commits

Author SHA1 Message Date
AbdellahBoutmad
5a82f71580
Edit a sentence in index.php (#19309)
* Edit a sentence in index.php

Signed-off-by: abdellah boutmad <boutabd6@gmail.com>

* Edit a sentence in index.php

Signed-off-by: abdellah boutmad <boutabd6@gmail.com>

* Update index.php

Co-authored-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: abdellah boutmad <boutabd6@gmail.com>

---------

Signed-off-by: abdellah boutmad <boutabd6@gmail.com>
Co-authored-by: William Desportes <williamdes@wdes.fr>
2024-10-08 20:41:13 -03:00
Maurício Meneghini Fauth
af6f448842
Remove JS media type from HTML script tags
The type attribute is unnecessary for JavaScript resources.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-16 20:39:27 -03:00
Maurício Meneghini Fauth
38f6b238db
Move public files to the public directory
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-24 15:36:31 -03:00
Maurício Meneghini Fauth
040b4c582d
Bump minimum PHP version to 8.1.0
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-10 19:20:51 -03:00
Maurício Meneghini Fauth
334bd84002
Move Routing::callControllerForRoute call to Common class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-10-22 09:56:22 -03:00
Maurício Meneghini Fauth
39270211d9
Remove the setup/lib/common.inc.php file
Inline the file contents into setup/index.php file.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-10-22 09:56:21 -03:00
Maurício Meneghini Fauth
bb97ed988f
Reduce usage of the containerBuilder global variable
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-09-29 22:36:46 -03:00
Maurício Meneghini Fauth
eb3703882b
Move Routing::getCurrentRoute to ServerRequest
The route is retrieved from the request, so it makes sense to move the
method to the Http\ServerRequest class.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-06 23:36:57 -03:00
Maurício Meneghini Fauth
1438cb211e
Replace global keyword with $GLOBALS
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-07 17:31:11 -03:00
Kamil Tekiela
47e81a5161 Remove $route global
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2022-01-27 11:47:40 +00:00
Kamil Tekiela
ef6dbe05ec Implement Common::getRequest() to remove global
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2022-01-27 11:42:39 +00:00
Maurício Meneghini Fauth
1e542cd621
Replace vendor_config.php constants with an array
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-26 16:48:56 -03:00
Maurício Meneghini Fauth
a0d91ec153
Move common.inc.php to classes/Common.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-06 14:00:44 -03:00
Maurício Meneghini Fauth
dc37d436cc
Extract common.inc.php logic to Common::run method
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-06 13:48:11 -03:00
Maurício Meneghini Fauth
17f4e09a6b
Extract some common checks from common.inc.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-06 13:27:14 -03:00
Maurício Meneghini Fauth
80e39b9b55
Move ServerRequest creation to common.inc.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-05 13:20:43 -03:00
Maurício Meneghini Fauth
e23f933d97 Use early exit for Routing::callControllerForRoute
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-07-08 19:12:49 -03:00
Maurício Meneghini Fauth
3baad2eb1c Fix some coding standard issues
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-05-25 22:42:37 -03:00
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