diff --git a/doc/config.rst b/doc/config.rst index 9f1b5691f1..05c77a470f 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -1823,11 +1823,6 @@ Main panel You can additionally hide more information by using :config:option:`$cfg['Servers'][$i]['verbose']`. -.. config:option:: $cfg['ShowPhpInfo'] - - :type: boolean - :default: false - .. config:option:: $cfg['ShowChgPassword'] :type: boolean @@ -1838,18 +1833,11 @@ Main panel :type: boolean :default: true - Defines whether to display the :guilabel:`PHP information` and + Defines whether to display the :guilabel:`Change password` links and form for creating database or not at the starting main (right) frame. This setting does not check MySQL commands entered directly. - Please note that to block the usage of ``phpinfo()`` in scripts, you have to - put this in your :file:`php.ini`: - - .. code-block:: ini - - disable_functions = phpinfo() - Also note that enabling the :guilabel:`Change password` link has no effect with config authentication mode: because of the hard coded password value in the configuration file, end users can't be allowed to change their diff --git a/index.php b/index.php index e4bbba1eeb..2e6bb3b6dc 100644 --- a/index.php +++ b/index.php @@ -317,7 +317,7 @@ if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) { . ' '; } -if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { +if ($GLOBALS['cfg']['ShowServerInfo']) { echo '
'; echo '

' , __('Web server') , '

'; echo ''; echo '
'; } diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 81933228bf..9ec0fc32cd 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -309,7 +309,6 @@ $goto_whitelist = array( 'index.php', 'pdf_pages.php', 'pdf_schema.php', - //'phpinfo.php', 'server_binlog.php', 'server_collations.php', 'server_databases.php', diff --git a/libraries/config.default.php b/libraries/config.default.php index 0288fae742..272d082a9d 100644 --- a/libraries/config.default.php +++ b/libraries/config.default.php @@ -1038,13 +1038,6 @@ $cfg['NavigationTreeShowEvents'] = true; */ $cfg['ShowStats'] = true; -/** - * show PHP info link - * - * @global boolean $cfg['ShowPhpInfo'] - */ -$cfg['ShowPhpInfo'] = false; - /** * show MySQL server and web server information * diff --git a/libraries/config/messages.inc.php b/libraries/config/messages.inc.php index 57ec672898..eae35f150d 100644 --- a/libraries/config/messages.inc.php +++ b/libraries/config/messages.inc.php @@ -865,11 +865,6 @@ $strConfigShowFunctionFields_desc = __( $strConfigShowFunctionFields_name = __('Show function fields'); $strConfigShowHint_desc = __('Whether to show hint or not.'); $strConfigShowHint_name = __('Show hint'); -$strConfigShowPhpInfo_desc = __( - 'Shows link to [a@https://php.net/manual/function.phpinfo.php]phpinfo()[/a] ' . - 'output.' -); -$strConfigShowPhpInfo_name = __('Show phpinfo() link'); $strConfigShowServerInfo_name = __('Show detailed MySQL server information'); $strConfigShowSQL_desc = __( 'Defines whether SQL queries generated by phpMyAdmin should be displayed.' diff --git a/libraries/config/setup.forms.php b/libraries/config/setup.forms.php index cfffe9d5d1..c8743d4e1c 100644 --- a/libraries/config/setup.forms.php +++ b/libraries/config/setup.forms.php @@ -203,7 +203,6 @@ $forms['Main_panel']['Startup'] = array( 'ShowCreateDb', 'ShowStats', 'ShowServerInfo', - 'ShowPhpInfo', 'ShowChgPassword'); $forms['Main_panel']['DbStructure'] = array( 'ShowDbStructureComment', diff --git a/phpinfo.php b/phpinfo.php deleted file mode 100644 index 6ac84c7ea4..0000000000 --- a/phpinfo.php +++ /dev/null @@ -1,22 +0,0 @@ -disable(); -$response->getHeader()->sendHttpHeaders(); - -/** - * Displays PHP information - */ -if ($GLOBALS['cfg']['ShowPhpInfo']) { - phpinfo(); -}