version_check.php 550 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * A caching proxy for retrieving version information from phpmyadmin.net
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. // Sets up the session
  9. define('PMA_MINIMUM_COMMON', true);
  10. require_once 'libraries/common.inc.php';
  11. require_once 'libraries/Util.class.php';
  12. // Always send the correct headers
  13. header('Content-type: application/json; charset=UTF-8');
  14. $version = PMA_Util::getLatestVersion();
  15. echo json_encode(
  16. array(
  17. 'version' => $version->version,
  18. 'date' => $version->date,
  19. )
  20. );
  21. ?>