2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * A caching proxy for retrieving version information from phpmyadmin.net
10 define('PMA_MINIMUM_COMMON', true);
11 require_once 'libraries/common.inc.php';
12 require_once 'libraries/Util.class.php';
13 require_once 'libraries/VersionInformation.php';
15 // Always send the correct headers
18 $versionInformation = new VersionInformation();
19 $versionDetails = $versionInformation->getLatestVersion();
21 if (empty($versionDetails)) {
22 echo json_encode(array());
24 $latestCompatible = $versionInformation->getLatestCompatibleVersion(
25 $versionDetails->releases
29 if ($latestCompatible != null) {
30 $version = $latestCompatible['version'];
31 $date = $latestCompatible['date'];
35 'version' => (! empty($version) ?
$version : ''),
36 'date' => (! empty($date) ?
$date : ''),