license.php 728 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Simple script to set correct charset for the license
  5. *
  6. * Note: please do not fold this script into a general script
  7. * that would read any file using a GET parameter, it would open a hole
  8. *
  9. * @package PhpMyAdmin
  10. */
  11. /**
  12. * Gets core libraries and defines some variables
  13. */
  14. require 'libraries/common.inc.php';
  15. /**
  16. *
  17. */
  18. header('Content-type: text/plain; charset=utf-8');
  19. $filename = LICENSE_FILE;
  20. // Check if the file is available, some distributions remove these.
  21. if (is_readable($filename)) {
  22. readfile($filename);
  23. } else {
  24. printf(__('The %s file is not available on this system, please visit www.phpmyadmin.net for more information.'), $filename);
  25. }
  26. ?>