Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

Commit 5813076

Browse files
committed
New upstream version 4.7.9
1 parent 7a256c8 commit 5813076

File tree

2,077 files changed

+1577930
-62930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,077 files changed

+1577930
-62930
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ Please report [bugs on GitHub][1].
2020
## Patches submission
2121

2222
Patches are welcome as [pull requests on GitHub][2]. Please include a
23-
Signed-off-by tag. Note that by submitting patches with the Signed-off-by
24-
tag, you are giving permission to license the patch as GPLv2-or-later. See
25-
[the DCO file][3] for details.
23+
Signed-off-by tag in the commit message (you can do this by passing `--signoff`
24+
parameter to Git). Note that by submitting patches with the Signed-off-by tag,
25+
you are giving permission to license the patch as GPLv2-or-later. See [the DCO
26+
file][3] for details.
2627

2728
[2]: https://github.com/phpmyadmin/phpmyadmin/pulls
2829
[3]: https://github.com/phpmyadmin/phpmyadmin/blob/master/DCO

ChangeLog

Lines changed: 231 additions & 406 deletions
Large diffs are not rendered by default.

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
phpMyAdmin - Readme
22
===================
33

4-
Version 4.6.6
4+
Version 4.7.9
55

66
A web interface for MySQL and MariaDB.
77

RELEASE-DATE-4.6.6

Lines changed: 0 additions & 1 deletion
This file was deleted.

RELEASE-DATE-4.7.9

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mon Mar 5 15:36:00 UTC 2018

ajax.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/* vim: set expandtab sw=4 ts=4 sts=4: */
3+
/**
4+
* Generic AJAX endpoint for getting information about database
5+
*
6+
* @package PhpMyAdmin
7+
*/
8+
9+
use PMA\libraries\Response;
10+
use PMA\libraries\Util;
11+
require_once 'libraries/common.inc.php';
12+
13+
$response = Response::getInstance();
14+
15+
if (empty($_POST['type'])) {
16+
PMA_fatalError(__('Bad type!'));
17+
}
18+
19+
switch ($_POST['type']) {
20+
case 'list-databases':
21+
$response->addJSON('databases', $GLOBALS['dblist']->databases);
22+
break;
23+
case 'list-tables':
24+
Util::checkParameters(array('db'));
25+
$response->addJSON('tables', $GLOBALS['dbi']->getTables($_REQUEST['db']));
26+
break;
27+
case 'list-columns':
28+
Util::checkParameters(array('db', 'table'));
29+
$response->addJSON('columns', $GLOBALS['dbi']->getColumnNames($_REQUEST['db'], $_REQUEST['table']));
30+
break;
31+
32+
default:
33+
PMA_fatalError(__('Bad type!'));
34+
}

browse_foreigners.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*
66
* @package PhpMyAdmin
77
*/
8+
use PMA\libraries\Response;
89

910
require_once 'libraries/common.inc.php';
1011
require_once 'libraries/transformations.lib.php';
@@ -26,7 +27,7 @@
2627

2728
PMA\libraries\Util::checkParameters(array('db', 'table', 'field'));
2829

29-
$response = PMA\libraries\Response::getInstance();
30+
$response = Response::getInstance();
3031
$response->getFooter()->setMinimal();
3132
$header = $response->getHeader();
3233
$header->disableMenuAndConsole();
@@ -36,8 +37,7 @@
3637
* Displays the frame
3738
*/
3839

39-
$cfgRelation = PMA_getRelationsParam();
40-
$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : false);
40+
$foreigners = PMA_getForeigners($db, $table);
4141
$foreign_limit = PMA_getForeignLimit(
4242
isset($_REQUEST['foreign_showAll']) ? $_REQUEST['foreign_showAll'] : null
4343
);

