Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2012-12-07 15:38:30 +0400
committerMichal Čihař <mcihar@suse.cz>2012-12-07 17:20:52 +0400
commitcbbaa323a95c05b2662f361b19a58da84f5705da (patch)
tree85bd04215f0f09e0699935f05df639be9ca0dd0e /version_check.php
parent535cf86b4aadab5282394bb9e76079c3ba0c0041 (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.php16
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));
+}
+
+?>