From 0ae20a02abbd8d2dfced4c5fb6d3524be2aa3ff2 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sun, 28 Jan 2024 00:57:11 +0100 Subject: [PATCH] some work on pre-checks --- install/index.php | 114 ++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 95 insertions(+), 19 deletions(-) diff --git a/install/index.php b/install/index.php index 2400b0c2d..af79e6807 100644 --- a/install/index.php +++ b/install/index.php @@ -13,6 +13,18 @@ $db_config_path = '../application/config/'; $db_file_path = $db_config_path . "database.php"; +// Wanted Pre-Check Parameters +// +// PHP +$max_execution_time = 600; // Seconds +$max_upload_file_size = 20; // Megabyte +$post_max_size = 20; // Megabyte + +// MariaDB / MySQL +$mariadb_version = 10.1; +$mysql_version = 5.7; + + function delDir($dir) { $files = glob($dir . '*', GLOB_MARK); @@ -106,9 +118,7 @@ if ($_POST && isset($_POST['submit'])) { } ?> -
- -

Wavelog Installer

+
@@ -147,22 +157,32 @@ if ($_POST && isset($_POST['submit'])) {
-
Welcome to the Wavelog Installer
+

Welcome to the Wavelog Installer

This installer will guide you through the necessary steps for the installation of Wavelog.
Wavelog is a powerful web-based amateur radio logging software. Follow the steps in each tab to configure and install Wavelog on your server.

-

If you encounter any issues or have questions, refer to the documentation or community forum for assistance.

-

Visit our GitHub repository: Wavelog on GitHub

+

If you encounter any issues or have questions, refer to the documentation (Wiki) or community forum (Discussions) on Github for assistance.

+

Thank you for installing Wavelog!

-
-
-

PHP Modules

+
+
+

PHP Modules

- + + + + + - + - + - + - + +
curlVersion (min. 7.4) + + + + + +
php-curl Installed @@ -173,7 +193,7 @@ if ($_POST && isset($_POST['submit'])) {
MySQLphp-mysql Installed @@ -184,7 +204,7 @@ if ($_POST && isset($_POST['submit'])) {
mbstringphp-mbstring Installed @@ -195,7 +215,7 @@ if ($_POST && isset($_POST['submit'])) {
xmlphp-xml Installed @@ -206,7 +226,7 @@ if ($_POST && isset($_POST['submit'])) {
zipphp-zip Installed @@ -215,19 +235,75 @@ if ($_POST && isset($_POST['submit'])) {
+
+
+

MySQL / MariaDB

+ + + + + + + +
MariaDB installed versionToDo
+
+
+
+
+

PHP Settings

+ + + + + + - + + + + + + + +
max_execution_time ' . $max_execution_time . ' s'; ?> + = $max_execution_time) { + ?> + + + + +
opensslmax_upload_file_size ' . $max_upload_file_size . 'M'; ?> - - Installed + ($max_upload_file_size * 1024 * 1024)) { // compare with given value in bytes + ?> + - Not Installed + + +
post_max_size ' . $post_max_size . 'M'; ?> + ($post_max_size * 1024 * 1024)) { // compare with given value in bytes + ?> + + +
+
+

Note: Everything is good or not

+
@@ -249,7 +325,7 @@ if ($_POST && isset($_POST['submit'])) {
-
+