From 15fa035dc4f356283afaf79dc58b6b1bc6db9773 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sat, 12 Oct 2019 14:04:43 +0200 Subject: [PATCH] check for minimum required php version in autoupdater Signed-off-by: Michael Kaufmann --- admin_autoupdate.php | 10 ++++++++++ lng/english.lng.php | 1 + lng/german.lng.php | 1 + 3 files changed, 12 insertions(+) diff --git a/admin_autoupdate.php b/admin_autoupdate.php index 67bc3122..8ef41962 100644 --- a/admin_autoupdate.php +++ b/admin_autoupdate.php @@ -36,6 +36,15 @@ if (! extension_loaded('zip')) { )); } +// 0.10.x requires 7.0 at least +if (version_compare("7.0.0", PHP_VERSION, ">=")) { + \Froxlor\UI\Response::redirectTo($filename, array( + 's' => $s, + 'page' => 'error', + 'errno' => 10 + )); +} + // display initial version check if ($page == 'overview') { @@ -221,5 +230,6 @@ elseif ($page == 'error') { // 7 = local archive does not exist // 8 = could not extract archive // 9 = checksum mismatch + // 10 =