build.xml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<arg line="${source_comma_sep}
5656
xml
5757
codesize,design,naming,unusedcode
58-
--exclude test,build,tcpdf,php-gettext,bfShapeFiles,phpseclib,recaptchalib.php,vendor,sql-parser
58+
--exclude test,build,vendor
5959
--reportfile '${basedir}/build/logs/pmd.xml'" />
6060
</exec>
6161
</target>
@@ -66,12 +66,6 @@
6666
--exclude test
6767
--exclude build
6868
--exclude vendor
69-
--exclude libraries/tcpdf
70-
--exclude libraries/php-gettext
71-
--exclude libraries/bfShapeFiles
72-
--exclude libraries/phpseclib
73-
--exclude libraries/plugins/auth/recaptcha/recaptchalib.php
74-
--exclude libraries/sql-parser
7569
${source}" />
7670
</exec>
7771
</target>
@@ -82,12 +76,6 @@
8276
--exclude test
8377
--exclude build
8478
--exclude vendor
85-
--exclude libraries/tcpdf
86-
--exclude libraries/php-gettext
87-
--exclude libraries/bfShapeFiles
88-
--exclude libraries/phpseclib
89-
--exclude libraries/plugins/auth/recaptcha/recaptchalib.php
90-
--exclude libraries/sql-parser
9179
${source}" />
9280
</exec>
9381
</target>
@@ -101,7 +89,7 @@
10189
<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding third party libraries" depends="phpcs-config">
10290
<exec executable="phpcs">
10391
<arg line="
104-
--ignore=*/php-gettext/*,*/vendor/*,*/tcpdf/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*,*/bfShapeFiles/*,*/phpseclib/*,*/recaptcha/*,*/sql-parser/*
92+
--ignore=*/vendor/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*
10593
--report=checkstyle
10694
--extensions=php
10795
--report-file='${basedir}/build/logs/checkstyle.xml'

changelog.php

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
*
66
* @package PhpMyAdmin
77
*/
8+
use PMA\libraries\Response;
89

910
/**
1011
* Gets core libraries and defines some variables
1112
*/
1213
require 'libraries/common.inc.php';
1314

14-
$response = PMA\libraries\Response::getInstance();
15+
$response = Response::getInstance();
1516
$response->disable();
1617
$response->getHeader()->sendHttpHeaders();
1718

@@ -35,10 +36,11 @@
3536
} else {
3637
printf(
3738
__(
38-
'The %s file is not available on this system, please visit '
39-
. 'www.phpmyadmin.net for more information.'
39+
'The %s file is not available on this system, please visit ' .
40+
'%s for more information.'
4041
),
41-
$filename
42+
$filename,
43+
'<a href="https://www.phpmyadmin.net/">phpmyadmin.net</a>'
4244
);
4345
exit;
4446
}
@@ -79,10 +81,6 @@
7981
'/(?:rfe|feature)\s*#?([0-9]{6,})/i'
8082
=> '<a href="url.php?url=https://sourceforge.net/support/tracker.php?aid=\\1">RFE #\\1</a>',
8183

82-
// linking files
83-
'/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i'
84-
=> '\\1<a href="url.php?url=' . $github_url . 'commits/HEAD/\\2">\\2</a>',
85-
8684
// FAQ entries
8785
'/FAQ ([0-9]+)\.([0-9a-z]+)/i'
8886
=> '<a href="url.php?url=' . $faq_url . '#faq\\1-\\2">FAQ \\1.\\2</a>',
@@ -132,6 +130,9 @@
132130
'/( ### )(.*)/'
133131
=> '\\1<b>\\2</b>',
134132

133+
// Links target and rel
134+
'/a href="/' => 'a target="_blank" rel="noopener noreferrer" href="'
135+
135136
);
136137

137138
header('Content-type: text/html; charset=utf-8');
@@ -151,12 +152,5 @@
151152
echo preg_replace(array_keys($replaces), $replaces, $changelog);
152153
echo '</pre>';
153154
?>
154-
<script type="text/javascript">
155-
var links = document.getElementsByTagName("a");
156-
for(var i = 0; i < links.length; i++) {
157-
links[i].target = "_blank";
158-
links[i].rel = "noopener noreferrer";
159-
}
160-
</script>
161155
</body>
162156
</html>

chk_rel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*
66
* @package PhpMyAdmin
77
*/
8+
use PMA\libraries\Response;
89

910
require_once 'libraries/common.inc.php';
1011

@@ -26,7 +27,7 @@
2627
PMA_fixPMATables($cfgRelation['db']);
2728
}
2829

29-
$response = PMA\libraries\Response::getInstance();
30+
$response = Response::getInstance();
3031
$response->addHTML(
3132
PMA_getRelationsParamDiagnostic($cfgRelation)
3233
);

0 commit comments

Comments
 (0)