diff options
author | Rouslan Placella <rouslan@placella.com> | 2012-12-07 15:38:30 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-12-07 17:20:52 +0400 |
commit | cbbaa323a95c05b2662f361b19a58da84f5705da (patch) | |
tree | 85bd04215f0f09e0699935f05df639be9ca0dd0e /version_check.php | |
parent | 535cf86b4aadab5282394bb9e76079c3ba0c0041 (diff) |
Proxy ajax calls to pma.net to avoid browser notices
Conflicts:
js/functions.js
Diffstat (limited to 'version_check.php')
-rw-r--r-- | version_check.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/version_check.php b/version_check.php new file mode 100644 index 0000000000..d893b9daaf --- /dev/null +++ b/version_check.php @@ -0,0 +1,16 @@ +<?php +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * Proxy for retrieving version information from phpmyadmin.net + * + * @package PhpMyAdmin + */ + +$file = 'http://www.phpmyadmin.net/home_page/version.json'; +if (ini_get('allow_url_fopen')) { + echo file_get_contents($file); +} else if (function_exists('curl_init')) { + curl_exec(curl_init($file)); +} + +?> |