2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * phpinfo() wrapper to allow displaying only when configured to do so.
8 declare(strict_types
=1);
10 if (! defined('ROOT_PATH')) {
11 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
15 * Gets core libraries and defines some variables
17 require_once ROOT_PATH
. 'libraries/common.inc.php';
18 $response = PhpMyAdmin\Response
::getInstance();
20 $response->getHeader()->sendHttpHeaders();
23 * Displays PHP information
25 if ($GLOBALS['cfg']['ShowPhpInfo']) {
26 phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES
);