diag.php 867 B

12345678910111213141516171819202122232425
  1. <?php if (!defined('PmWiki')) exit();
  2. /* Copyright 2003-2004 Patrick R. Michaud (pmichaud@pobox.com)
  3. This file is part of PmWiki; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published
  5. by the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version. See pmwiki.php for full details.
  7. This file adds the "?action=diag" action to PmWiki. This produces
  8. lots of diagnostic output that may be helpful to the software authors
  9. when debugging PmWiki or other scripts.
  10. This file is automatically included by stdconfig.php if
  11. $EnableDiag = 1;
  12. is set in config.php.
  13. */
  14. if ($action=='diag') {
  15. header("Content-type: text/plain");
  16. print_r($GLOBALS);
  17. exit();
  18. }
  19. if ($action=='phpinfo') { phpinfo(); exit(); }
  20. ?>