-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3249de
commit c652a4b
Showing
2,244 changed files
with
569,828 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# 2 space indentation | ||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# 2 space indentation | ||
[*.conf] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Contributing to phpMyAdmin | ||
|
||
As an open source project, phpMyAdmin welcomes contributions of many forms. | ||
|
||
## Bug reporting | ||
|
||
We appreciate your effort to improve phpMyAdmin by submitting a bug report. Before doing so, please check the following things: | ||
|
||
1. Check whether the bug you face **hasn't been already reported**. Duplicate reports takes us time, that we could be used to fix other bugs or make improvements. | ||
2. Specify the phpMyAdmin, server, PHP, MySQL and browser information that may be helpful to fix the problem, especially exact **version numbers**. | ||
3. If you got some error, please **describe what happened** and add error message. Reports like "I get error when I clicked on some link." are useless. | ||
4. Provide easy steps to reproduce and if possible include your table structure (``SHOW CREATE TABLE `tbl_name```); if your problem implies specific data, attach a small export file for sample rows. | ||
5. **Security problems** should not be reported here. See [our security page](https://www.phpmyadmin.net/security/). | ||
Thanks for your help! | ||
|
||
Please report [bugs on GitHub][1]. | ||
|
||
[1]: https://github.com/phpmyadmin/phpmyadmin/issues/new | ||
|
||
## Patches submission | ||
|
||
Patches are welcome as [pull requests on GitHub][2]. Please include a | ||
Signed-off-by tag. Note that by submitting patches with the Signed-off-by | ||
tag, you are giving permission to license the patch as GPLv2-or-later. See | ||
[the DCO file][3] for details. | ||
|
||
[2]: https://github.com/phpmyadmin/phpmyadmin/pulls | ||
[3]: https://github.com/phpmyadmin/phpmyadmin/blob/master/DCO | ||
|
||
## More information | ||
|
||
You can find more information on our website: | ||
|
||
https://www.phpmyadmin.net/contribute/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
If you would like to make a contribution to the phpMyAdmin Project, please | ||
certify to the following: | ||
*** | ||
phpMyAdmin Developer's Certificate of Origin. Version 1.0 | ||
|
||
By making a contribution to this project, I certify that: | ||
|
||
(a) The contribution was created in whole or in part by me and I have the | ||
right to submit it under the license of "GNU General Public License or | ||
any later version" ("GPLv2-or-later"); or | ||
|
||
(b) The contribution is based upon previous work that, to the best of my | ||
knowledge, is covered under an appropriate open source license and I have | ||
the right under that license to submit that work with modifications, | ||
whether created in whole or in part by me, under GPLv2-or-later; or | ||
|
||
(c) The contribution was provided directly to me by some other person who | ||
certified (a) or (b) and I have not modified it. | ||
|
||
(d) I understand and agree that this project and the contribution are public | ||
and that a record of the contribution (including all metadata and | ||
personal information I submit with it, including my sign-off) is | ||
maintained indefinitely and may be redistributed consistent with | ||
phpMyAdmin's policies and the requirements of the GPLv2-or-later where | ||
they are relevant. | ||
|
||
(e) I am granting this work to this project under the terms of the | ||
GPLv2-or-later. | ||
|
||
https://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
*** | ||
*** | ||
And please confirm your certification to the above by adding the following | ||
line to your patch: | ||
|
||
Signed-off-by: Jane Developer <jane@example.org> | ||
|
||
using your real name (sorry, no pseudonyms or anonymous contributions). | ||
|
||
If you are a developer who is authorized to contribute to phpMyAdmin on | ||
behalf of your employer, then please use your corporate email address in the | ||
Signed-off-by tag. If not, then please use a personal email address. | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
phpMyAdmin - Readme | ||
=================== | ||
|
||
Version 4.6.4 | ||
|
||
A web interface for MySQL and MariaDB. | ||
|
||
https://www.phpmyadmin.net/ | ||
|
||
Summary | ||
------- | ||
|
||
phpMyAdmin is intended to handle the administration of MySQL over the web. | ||
For a summary of features, list of requirements, and installation instructions, | ||
please see the documentation in the ./doc/ folder or at https://docs.phpmyadmin.net/ | ||
|
||
Copyright | ||
--------- | ||
|
||
Copyright © 1998 onwards -- the phpMyAdmin team | ||
|
||
Certain libraries are copyrighted by their respective authors; | ||
see the full copyright list for details. | ||
|
||
For full copyright information, please see ./doc/copyright.rst | ||
|
||
License | ||
------- | ||
|
||
This program is free software; you can redistribute it and/or modify it under | ||
the terms of the GNU General Public License version 2, as published by the | ||
Free Software Foundation. | ||
|
||
This program is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
Licensing of current contributions | ||
---------------------------------- | ||
|
||
Beginning on 2013-12-01, new contributions to this codebase are all licensed | ||
under terms compatible with GPLv2-or-later. phpMyAdmin is currently | ||
transitioning older code to GPLv2-or-later, but work is not yet complete. | ||
|
||
Enjoy! | ||
------ | ||
|
||
The phpMyAdmin team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tue Aug 16 20:58:45 UTC 2016 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
/* vim: set expandtab sw=4 ts=4 sts=4: */ | ||
/** | ||
* display selection for relational field values | ||
* | ||
* @package PhpMyAdmin | ||
*/ | ||
|
||
require_once 'libraries/common.inc.php'; | ||
require_once 'libraries/transformations.lib.php'; | ||
require_once 'libraries/browse_foreigners.lib.php'; | ||
|
||
/** | ||
* Sets globals from $_REQUEST | ||
*/ | ||
$request_params = array( | ||
'data', | ||
'field' | ||
); | ||
|
||
foreach ($request_params as $one_request_param) { | ||
if (isset($_REQUEST[$one_request_param])) { | ||
$GLOBALS[$one_request_param] = $_REQUEST[$one_request_param]; | ||
} | ||
} | ||
|
||
PMA\libraries\Util::checkParameters(array('db', 'table', 'field')); | ||
|
||
$response = PMA\libraries\Response::getInstance(); | ||
$response->getFooter()->setMinimal(); | ||
$header = $response->getHeader(); | ||
$header->disableMenuAndConsole(); | ||
$header->setBodyId('body_browse_foreigners'); | ||
|
||
/** | ||
* Displays the frame | ||
*/ | ||
|
||
$cfgRelation = PMA_getRelationsParam(); | ||
$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : false); | ||
$foreign_limit = PMA_getForeignLimit( | ||
isset($_REQUEST['foreign_showAll']) ? $_REQUEST['foreign_showAll'] : null | ||
); | ||
|
||
$foreignData = PMA_getForeignData( | ||
$foreigners, $_REQUEST['field'], true, | ||
isset($_REQUEST['foreign_filter']) | ||
? $_REQUEST['foreign_filter'] | ||
: '', | ||
isset($foreign_limit) ? $foreign_limit : null | ||
); | ||
|
||
// HTML output | ||
$html = PMA_getHtmlForRelationalFieldSelection( | ||
$db, $table, $_REQUEST['field'], $foreignData, | ||
isset($fieldkey) ? $fieldkey : null, | ||
isset($data) ? $data : null | ||
); | ||
|
||
$response->addHtml($html); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project name="phpMyAdmin" default="build" basedir="."> | ||
<property name="source" value="."/> | ||
<property name="source_comma_sep" value="."/> | ||
<property environment="env"/> | ||
<property name="env.PHPUNIT_XML" value="phpunit.xml.dist"/> | ||
<property name="env.PHPUNIT_XML_NOCOVERAGE" value="phpunit.xml.nocoverage"/> | ||
<property name="env.PHPUNIT_XML_HHVM" value="phpunit.xml.hhvm"/> | ||
<property name="env.PHPUNIT_ARGS" value=""/> | ||
|
||
<target name="clean" description="Clean up and create artifact directories"> | ||
<delete dir="${basedir}/build/api"/> | ||
<delete dir="${basedir}/build/code-browser"/> | ||
<delete dir="${basedir}/build/coverage"/> | ||
<delete dir="${basedir}/build/logs"/> | ||
<delete dir="${basedir}/build/pdepend"/> | ||
|
||
<mkdir dir="${basedir}/build/api"/> | ||
<mkdir dir="${basedir}/build/code-browser"/> | ||
<mkdir dir="${basedir}/build/coverage"/> | ||
<mkdir dir="${basedir}/build/logs"/> | ||
<mkdir dir="${basedir}/build/pdepend"/> | ||
</target> | ||
|
||
<target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml"> | ||
<exec executable="${basedir}/vendor/bin/phpunit" failonerror="true"> | ||
<arg line="--configuration ${env.PHPUNIT_XML} ${env.PHPUNIT_ARGS}"/> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpunit-nocoverage" description="Run unit tests using PHPUnit and generates junit.xml"> | ||
<exec executable="${basedir}/vendor/bin/phpunit" failonerror="true"> | ||
<arg line="--configuration ${env.PHPUNIT_XML_NOCOVERAGE} ${env.PHPUNIT_ARGS}"/> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpunit-hhvm" description="Run unit tests using PHPUnit with HHVM specific config"> | ||
<exec executable="${basedir}/vendor/bin/phpunit" failonerror="true"> | ||
<arg line="--configuration ${env.PHPUNIT_XML_HHVM} ${env.PHPUNIT_ARGS}"/> | ||
</exec> | ||
</target> | ||
|
||
<target name="pdepend" description="Generate jdepend.xml and software metrics charts using PHP_Depend"> | ||
<exec executable="pdepend"> | ||
<arg line="'--jdepend-xml=${basedir}/build/logs/jdepend.xml' | ||
'--jdepend-chart=${basedir}/build/pdepend/dependencies.svg' | ||
'--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg' | ||
${source_comma_sep}" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpmd" description="Generate pmd.xml using PHPMD"> | ||
<exec executable="phpmd"> | ||
<arg line="${source_comma_sep} | ||
xml | ||
codesize,design,naming,unusedcode | ||
--exclude test,build,tcpdf,php-gettext,bfShapeFiles,phpseclib,recaptchalib.php,vendor,sql-parser | ||
--reportfile '${basedir}/build/logs/pmd.xml'" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpcpd" description="Generate pmd-cpd.xml using PHPCPD"> | ||
<exec executable="phpcpd"> | ||
<arg line="--log-pmd '${basedir}/build/logs/pmd-cpd.xml' | ||
--exclude test | ||
--exclude build | ||
--exclude vendor | ||
--exclude libraries/tcpdf | ||
--exclude libraries/php-gettext | ||
--exclude libraries/bfShapeFiles | ||
--exclude libraries/phpseclib | ||
--exclude libraries/plugins/auth/recaptcha/recaptchalib.php | ||
--exclude libraries/sql-parser | ||
${source}" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="phploc" description="Generate phploc.csv"> | ||
<exec executable="phploc"> | ||
<arg line="--log-csv '${basedir}/build/logs/phploc.csv' | ||
--exclude test | ||
--exclude build | ||
--exclude vendor | ||
--exclude libraries/tcpdf | ||
--exclude libraries/php-gettext | ||
--exclude libraries/bfShapeFiles | ||
--exclude libraries/phpseclib | ||
--exclude libraries/plugins/auth/recaptcha/recaptchalib.php | ||
--exclude libraries/sql-parser | ||
${source}" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpcs-config" description="PHPCS configuration tweaking"> | ||
<exec executable="phpcs"> | ||
<arg line="--config-set installed_paths ${basedir}/vendor/phpmyadmin/coding-standard" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding third party libraries" depends="phpcs-config"> | ||
<exec executable="phpcs"> | ||
<arg line=" | ||
--ignore=*/php-gettext/*,*/vendor/*,*/tcpdf/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*,*/bfShapeFiles/*,*/phpseclib/*,*/recaptcha/*,*/sql-parser/* | ||
--report=checkstyle | ||
--extensions=php | ||
--report-file='${basedir}/build/logs/checkstyle.xml' | ||
--standard=PMAStandard | ||
${source}" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpdoc" description="Generate API documentation using PHPDocumentor"> | ||
<exec executable="phpdoc"> | ||
<arg line="-d ${source} -t '${basedir}/build/api'" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpcb" description="Aggregate tool output with PHP_CodeBrowser"> | ||
<exec executable="phpcb"> | ||
<arg line="--log '${basedir}/build/logs' | ||
--source '${source}' | ||
--output '${basedir}/build/code-browser'" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="jshint" description="Javascript checks"> | ||
<apply executable="jshint" output="${basedir}/build/logs/jshint-jslint.xml" parallel="true"> | ||
<arg line="--config ./.jshintrc --reporter=jslint" /> | ||
<fileset dir="${basedir}"> | ||
<include name="js/pmd/*.js" /> | ||
<include name="js/*.js" /> | ||
<include name="setup/*.js" /> | ||
</fileset> | ||
</apply> | ||
</target> | ||
|
||
<target name="jshint-checkstyle" description="Javascript checks"> | ||
<apply executable="jshint" output="${basedir}/build/logs/jshint-checkstyle.xml" parallel="true"> | ||
<arg line="--config ./.jshintrc --reporter=checkstyle" /> | ||
<fileset dir="${basedir}"> | ||
<include name="js/pmd/*.js" /> | ||
<include name="js/*.js" /> | ||
<include name="setup/*.js" /> | ||
</fileset> | ||
</apply> | ||
</target> | ||
|
||
<target name="locales" description="Generate locales"> | ||
<exec executable="./scripts/generate-mo" failonerror="true"> | ||
<arg line="--quiet" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="lint" description="Perform syntax check of sourcecode files"> | ||
<apply executable="php" failonerror="true"> | ||
<arg value="-l" /> | ||
|
||
<fileset dir="${basedir}"> | ||
<include name="libraries/**/*.php" /> | ||
<include name="templates/**/*.phtml" /> | ||
<include name="setup/**/*.php" /> | ||
<include name="test/**/*.php" /> | ||
<include name="*.php" /> | ||
<modified /> | ||
</fileset> | ||
</apply> | ||
</target> | ||
|
||
<target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb,lint,jshint,locales"/> | ||
</project> |
Oops, something went wrong.