phpinfo.php 389 B

123456789101112131415161718192021
  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. PMA_Response::getInstance()->disable();
  13. /**
  14. * Displays PHP information
  15. */
  16. if ($GLOBALS['cfg']['ShowPhpInfo']) {
  17. phpinfo();
  18. }
  19. ?>