These settings are no longer required as they are guaranteed through other coding standard tools. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
23 lines
435 B
PHP
23 lines
435 B
PHP
<?php
|
|
/**
|
|
* phpinfo() wrapper to allow displaying only when configured to do so.
|
|
*
|
|
* @package PhpMyAdmin
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
if (! defined('PHPMYADMIN')) {
|
|
exit;
|
|
}
|
|
|
|
$response = PhpMyAdmin\Response::getInstance();
|
|
$response->disable();
|
|
$response->getHeader()->sendHttpHeaders();
|
|
|
|
/**
|
|
* Displays PHP information
|
|
*/
|
|
if ($GLOBALS['cfg']['ShowPhpInfo']) {
|
|
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
|
|
}
|