Translated using Weblate (French)
[phpmyadmin.git] / phpinfo.php
blob3c2c1f71f8b845edf031d2ea9f7893a8a397ccf1
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * phpinfo() wrapper to allow displaying only when configured to do so.
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 /**
11 * Gets core libraries and defines some variables
13 require_once 'libraries/common.inc.php';
14 $response = PhpMyAdmin\Response::getInstance();
15 $response->disable();
16 $response->getHeader()->sendHttpHeaders();
18 /**
19 * Displays PHP information
21 if ($GLOBALS['cfg']['ShowPhpInfo']) {
22 phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);