Translated using Weblate (Slovenian)
[phpmyadmin.git] / phpinfo.php
blobbf4ad8fe388dcbcf388c81d41939f088c13a7c16
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 if (! defined('ROOT_PATH')) {
11 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
14 /**
15 * Gets core libraries and defines some variables
17 require_once ROOT_PATH . 'libraries/common.inc.php';
18 $response = PhpMyAdmin\Response::getInstance();
19 $response->disable();
20 $response->getHeader()->sendHttpHeaders();
22 /**
23 * Displays PHP information
25 if ($GLOBALS['cfg']['ShowPhpInfo']) {
26 phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);