Translated using Weblate (Dutch)
[phpmyadmin.git] / version_check.php
blob0f2e8bab7fa63e81658bc4c77d6ca3f44bea35f9
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * A caching proxy for retrieving version information from phpmyadmin.net
6 * @package PhpMyAdmin
7 */
9 // Sets up the session
10 define('PMA_MINIMUM_COMMON', true);
11 require_once 'libraries/common.inc.php';
12 require_once 'libraries/Util.class.php';
14 // Always send the correct headers
15 header('Content-type: application/json; charset=UTF-8');
17 $version = PMA_Util::getLatestVersion();
19 if (empty($version)) {
20 echo json_encode(array());
21 } else {
22 echo json_encode(
23 array(
24 'version' => (! empty($version->version) ? $version->version : ''),
25 'date' => (! empty($version->date) ? $version->date : ''),