phpinfo.php 507 B

12345678910111213141516171819202122
  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.
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. /**
  9. * Gets core libraries and defines some variables
  10. */
  11. require_once 'libraries/common.inc.php';
  12. $response = PhpMyAdmin\Response::getInstance();
  13. $response->disable();
  14. $response->getHeader()->sendHttpHeaders();
  15. /**
  16. * Displays PHP information
  17. */
  18. if ($GLOBALS['cfg']['ShowPhpInfo']) {
  19. phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
  20. }