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
Maurício Meneghini Fauth
23c3579804
Format array declarations
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2019-01-07 14:31:39 -02:00
Maurício Meneghini Fauth
4cee0cbc12
Adds space after not (!) and type cast
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2019-01-05 21:56:34 -02:00
Maurício Meneghini Fauth
38e5b12c1c
Define an absolute path to use for require statements
...
Fixes #6167
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-12-22 14:37:31 -02:00
William Desportes
fe587e05b4
Merge branch 'QA_4_8'
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2018-12-21 17:10:11 +01:00
William Desportes
99cee9e389
Fix #14635 - Git revision error
...
See: #14762
Signed-off-by: William Desportes <williamdes@wdes.fr>
2018-12-21 15:02:13 +01:00
Maurício Meneghini Fauth
76d8bfdafa
Merge branch 'QA_4_8'
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-12-12 21:04:19 -02:00
Maurício Meneghini Fauth
593b2571cd
Retrieve parameters from $_POST in chk_rel
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-11-10 20:48:59 -02:00
Maurício Meneghini Fauth
d4b4124a5e
Remove $GLOBALS['dbi'] from Relation class
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-08-30 19:05:09 -03:00
William Desportes
a2cdf7f217
Fix for #14295
...
Fixes : #14295
Signed-off-by: William Desportes <williamdes@wdes.fr>
(cherry picked from commit a87bf74eed )
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-08-28 05:06:15 -03:00
Isaac Bennetch
35b9ecba1d
Slightly improve phrasing and grammar
...
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
2018-08-05 21:49:46 -04:00
Lakshay arora
c87579ec62
Show warning for default control user/pass usage
...
Signed-Off-By: Lakshay arora <arora.lakshya123@gmail.com>
2018-07-01 03:42:28 +05:30
Isaac Bennetch
d1360f46ce
Merge branch 'QA_4_8'
...
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
2018-06-21 13:54:08 -04:00
Michal Čihař
7662d02939
Avoid looking for ? when checking for file to be included
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2018-06-21 13:31:00 +02:00
William Desportes
a87bf74eed
Fix for #14295
...
Fixes : #14295
Signed-off-by: William Desportes <williamdes@wdes.fr>
2018-06-03 14:14:08 +02: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
b9c0463d96
Use short array syntax instead of long array syntax
...
Replaces array() with [].
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-30 01:42:21 -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
Saksham Gupta
d701f6f0af
Remove font size feature ( #13925 )
...
Fix #13919
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
2018-04-14 07:21:13 -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
38767030ef
Remove @ operator from ini_get()
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-03-01 22:36:35 -03:00
Maurício Meneghini Fauth
cf60373e84
Remove @ operator from extension_loaded()
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-03-01 22:36:35 -03:00
Juvenv
561c6bf82c
Remove inline styles from elements ( #13883 )
...
* Remove inline styles from elements in index.php #12262
* Remove inline style from element in CentralColumns #12262
Related to #12262
Signed-off-by: Juvenildo Vaz <juvenildo1511@yahoo.com.br>
2017-12-23 15:24:01 -02:00
Michal Čihař
3b6a994dcd
Move collation connection setting to user preferences
...
It is now handled same way as other user settings.
Issue #11688
Issue #13466
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-29 14:16:31 +01:00
Michal Čihař
263722fef8
Move theme selection to index.php
...
- It really makes no sense to do this on every request.
- We want to redirect after changing to make sure page is loaded with new theme.
- Use value only from POST request (it used to be set by GET in past as well).
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 15:20:55 +01:00
Michal Čihař
f9c73c7b10
Remove special casing for font size
...
It is now stored in configuration in same way as any other setting.
Issue #13466
Issue #11688
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 15:16:01 +01:00
Michal Čihař
3cfe9605d5
Use shared code for checking page validity
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 09:41:23 +01:00
Michal Čihař
bed6fb4ebd
Avois passing extension to Util::getImage
...
We do not use it anyway for quite some time and this way it's less
processing to generate the img tag.
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-27 14:24:42 +01:00
Maurício Meneghini Fauth
cc2c4fc36d
Replace globals with DI in Charsets class
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-11-09 11:31:42 -02:00
Maurício Meneghini Fauth
653f685b9a
Merge pull request #13677 from mauriciofauth/functions
...
Refactor some function calls to static method calls
2017-09-13 08:09:14 -03:00
Michal Čihař
f76f469289
Avoid using print as method name
...
This seems to confuse some parsers as print is keyword.
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-13 09:05:10 +02:00
Maurício Meneghini Fauth
99642bf6e2
Refactor select_server functions to static methods
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-12 23:12:28 -03:00
Maurício Meneghini Fauth
df6ef79e93
Move PMA_printListItem to PhpMyAdmin\Core class
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-12 17:51:58 -03:00
Maurício Meneghini Fauth
a2b08bae7b
Refactor check_user_privileges to static methods
...
Refactor check_user_privileges.lib.php functions to static methods and move logic to check_user_privileges.inc.php.
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-11 22:09:05 -03:00
Maurício Meneghini Fauth
81ed2c6c03
Refactor git revision function to static function
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-06 22:01:20 -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
Michal Čihař
8270a1c1e1
Indicate SSL status on main page
...
- indicate status on main page
- indicate possible configuration issues
- show in red if remote connection is not using SSL
- add overview documentation for server SSL setup
Fixes #12354
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-07-21 15:04:59 +02:00
Michal Čihař
0effb3012c
Use new API to report version and comment
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-07-17 14:55:18 +02: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
8f943ae1c0
Move classes to PhpMyAdmin namespace
...
- Move Sanitize to PhpMyAdmin namespace
- Move SavedSearches to PhpMyAdmin namespace
- Move Scripts to PhpMyAdmin namespace
- Move ServerStatusData to PhpMyAdmin namespace
- Move Sql to PhpMyAdmin namespace
- Move StorageEngine to PhpMyAdmin namespace
- Move SubPartition to PhpMyAdmin namespace
- Move SysInfoLinux to PhpMyAdmin namespace
- Move SysInfoSunOS to PhpMyAdmin namespace
- Move SysInfoWINNT to PhpMyAdmin namespace
- Move SysInfo to PhpMyAdmin namespace
- Move SystemDatabase to PhpMyAdmin namespace
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-07-07 01:46:08 -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
13c0f7bc3c
Move classes to PhpMyAdmin namespace
...
- Move Advisor to PhpMyAdmin namespace
- Move Bookmark to PhpMyAdmin namespace
- Move Charsets to PhpMyAdmin namespace
- Move Config class to PhpMyAdmin namespace
- Move Console class to PhpMyAdmin namespace
- Move Core to PhpMyAdmin namespace
- Move DatabaseInterface to PhpMyAdmin namespace
- Move DbList to PhpMyAdmin namespace
- Move DbQbe to PhpMyAdmin namespace
- Move DbSearch to PhpMyAdmin namespace
- Move DisplayResults to PhpMyAdmin namespace
- Move Encoding to PhpMyAdmin namespace
- Move Error to PhpMyAdmin namespace
- Move ErrorHandler to PhpMyAdmin namespace
- Move File to PhpMyAdmin namespace
- Move Font to PhpMyAdmin namespace
- Move Footer to PhpMyAdmin namespace
- Move Header to PhpMyAdmin namespace
- Move Index to PhpMyAdmin namespace
- Move IndexColumn to PhpMyAdmin namespace
- Move LanguageManager to PhpMyAdmin namespace
- Move Language to PhpMyAdmin namespace
- Move Linter to PhpMyAdmin namespace
- Move ListAbstract to PhpMyAdmin namespace
- Move ListDatabase to PhpMyAdmin namespace
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-28 21:17:18 -03:00
Maurício Meneghini Fauth
e330402b5b
Refactor the core functions into static methods
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-03 00:52:22 -03:00
Michal Čihař
69da96b3e1
Show warning if twig cache can not be used
...
Issue #13225
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-05 11:08:36 +02:00
Michal Čihař
8d6b1dce57
Improved handling of logout with disabled LoginCookieDeleteAll
...
- avoid removing session for cookie auth if LoginCookieDeleteAll is
disabled
- redirect user to other server rather than to login page
- show message about partial logout
- adjust tests
- this is based on #13221
Fixes #12301
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-04-28 16:02:11 +02:00
Michal Čihař
8cc6de4de3
Remove ServerLibraryDifference_DisableWarning setting
...
This is getting more and more problematic these days as most of Linux
distributions ship MariaDB libraries, while many people run MySQL
servers. As MariaDB claims the protocol compatibility should stay, we
should not warn in this case.
Of course there is option to add this exception to the warning (so far
the exception is there only other way - when using MySQL libraries to
connect to MariaDB server), but we would be ignoring most cases already
and I think complete removal is better than adding exceptions.
Overall I don't think this warning is doing any good these days.
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-20 09:19:22 +01:00
Michal Čihař
924aabf652
Do not show language selector without choices
...
Move the check from template to the code, so that the selection is
completely hidden when there is nothing to select.
Fixes #12988
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-13 11:22:43 +01:00
Michal Čihař
5c3f74d875
Merge branch 'QA_4_6'
2017-01-17 17:22:53 +01:00
Michal Čihař
93e354c2e3
Revert "Remove option to show phpinfo() ($cfg['ShowPhpInfo'])"
...
This reverts commit e67e69229a .
2017-01-07 14:22:14 +01: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ř
b56f101039
Remove is_ajax_request global
...
We already have the same information on Response object, so let's use it
from there.
Issue #11731
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-07 17:54:34 +01:00
Michal Čihař
daae30499f
Merge branch 'master' into master-security
2016-11-08 15:59:39 +01:00
Deven Bansod
e2dac31bdb
Refactor the language selector display into a template
...
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-10-31 09:02:59 +05:30
Michal Čihař
2ed64c3c6a
Merge branch 'master' into master-security
2016-10-24 13:55:39 +02:00
Michal Čihař
47078395c2
Merge branch 'QA_4_6' into QA_4_6-security
2016-10-24 13:55:29 +02:00
Michal Čihař
75a5fde46d
Use secure.php.net for PHP documentation links
...
This avoids unnecessary redirect on the way (I still think this website
setup is weird, but that's all I can do about it).
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-10-18 11:13:24 +02:00
Michal Čihař
4311ea09d9
Merge branch 'QA_4_6'
2016-10-17 17:03:12 +02:00
Michal Čihař
4055eb9162
Refuse to work with mbstring.func_overload enabled
...
In several places our code assumes that strlen does return length in
bytes and not in chars. This can be different with
mbstring.func_overload and will lead to several hard to debug breakages.
Therefore it's safer to simply deny using phpMyAdmin with this setting.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-10-04 13:06:01 +02:00
Michal Čihař
5ee95b3615
Merge branch 'QA_4_6-security' into master-security
2016-09-02 15:04:55 +02:00
Michal Čihař
dac36c3cd8
Stricter URL validation
...
- do not use empty() as empty('0') is true
- do not lowercase the strings, use them as they are
- lowercase all domains in our codebase
- do not allow to specify port
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-09-02 15:00:43 +02:00
Michal Čihař
8d46edc4b6
Merge branch 'QA_4_6'
2016-08-24 12:03:37 +02:00
Michal Čihař
6879923acc
Do not show warning about short blowfish_secret if none is set
...
With empty blowfish_secret user would always get both warnings...
Fixes #12485
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-08-24 12:03:22 +02:00
Michal Čihař
46b329c32b
Merge branch 'QA_4_6'
2016-08-18 17:37:34 +02:00
Michal Čihař
6faa1fe46a
Add rel="noopener noreferrer" to all external target="_blank" links
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-08-18 17:35:20 +02:00
Michal Čihař
52f23338a8
Merge branch 'master-security'
2016-08-17 08:50:51 +02:00
Isaac Bennetch
0f6b76b578
Merge remote-tracking branch 'security/QA_4_6-security' into QA_4_6
2016-08-16 16:34:37 -04:00
Michal Čihař
88b817a042
Merge branch 'QA_4_6'
2016-08-03 10:27:54 +02:00
Michal Čihař
91ff2a97e2
Open demo information in new tab
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-08-03 10:27:49 +02:00
Michal Čihař
12873604cb
Merge branch 'master' into master-security
2016-08-02 09:16:12 +02:00
Michal Čihař
e7d4ef2fbc
Merge branch 'QA_4_6' into QA_4_6-security
2016-08-02 09:16:03 +02:00
Michal Čihař
21a9bbea9f
Merge branch 'QA_4_6'
2016-08-02 08:57:17 +02:00
Pavel Rochnyack
37c2886845
Improved indents, alignment and rtl in Original theme
...
* Fixed list items aligment in rtl view
* Fixed notices icon alignment in rtl and ltr views
* Fixed Footer.php getErrorMessages() to avoid <div id="pma_errors"><div id="pma_errors">....</div></div> nested blocks.
* Removed indentation by
Signed-off-by: Pavel Rochnyack <pavel2000@ngs.ru>
2016-08-01 03:08:48 +01:00
Michal Čihař
f5015c2ea3
Merge branch 'QA_4_6-security' into master-security
2016-07-26 16:31:21 +02:00
Michal Čihař
e67e69229a
Remove option to show phpinfo() ($cfg['ShowPhpInfo'])
...
This is really more a PHP debugging feature than anything related to
phpMyAdmin. If user wants to debug, it's as simple a creating file with
one line of php code.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-23 11:31:46 +02:00
Michal Čihař
2adf1ca83e
Merge branch 'QA_4_6-security' into master-security
2016-07-22 11:35:14 +02:00
Michal Čihař
f07fd90ee9
Document recommended length of 32 for blowfish_secret
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-22 10:14:02 +02:00
Michal Čihař
9348d0cb16
Separate adding HTML markup to message from others
...
We really want this to be explicit for easier review and hiding this in
second parameter of addParam doesn't make it.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-16 13:41:35 +02:00
Isaac Bennetch
e6db8e18ee
Fix some CodeSniffer warnings and errors
...
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
2016-06-12 23:12:23 -04:00
Michal Čihař
95f2d15b4f
Merge branch 'QA_4_6'
2016-05-17 10:12:04 +02:00
Michal Čihař
3771852471
Use https when linking to php.net
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-17 10:10:13 +02:00
Michal Čihař
ca5eb903b0
Make ThemeManager a singleton instead of storing it in the session
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-11 15:34:25 +02:00
Michal Čihař
5231649343
Merge commit 'cda4290749f10ed686bfb466b415e5e3a1c04fea'
2016-05-09 20:09:36 +02:00
Michal Čihař
b2f77691e9
Use https links where applicable
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-29 15:41:33 +02:00
Michal Čihař
bdb20d1499
Remove link to wiki
...
It's outdated and will be soon completely disabled.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-29 15:37:32 +02:00
Michal Čihař
59e56bd63a
Pass link to demo server through url.php
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-29 15:36:54 +02:00
Michal Čihař
b311780d76
Separate methods for charset and collation dropdowns
...
They do not share much code in the end and this way the code is more
readable.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 13:04:41 +02:00
Michal Čihař
3e2029e750
Move MySQL charsets handling to the Charsets class
...
Issue #11731
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 12:55:42 +02:00
Michal Čihař
cfc2f1cb05
Move charsets obtaining to the Charsets class
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 10:49:09 +02:00
Michal Čihař
cd4008b3d7
Move MySQL charset maps to separate class
...
This allows us to load it only when needed
Issue #11731
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 10:33:40 +02:00
Durgesh
6650f7b07d
Refactor text sanitization and javascript escaping, Issue #11989 , #11988
...
Signed-off-by: Durgesh <007durgesh219@gmail.com>
2016-02-22 14:45:19 +05:30
Durgesh
0b64827930
Refactored url parmeters generating, Issue #11990
...
Signed-off-by: Durgesh <007durgesh219@gmail.com>
2016-02-22 14:36:41 +05:30
Michal Čihař
5042b65398
Merge branch 'QA_4_5' into QA_4_6
2016-02-12 10:45:43 +01:00
Michal Čihař
4534a90b80
Silent warnings when checking for file existance
...
Another occurences of file_exists which can be limited by open_basedir.
Issue #11940
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-12 10:38:47 +01:00
Michal Čihař
2a9fb73f92
Remove PmaAbsoluteUri from redirects
...
This is no longer needed as per RFC 7231.
Issue #11412
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 14:32:14 +01:00
Michal Čihař
b1ac8170fd
Show warning in version check and error reporting are not available
...
When curl is missing and allow_url_fopen is disabled, we can not access
remote files.
Fixes #11874
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-22 09:38:18 +01:00
Michal Čihař
28055b83e7
We no longer do cross site javascript request
...
Remove condition to disable version check on IE, it no loger makes sense
as we do the check server side.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-22 09:33:10 +01:00
Michal Čihař
47798a60e4
Show more used PHP extensions
...
This helps user to see what features are available.
Issue #11874
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-22 09:31:44 +01:00
Michal Čihař
908c44c027
Remove no longer used variables
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-12 14:51:08 +01:00
Michal Čihař
55b317c699
Remove /*overload*/ prefix from mb_* calls
...
I believe this was temporary flagging to see which code is migrated and
can be safely removed now.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-04 16:35:28 +01:00
Michal Čihař
98d88ef134
Remove unused pmaString variable
...
It was used in past when we didn't rely on mbstring.
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-12-21 11:35:36 +01:00
Marc Delisle
06d22e636e
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-07 09:41:46 -05:00
Marc Delisle
357b1b4757
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-04 09:05:42 -05:00
Marc Delisle
9ee3931c09
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-03 10:43:10 -05:00
Michal Čihař
c7c2ff4ab6
issue #11708 Remove no password warning
...
The empty password has to be enabled by AllowNoPassword, so user should
know what he is doing. Showing this warning every time doesn't bring any
additional security.
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-12-01 08:51:11 +01:00
Madhura Jayaratne
3839d2502f
Link license.php
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-11-06 15:54:10 +11:00
Hugues Peccatte
ffc4422db7
Make PHPCS happy.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-10-19 20:33:21 +02:00
Hugues Peccatte
37bf6f2093
Update nodes load.
...
Fix template call.
Remove useless 'use'.
Fix node load.
Fix merge.
Attempt to fix transformation unit test.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-20 00:21:28 +02:00
Hugues Peccatte
a5d35d41b6
Revert PMA_String rename.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-14 22:39:03 +02:00
Hugues Peccatte
42c0ebac85
Merge branch 'master' into useNamespaces_master
2015-09-09 22:05:00 +02:00
Madhura Jayaratne
93bfdbe371
Remove more references to Drizzle
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-09-10 01:06:58 +10:00
Madhura Jayaratne
8dcb93c631
More server level Drizzle functions removed
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-09-10 01:02:35 +10:00
Hugues Peccatte
7f8f34e89d
Remove classes require_once.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:22 +02:00
Hugues Peccatte
0761fb1801
Rename classes files.
...
Rename classes.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:21 +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
Madhura Jayaratne
4c968434e5
Use sentence case for these as well
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-25 21:41:27 +10:00
Hugues Peccatte
6a93a350cc
Templating ul tag.
...
Templating li tag.
Use li template in getHtmlTab.
Use ul/li templates in libraries/user_preferences.inc.php.
Add/update PHPDoc of templates.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-09 14:24:44 +02:00
Hugues Peccatte
08919d9252
Make PHPCS happy.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-07-25 09:36:48 +02:00
Hugues Peccatte
bf61709259
Make PHPCS happy.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-07-23 14:38:07 +02:00
Michal Čihař
16da18e647
Merge remote-tracking branch 'origin/QA_4_4'
2015-07-08 15:26:06 +02:00
Michal Čihař
66dd924517
Point users directly to translator instructions
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-07-08 15:25:46 +02:00
Michal Čihař
b39cb1cb81
Merge remote-tracking branch 'origin/QA_4_4'
2015-07-02 13:40:23 +02:00
Michal Čihař
a6fd4c2ed4
Cleanup URLs to our website
...
- use https everywhere
- follow redirects on renamed pages
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-07-02 13:39:10 +02:00
Deven Bansod
edad7fcb3c
Replace script names as config options with plain english words
...
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-06-13 04:41:54 +05:30
Marc Delisle
b54a5916c9
Fix loose comparison
...
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-04-28 14:05:50 -04:00