Commit Graph

119 Commits

Author SHA1 Message Date
Piyush Vijay
353fa83e2a Add db_tracking.js for tracking tables of database in modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:25 +05:30
Leonardo Strozzi
491ce9a669 Refactor db_tracking templates
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-25 23:42:22 -03:00
Maurício Meneghini Fauth
285e38e931 Fix some PSR-2 coding standard errors
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-30 09:07:56 -03:00
Maurício Meneghini Fauth
af148ad92b Enable strict mode in PHP files
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-16 04:36:04 -03:00
Maurício Meneghini Fauth
5f0a7908cb Replace static methods with instance methods
Replaces PhpMyAdmin\Tracking static methods with instance methods.

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-03-31 03:35:56 -03:00
Maurício Meneghini Fauth
d98658187a Replace PhpMyAdmin\Relation static calls
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-03-25 19:32:13 -03:00
Maurício Meneghini Fauth
5733c1302f Refactor Tracking::displayUntrackedTables method
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-12-10 11:42:53 -02:00
Maurício Meneghini Fauth
261c39c815 Refactor Tracking::displayTrackedTables
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-12-04 17:35:07 -02:00
Maurício Meneghini Fauth
512d81cb29 Refactor display_create_table to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-07 09:37:02 -03:00
Maurício Meneghini Fauth
e2c83b954b Refactor relation functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-08-22 20:51:27 -03:00
Maurício Meneghini Fauth
bb0555bb25 Refactor tracking functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-08-21 13:04:36 -03:00
Maurício Meneghini Fauth
ca910e8de8 Move classes to PhpMyAdmin namespace
- Move Table to PhpMyAdmin namespace
- Move Template to PhpMyAdmin namespace
- Move ThemeManager to PhpMyAdmin namespace
- Move Theme to PhpMyAdmin namespace
- Move Tracker to PhpMyAdmin namespace
- Move Transformations to PhpMyAdmin namespace
- Move TypesMySQL to PhpMyAdmin namespace
- Move Types to PhpMyAdmin namespace
- Move Util to PhpMyAdmin namespace
- Move VersionInformation to PhpMyAdmin namespace
- Move Url to PhpMyAdmin namespace

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-07-08 10:54:21 -03:00
Maurício Meneghini Fauth
119563b7ea Move classes to PhpMyAdmin namespace
- Move OpenDocument to PhpMyAdmin namespace
- Move OutputBuffering to PhpMyAdmin namespace
- Move Partition to PhpMyAdmin namespace
- Move Pdf class to PhpMyAdmin namespace
- Move RecentFavoriteTable to PhpMyAdmin namespace
- Move Response to PhpMyAdmin namespace

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-30 23:44:10 -03:00
Maurício Meneghini Fauth
54a15dbd9c Move classes to PhpMyAdmin namespace
- Move Logging to PhpMyAdmin namespace
- Move Menu to PhpMyAdmin namespace
- Move Message to PhpMyAdmin namespace

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-30 13:30:04 -03:00
Maurício Meneghini Fauth
61b7d5dfd8 Move js/jquery to js/vendor/jquery
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-14 01:57:25 -03:00
Michal Čihař
308c9d7951 Simplify Response object handling
- always use use and short name
- avoid calling getInstance() several times in one script

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-07 18:17:59 +01:00
Deven Bansod
f14cffdbe7 Properly escape strings in MySQL statement values
Use *_real_escape string functions provided by connectors to escape strings while exporting

Fix #12453

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>

Conflicts:
	libraries/server_privileges.lib.php
