From 098b0d46401af3c2b3d566518a305681a5ad9919 Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Sat, 31 May 2025 11:05:01 -0300 Subject: [PATCH] Add ImageMagick check and update PHP minimum version to 8.0.0 --- admin/customize_settings_native.php | 263 ++++++++++++++-------------- admin/health_check.php | 5 +- view/ImageMagick.check.php | 20 +++ view/configurations_body.php | 6 +- 4 files changed, 160 insertions(+), 134 deletions(-) create mode 100644 view/ImageMagick.check.php diff --git a/admin/customize_settings_native.php b/admin/customize_settings_native.php index 8130429cf1..b89419ad6f 100644 --- a/admin/customize_settings_native.php +++ b/admin/customize_settings_native.php @@ -1,130 +1,133 @@ - - -
-
-
-
-
-
- -
-
- - " class="form-control" type="text" value="getWebSiteTitle(); ?>" maxlength="45"> -
-
-
-
- -
- - -
- -
-
-
-
-
- -
-
-
-
-
- \ No newline at end of file + + +
+
+
+ +
+
+
+ +
+
+ + " class="form-control" type="text" value="getWebSiteTitle(); ?>" maxlength="45"> +
+
+
+
+ +
+ + +
+ +
+
+
+
+
+ +
+
+
+
+
+ diff --git a/admin/health_check.php b/admin/health_check.php index 727e68a178..9755f86117 100644 --- a/admin/health_check.php +++ b/admin/health_check.php @@ -38,10 +38,11 @@ $linuxApps[] = ['unzip']; $linuxApps[] = ['youtube-dl']; $linuxApps[] = ['sshpass', 'https://github.com/WWBN/AVideo/wiki/Clone-Site-Plugin#the-process-with-rsync-support-hls']; $linuxApps[] = ['apache2']; +$linuxApps[] = ['convert', 'sudo apt update && sudo apt install imagemagick']; $messages = ['Server' => [], 'PHP' => [], 'Apache' => []]; $version = phpversion(); -$phpMinVersion = '7.3.0'; +$phpMinVersion = '8.0.0'; if (strnatcmp($version, $phpMinVersion) >= 0) { $messages['PHP'][] = "PHP v{$version}"; } else { @@ -343,4 +344,4 @@ function printMessages($messages, $cols = array(4, 6)) - \ No newline at end of file + diff --git a/view/ImageMagick.check.php b/view/ImageMagick.check.php new file mode 100644 index 0000000000..930c81e5b2 --- /dev/null +++ b/view/ImageMagick.check.php @@ -0,0 +1,20 @@ + +
+
+ +
+
+ diff --git a/view/configurations_body.php b/view/configurations_body.php index 6166475349..b7c2298dfd 100644 --- a/view/configurations_body.php +++ b/view/configurations_body.php @@ -292,7 +292,9 @@ if (User::isAdmin()) {

- +
@@ -801,4 +803,4 @@ if (User::isAdmin()) { \ No newline at end of file +?>