Commit Graph

98 Commits

Author SHA1 Message Date
Piyush Vijay
a99acfef71 Modularize server related remaining files like replication, plugins, queries, processes.
Sever monitor is also modularised and is not working but jQplot is not imported as it is giving error with webpack.
Another issue with these files is that table sorter is also not woking
working properly as it is not available on npm as plugin.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 23:08:28 +05:30
Piyush Vijay
b712019735 AJAX handler modified and initial loading of the first page handled
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-26 02:31:25 +05:30
Maurício Meneghini Fauth
5edbdf2063 Remove Template::get() method
Uses Template::render() instead of Template::get().

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-06-18 19:46:36 -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
58c755785c Replace static methods with instance methods
Replaces PhpMyAdmin\ReplicationGui static methods with instance methods.

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-03-27 21:35:30 -03:00
Maurício Meneghini Fauth
79f6f88bff Use template for server sub page header
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-11-02 22:26:47 -02:00
Michal Čihař
98964e2f59 Remove is_superuser superglobal
Issue #11731

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-10 12:28:00 +02:00
Maurício Meneghini Fauth
dcedb418dc Refactor replication_gui functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-13 16:00:40 -03:00
Maurício Meneghini Fauth
f7051b2e5c Refactor server_common functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-08 00:28:06 -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
3f632ef7bc Move js/zxcvbn.js to js/vendor/zxcvbn.js
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-14 02:01:11 -03:00
Dan Ungureanu
41683f3553 zxcvbn dependency was missing.
Fixes #13256.

Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2017-05-08 21:37:36 +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
3166e8c0f2 Use values from request parameter url_param only if it is an array
Fix #12350

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-10-11 12:14:10 +05:30
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
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
Hugues Peccatte
7a60853443 Replace $replication_info by a global variable.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-11-09 19:14:26 +01:00
Hugues Peccatte
49836e6e6f Use $replication_info everywhere, instead of $server_* variables.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-11-09 16:30:07 +01:00
xmujay
db39eeb423 refactor server_variables
1. move functions to separated files
2. render HTML at once
3. refactor function name to PMA_getHtmlForSubPageHeader
2013-08-02 20:05:27 +08:00
Michal Čihař
9310e76a0e Fix indentation 2013-07-30 13:23:51 +02:00
xmujay
239067f35f refactor server_replication
1. refactor session  "Handling control requests"
2. fix code style problems
2013-06-22 15:28:50 +08:00
xmujay
252a392592 1. change the function name
2. fix Div function
3. using $_REQUEST when the variable is in the request list
2013-06-22 01:32:17 +08:00
xmujay
cad22421ae 1. fix the undefine error
2. add function to render same html tags
2013-06-21 00:20:50 +08:00
xmujay
1044df611a refactor server_replication.php
1. render HTML at once
2. split long functions
2013-06-20 01:10:24 +08:00
Madhura Jayaratne
ce85ebd950 Merge branch 'master' into OOP_DBI 2013-05-24 19:06:45 +05:30
Madhura Jayaratne
650a8cdda3 Convert database interface to a class 2013-05-24 17:30:59 +05:30
Michal Čihař
ef6cf5a227 End sentence with stop 2013-05-24 10:58:19 +02:00
Madhura Jayaratne
d77f20961a Rename PMA_replication_slave_bin_log_master -> PMA_Replication_Slave_binLogMaster 2013-05-23 23:27:52 +05:30
Madhura Jayaratne
63f6ef3d96 Rename PMA_replication_connect_to_master -> PMA_Replication_connectToMaster 2013-05-23 23:25:25 +05:30
Madhura Jayaratne
93deda5488 Rename PMA_replication_slave_change_master -> PMA_Replication_Slave_changeMaster 2013-05-23 23:24:07 +05:30
Madhura Jayaratne
926fee829b Rename PMA_replication_slave_control -> PMA_Replication_Slave_control 2013-05-23 23:22:52 +05:30
Marc Delisle
d44367e4db Fix merge conflicts 2013-05-15 13:07:22 -04:00
J.M
529903e0dd Fix bug #3907 undefined variables, function parameter problems
Thanks Rasmus Lerdorf for analyzing!
2013-05-13 11:27:56 +02:00
Kasun Chathuranga
d933575811 PMA_DBI_try_query --> PMA_DBI_tryQuery 2013-04-30 23:05:18 +05:30
Marc Delisle
c4ff4bee20 Remove the Synchronize feature 2012-11-07 13:09:47 -05:00
Rouslan Placella
a31140d159 Partial fix for bug #3583312 - Broken replication forms/links 2012-11-04 23:19:56 +00:00
Chanaka Indrajith
e6894be57f Renamed ->method() with PMA_Util::method() 2012-09-16 14:35:45 +05:30
Chanaka Indrajith
0829709064 Remove variable 2012-09-16 14:31:22 +05:30
Madhura Jayaratne
8ce541068c Various coding style changes 2012-08-31 14:37:46 +05:30
Chanaka Indrajith
766466135e Implement class behavior of common.lib.php file 2012-06-22 23:38:33 +05:30
Rouslan Placella
eb98110541 Dropped footer.inc.php 2012-06-11 14:06:04 +01:00
Rouslan Placella
a054562100 PMA_Footer and PMA_Header no longer need to be singletons 2012-06-11 14:06:03 +01:00
Rouslan Placella
4a740376c8 Dropped header.inc.php in favor of the PMA_Header class 2012-06-11 14:06:02 +01:00
Rouslan Placella
7b85c709a8 Dropped server_links.inc.php 2012-05-05 16:44:27 +01:00
Jo Michael
852ef287f8 Corrected <div> nesting inside <li> in server replication forms for HTML5 validity 2012-03-31 00:20:23 +02:00
Jo Michael
b2fd866d87 Leading ./ paths for includes can be omitted, part 2 2012-03-16 23:11:57 +01:00
Marc Delisle
ac27219916 Improve globalization code 2012-03-07 13:12:46 -05:00
Marc Delisle
ac37be0216 For replication, no longer depend on grab_globals.lib.php for $_GET variables 2012-03-03 06:17:34 -05:00
Michal Čihař
e56949f160 Use package name PhpMyAdmin
Needed to match phpdoc rules as package name must begin with upper case.
2011-10-25 10:13:17 +02:00