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:
authorMichal Čihař <michal@cihar.com>2016-07-28 11:46:38 +0300
committerMichal Čihař <michal@cihar.com>2016-07-28 11:46:38 +0300
commit1eefa08bb05a3f857f57adad785f89c16c2d6ff8 (patch)
treec410613b12c285a5eaf219b34362a911a51a6a7e /version_check.php
parent4caa90a8324c928da3e6050f20736dbcbeaf1627 (diff)
Add login and token validation to version_check
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'version_check.php')
-rw-r--r--version_check.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/version_check.php b/version_check.php
index 81169273c0..fbbe3f9a60 100644
--- a/version_check.php
+++ b/version_check.php
@@ -9,9 +9,12 @@
// Sets up the session
use PMA\libraries\VersionInformation;
-define('PMA_MINIMUM_COMMON', true);
+$_GET['ajax_request'] = 'true';
+
require_once 'libraries/common.inc.php';
-require_once 'libraries/VersionInformation.php';
+
+// Disabling standard response.
+PMA\libraries\Response::getInstance()->disable();
// Always send the correct headers
PMA_headerJSON();