From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- srcs/phpmyadmin/version_check.php | 49 --------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 srcs/phpmyadmin/version_check.php (limited to 'srcs/phpmyadmin/version_check.php') diff --git a/srcs/phpmyadmin/version_check.php b/srcs/phpmyadmin/version_check.php deleted file mode 100644 index 30a2000..0000000 --- a/srcs/phpmyadmin/version_check.php +++ /dev/null @@ -1,49 +0,0 @@ -disable(); - -// Always send the correct headers -Core::headerJSON(); - -$versionInformation = new VersionInformation(); -$versionDetails = $versionInformation->getLatestVersion(); - -if (empty($versionDetails)) { - echo json_encode([]); -} else { - $latestCompatible = $versionInformation->getLatestCompatibleVersion( - $versionDetails->releases - ); - $version = ''; - $date = ''; - if ($latestCompatible != null) { - $version = $latestCompatible['version']; - $date = $latestCompatible['date']; - } - echo json_encode( - [ - 'version' => ! empty($version) ? $version : '', - 'date' => ! empty($date) ? $date : '', - ] - ); -} -- cgit