1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-26 18:50:46 +03:00
Commit Graph

57 Commits

Author SHA1 Message Date
William Desportes
81825ebda9 Fix #15633 - designer set display field broken for php 5.x versions
Fixes: #15633
Signed-off-by: William Desportes <williamdes@wdes.fr>
2019-12-09 19:51:07 +01:00
William Desportes
2adf0ba1ac Remove some hacks and strange things from designer
Signed-off-by: William Desportes <williamdes@wdes.fr>
2019-11-20 13:00:32 +01:00
William Desportes
97ccafa06a Add a message for misconfigured designer (displaywork)
- When adding a column as display column in designer

Signed-off-by: William Desportes <williamdes@wdes.fr>
2019-11-20 12:30:14 +01:00
William Desportes
a23f2ba51a Fix some bugs with strange table and database names
- Fix export
- Fix split on . to have db and table
- Replace some $_REQUEST occurences
- Add translations to "add tables from another database" : "None" > strNone
- Refactor the ugly code that used globals to use an object "DesignerTable"
- Fix save a new added table
- Fix delete page items
- Fix more bugs

Fixes: #15446
Fixes: #13370
Fixes: #14945
Closes: #15438

Signed-off-by: William Desportes <williamdes@wdes.fr>
2019-08-23 00:55:41 +02:00
Hugues Peccatte
de57539fb7 Build "tables list" in JS
This will allow to have the list generation in only one place, as the tables can now be added on the fly. So JS also needs to add items to this list.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-08-21 00:01:17 +02:00
Hugues Peccatte
49dae2de12 Fix wrong id on table
When a table is added on the fly, the id was always built based on the first table of the targetted DB, not based on the selected table.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-08-20 20:57:20 +02:00
William Desportes
450fdab3d0 Fix export on designer page (use POST instead of GET)
Affects the file name when exporting
Introduced-by: 3500da154f
[ci-skip]
Signed-off-by: William Desportes <williamdes@wdes.fr>
2019-05-11 00:15:10 +02:00
William Desportes
3500da154f Fix undefined index dialog
Did occur when POST OR GET was sent to have a dialog
Signed-off-by: William Desportes <williamdes@wdes.fr>
2019-05-07 18:45:51 +02:00
Madhura Jayaratne
2a749337bf Retrieve parameters from $_POST in designer
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2018-11-10 20:48:58 -02:00
Maurício Meneghini Fauth
aa958b5567 Replace pmd* in CSS classes and IDs with designer*
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-02-24 18:33:10 -03:00
Maurício Meneghini Fauth
c7f3d6e4e6 Rename $GLOBALS['PMD'] to $GLOBALS['designer']
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-02-24 17:45:48 -03:00
Maurício Meneghini Fauth
fcfa31a51f Rename js/pmd directory to js/designer
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-02-24 16:58:58 -03:00
Maurício Meneghini Fauth
f21bc9668d Replace static methods with instance methods
Replace PhpMyAdmin\Database\Designer\Common static methods with instance methods.

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-02-24 16:39:53 -03:00
Maurício Meneghini Fauth
7f62eef8a7 Rename PmdCommon to Database\Designer\Common
Rename PhpMyAdmin\PmdCommon to PhpMyAdmin\Database\Designer\Common.

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-02-24 16:14:44 -03:00
Maurício Meneghini Fauth
92beb1a4f4 Replace static methods with instance methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-02-22 23:58:41 -03:00
Maurício Meneghini Fauth
01fd301003 Use 'elseif' keyword istead of 'else if'
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-12-04 13:31:25 -02:00
Maurício Meneghini Fauth
f7be7ceec1 Port database/designer/query_details to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-11 23:28:12 -03:00
Maurício Meneghini Fauth
d2c487e378 Refactor pmd_common functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-13 18:48:10 -03:00
Maurício Meneghini Fauth
700e081833 Refactor plugin_interface functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-12 17:36:39 -03:00
Maurício Meneghini Fauth
8079fd7009 Refactor db_designer functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-05 16:41:48 -03:00
Isaac Bennetch
22ddc46e4d Replace some double-quotes with single-quotes to match existing styles
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
2017-08-14 14:16:52 -04:00
Raghuram Vadapalli
7fc7e5aa76 Allow designer to show tables from other DB
Signed-off-by: Raghuram Vadapalli <raghuram.4350@gmail.com>
2017-07-22 23:04:17 +05:30
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
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
Michal Čihař
14d7c638a8 Merge branch 'QA_4_5' 2016-01-25 12:19:34 +01:00
Michal Čihař
316792bf4a Move databse check to correct location
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-25 12:18:37 +01:00
Michal Čihař
f0e4b242ea Merge branch 'QA_4_5' 2016-01-19 11:40:06 +01:00
Michal Čihař
a5affed07a Validate database before starting designer
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-19 11:38:50 +01:00
Michal Čihař
d03d4eaa19 Remove iecanvas script
It just provides support for older MSIE versions.

Issue #11833

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-08 12:10:22 +01: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
6f4676cdfc Merge remote-tracking branch 'origin/master' into useNamespaces_master 2015-10-04 18:04:49 +02:00
Marc Delisle
fd7c8522ea Clarify method name
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-10-03 10:14:29 -04: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
Madhura Jayaratne
6f84ecf3a4 Simplify
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-13 08:27:39 +05:30
Madhura Jayaratne
af95a39747 Refactor - Extract method
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-13 07:52:40 +05:30
Madhura Jayaratne
224b2245a7 FIx bug - Use control link for db operation related to configuration storage
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-13 07:33:48 +05:30
Hugues Peccatte
08919d9252 Make PHPCS happy.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-07-25 09:36:48 +02:00
Madhura Jayaratne
b0ae16fcd6 These are also internal directives. Remove underscore to match with other similar ones
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-07-09 17:15:10 +05:30
Deven Bansod
2e6abf3cb2 Modified structure for pma__designer_settings table
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-06-29 13:33:42 +05:30
Deven Bansod
3d1157c944 Changed the mysql reserved words conflicting column names
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-06-25 00:14:06 +05:30
Madhura Jayaratne
ee7564af01 Load in visual query builder the default pdf page if such exists
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-06-24 18:01:55 +05:30
Deven Bansod
54a480e8eb Designer settings saved in a new table in configuration storage
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-06-21 15:44:39 +05:30
Marc Delisle
6d6ca8ebed Fix coding style
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-05-15 09:02:00 -04:00
Madhura Jayaratne
4ab6f29302 These images does not seem to be used
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-04-30 18:45:59 +05:30
Madhura Jayaratne
1c52bc2a81 rfe #1650 Support a default page in designer
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-04-08 10:15:27 +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
Marc Delisle
eca87c132f Clarify function name
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-02-10 02:50:37 -05:00