Commit Graph

378 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
59f411639f Use the router for the server status variables page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-12 17:06:16 -03:00
Maurício Meneghini Fauth
31db3b7e42 Use the router for the server status processes page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-12 14:26:06 -03:00
Maurício Meneghini Fauth
74659abe8b Use the router for the server status monitor page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-10 19:20:38 -03:00
Maurício Meneghini Fauth
e761ab440e Use the router for the server status advisor page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-10 18:39:49 -03:00
Maurício Meneghini Fauth
9a09477bf2 Use the router for the server replication page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-10 17:10:18 -03:00
Maurício Meneghini Fauth
5500f9b170 Use the router for the server binlog page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-08 02:39:15 -03:00
Maurício Meneghini Fauth
c3c58e6cd4 Use the router for the database QBE page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-07 23:43:44 -03:00
Maurício Meneghini Fauth
18a9d4f9db Use the router for the multi table query page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-07 23:00:18 -03:00
Maurício Meneghini Fauth
f0a1762f78 Use the router for the SQL autocomplete and format
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-07 18:16:07 -03:00
Maurício Meneghini Fauth
616cc8d901 Use the router for the triggers page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-07 16:08:46 -03:00
Maurício Meneghini Fauth
74f8246fd5 Use the router for the database routines page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-07 01:53:31 -03:00
Maurício Meneghini Fauth
1b39e5e346 Use the router for the database events page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-06 00:57:08 -03:00
Maurício Meneghini Fauth
00eb35b2be Use the router the for the browse foreigners page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-05 23:27:47 -03:00
Maurício Meneghini Fauth
63cced225e Use the router for the ajax.php file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-05 21:25:37 -03:00
Maurício Meneghini Fauth
d858c15edc Use the router for the database designer page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-05 20:32:15 -03:00
Maurício Meneghini Fauth
a467581f65 Use the router for the database data dictionary page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-05 18:48:18 -03:00
Maurício Meneghini Fauth
c57e8540fc Use the router for the central columns page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-05 18:19:04 -03:00
Maurício Meneghini Fauth
71a5c660df Move sql entry points to libraries/entry_points
- sql.php -> libraries/entry_points/sql.php
- server_sql.php -> libraries/entry_points/server/sql.php
- db_sql.php -> libraries/entry_points/database/sql.php
- tbl_sql.php -> libraries/entry_points/table/sql.php

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-05 15:34:50 -03:00
Maurício Meneghini Fauth
208b0e25e1 Use the router for the sql pages
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-03 21:25:27 -03:00
Maurício Meneghini Fauth
e4982d677d Use the router for the table change page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-26 02:13:37 -03:00
Maurício Meneghini Fauth
3b973a442d Use the router for table search page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-25 20:40:55 -03:00
Maurício Meneghini Fauth
2a597d6155 Extract HTML from message string in index.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-25 16:53:54 -03:00
Maurício Meneghini Fauth
469fd5c05c Use the router for the database operations page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-24 02:12:15 -03:00
Maurício Meneghini Fauth
f396c04835 Use the router for database search page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-23 22:26:50 -03:00
Maurício Meneghini Fauth
9437c5d22a Use the router for the server status page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-23 20:51:11 -03:00
Maurício Meneghini Fauth
0f23a622bc Use the router for the server privileges page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-23 02:48:02 -03:00
Maurício Meneghini Fauth
74e1b02878 Add error handling for the request router
Adds error messages for NOT_FOUND and METHOD_NOT_ALLOWED.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-21 22:58:38 -03:00
Maurício Meneghini Fauth
aec0402679 Use the router for table structure page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-19 20:18:06 -03:00
Maurício Meneghini Fauth
682e7a160e Use the router for database structure page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-18 14:33:43 -03:00
Maurício Meneghini Fauth
0a5f24052a Use the router for the tracking pages
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-15 01:38:18 -03:00
Maurício Meneghini Fauth
e8c51f936d Use the router for the server_variables.php page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-12 21:10:24 -03:00
Maurício Meneghini Fauth
5e20178f1f Organize libraries/entry_points files with directories
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-12 19:09:02 -03:00
Maurício Meneghini Fauth
c5db3b035b Use the router for the server_status_queries.php page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-09 21:51:49 -03:00
Maurício Meneghini Fauth
cda99ea57f Use the router for the server_engines.php page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-09 21:51:49 -03:00
Maurício Meneghini Fauth
25430be5dc Use the router for the server_collations.php page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-09 21:51:49 -03:00
Maurício Meneghini Fauth
a94159fd46 Use the router for the server_plugins.php page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-09 21:51:49 -03:00
Maurício Meneghini Fauth
a482e45137 Move index.php home logic to libraries/entry_points
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-09 21:51:49 -03:00
Maurício Meneghini Fauth
8bb4a2d725 Move server_databases.php to libraries/entry_points
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-09 21:51:49 -03:00
Maurício Meneghini Fauth
ff16bee5ad Add router for server_databases.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-07-09 21:51:49 -03:00
Hugues Peccatte
df847d7121 Remove useless 'use'
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-06-15 21:40:21 +02:00
Hugues Peccatte
a395bd2823 Remove as much as possible the old DI system
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-06-15 21:39:21 +02:00
Hugues Peccatte
380707fbcd Define controllers as services in an external configuration file
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-05-19 01:54:44 +02:00
Maurício Meneghini Fauth
cd4068f525 Remove $server global from PHPStan ignored list
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-05-14 22:43:54 -03:00
Maurício Meneghini Fauth
17195fbe72 Get $dbi from DIC instead of global in entry points
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-04-18 01:09:38 -03:00
Maurício Meneghini Fauth
4b61201899 Refactor index.php
Extracts actions to controller

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-03-16 18:07:31 -03:00
Maurício Meneghini Fauth
cedfe813b9 Create PhpMyAdmin\Controllers\HomeController
Extracts HTML from index.php to home/index template

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-03-15 21:20:44 -03:00
Maurício Meneghini Fauth
7eb2bbc102 Remove libraries/check_user_privileges.inc.php
Replaces with CheckUserPrivileges::getPrivileges

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2019-01-22 18:18:21 -02:00
Maurício Meneghini Fauth
a1d3d334b4
Merge pull request #14855 from Tithugues/feature/reduce-nested-ifs
Reduce nested ifs
2019-01-16 02:16:38 -03:00
Hugues Peccatte
f1e140be05 Reduce nested ifs
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-01-12 23:06:04 +01:00
Hugues Peccatte
746fd8b417 Replace regular expressions when simple
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-01-12 02:06:28 +01:00