2016-10-29 10:45:12 +05:30
Marc Delisle
66c15daba0 Remove some unnecessary string concatenations
https://github.com/dseguy/clearPHP/blob/master/rules/no-unnecessary-string-concatenation.md

Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-12-06 08:01:07 -05:00
Hugues Peccatte
f9d582bd09 Make PHPCS happy.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-11-08 15:58:48 +01:00
Hugues Peccatte
58b10807c8 Rename classes files.
Rename classes.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:22 +02:00
Hugues Peccatte
f0ba28fc1d Set namespace on Advisor, Config, Console and Util classes.
Set namespace on DbQbe.
Set namespace to 'DbSearch'.
Split Advisor.class.php file.
Change Advisor namespace.
Rename DbQbe class and file.
Set namespace on DisplayResults.
Set namespace on Error.
Use namespace for ErrorHandler.
Add class autoloader.
Change ErrorHandler filename.
Remove some require.
Update Config namespace path.
Update PMA_Util to PMA\libraries\Util.
Rename Font and File classes files.
Use namespace for Footer.
Set namespace in all libraries classes.
Namespace OutputBuffering.
Export SubPartition.
Rename Partition file.
Namespace PDF.
Namespace RecentFavoriteTable.
Replace PMA_Response by Response and PMA_Message by Message.
Update uses and calls.
Fix unit tests.
Fix SqlParser autoload.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:22:52 +02:00
Marc Delisle
bb01f9b2b7 Refactor db_info.inc.php
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-08-25 11:16:59 -04:00
Marc Delisle
4b0cd53e75 Add missing type check
Fix parameter type

Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-08-23 12:34:42 -04:00
Marc Delisle
7be11bfcdb Continue refactoring db tracking
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-08-18 08:44:28 -04:00
Marc Delisle
0a9af638a2 Continue refactoring db tracking
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-08-16 08:44:41 -04:00
Marc Delisle
0e1682890e Refactor db tracking
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-08-15 11:59:38 -04:00
Jason
1c28e6a8ab Creating StructureController
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-07-31 01:04:30 +08:00
Hugues Peccatte
9cbfa30745 Make PHPCS happy.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-07-23 17:47:53 +02:00
Madhura Jayaratne
fc5d0688b3 Shift+click selection for db tracking page
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-05-12 11:54:03 +05:30
Rahul Kadyan
4d308ba364 Remove unneeded closing tags
Closing tags at the end of file are not mandatory. It is often
suggested to omit to closing tags at the end of file to prevent
unwanted effects as PHP will start output buffering if there is
any character after closing tag.

Reference: http://php.net/manual/en/language.basic-syntax.phptags.php

Signed-off-by: Rahul Kadyan <hi@znck.me>
2015-03-06 23:37:35 +05:30
Madhura Jayaratne
5619047ab9 rfe Change tracking activation status from db level tracking page
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-02-23 09:37:45 +05:30
Madhura Jayaratne
7226ddad6f Right align numerical columns
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-02-11 14:13:33 +05:30
Madhura Jayaratne
52da3b8084 Use table sorting for tracking tables
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-02-11 10:19:57 +05:30
Madhura Jayaratne
9783eb8e24 Highlight table name
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-02-11 09:31:08 +05:30
Madhura Jayaratne
88d7fe2c9c Use icons and be consistent with $cfg['ActionLinksMode']
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-02-11 08:51:08 +05:30
Madhura Jayaratne
bbedc775b9 Allow checking the checkbox by clicking on the table name
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-02-11 07:40:04 +05:30
Marc Delisle
56baec6160 Merge branch 'QA_4_3' 2015-01-04 07:35:26 -05:00
Madhura Jayaratne
dfae4d2f08 Bug #4676 - Auto configuration issues
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-01-02 09:49:03 +05:30
Madhura Jayaratne
469d6311c5 Remove duplicate code
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-11-26 18:23:08 +05:30
Madhura Jayaratne
9bf8246139 Improve action message
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-11-26 18:01:14 +05:30
Madhura Jayaratne
d9c3b9cbed rfe #1564 Improve action message on Tracking page
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-11-26 16:08:26 +05:30
Madhura Jayaratne
70f432f7af Warn when no tables have been selected
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-11-25 17:50:26 +05:30
Madhura Jayaratne
3b2f62d3c2 Tracking improvements. Implements rfe #1562
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-11-25 17:31:53 +05:30
Hugues Peccatte
42e0bdd47a Fix typos.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-11-02 18:32:42 +01:00
Ann + J.M
a540e6ba87 More fixes to new PMA_URL_getCommon style
Signed-off-by: Ann + J.M <phpMyAdmin@ZweiSteinSoft.de>
2014-10-18 19:42:39 +02:00
Marc Delisle
4314444675 Refactor duplicate code
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-09-27 12:42:55 -04:00
Michal Čihař
9a88a68e1f Define array before using it
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-05-08 11:59:50 +02:00
Madhura Jayaratne
6335b10574 Fix coding style
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-01-08 14:35:15 +05:30
Michal Čihař
790a2c2bee Rename variable to match current meaning
There is not only INFORMATION_SCHEMA now, so the variable should have
more generic name.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-01-06 11:11:34 +01:00
Marc Delisle
a6924ec916 Fix codestyle 2013-09-16 05:56:37 -04:00