diff --git a/install/includes/interface_assets/triggers.php b/install/includes/interface_assets/triggers.php index 0e78cb5cf..b88e32df8 100644 --- a/install/includes/interface_assets/triggers.php +++ b/install/includes/interface_assets/triggers.php @@ -10,6 +10,7 @@ if ($_POST['database_check'] ?? false == true) { $result = $database->database_check($_POST); echo $result; exit; + } /** @@ -22,7 +23,7 @@ if ($_POST['database_check'] ?? false == true) { if ($_POST['run_config_file'] ?? false == true) { sleep(1); - $data = json_decode($_POST['data'], true); + $data = $_POST['data']; if ($core->validate_post($data)) { if($core->write_configfile($data)) { $result = 'success'; @@ -38,7 +39,7 @@ if ($_POST['run_config_file'] ?? false == true) { if ($_POST['run_database_file'] ?? false == true) { sleep(1); - $data = json_decode($_POST['data'], true); + $data = $_POST['data']; if ($core->validate_post($data)) { if($core->write_config($data)) { $result = 'success'; @@ -53,7 +54,7 @@ if ($_POST['run_database_file'] ?? false == true) { } if ($_POST['run_database_tables'] ?? false == true) { - $data = json_decode($_POST['data'], true); + $data = $_POST['data']; if ($core->validate_post($data)) { $result = $database->create_tables($data); } else { diff --git a/install/index.php b/install/index.php index 18c49578c..f80870c78 100644 --- a/install/index.php +++ b/install/index.php @@ -12,1192 +12,1221 @@ HB9HIL - Big UX and backend upgrade - July 2024 if(!file_exists('.lock')) { -include 'includes/interface_assets/header.php'; ?> + include 'includes/interface_assets/header.php'; ?> -
-