From 96e537c7304c26f248e4fddae021e87c720a3909 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Wed, 22 Jan 2025 10:43:01 +0100 Subject: [PATCH] make the whole subfolder story more bullet proof --- application/config/config.sample.php | 2 +- install/config/config.php | 2 +- install/index.php | 37 ++++++---------------------- install/run.php | 6 ++--- 4 files changed, 13 insertions(+), 34 deletions(-) diff --git a/application/config/config.sample.php b/application/config/config.sample.php index da602f15a..b00624705 100644 --- a/application/config/config.sample.php +++ b/application/config/config.sample.php @@ -109,7 +109,7 @@ $config['auth_level'][99] = 'Administrator'; | a PHP script and you can easily do that on your own. | */ -$config['base_url'] = 'http://localhost/logbook'; +$config['base_url'] = 'http://localhost/logbook/'; /* |-------------------------------------------------------------------------- diff --git a/install/config/config.php b/install/config/config.php index 8f5afc990..5dd56d96d 100644 --- a/install/config/config.php +++ b/install/config/config.php @@ -13,7 +13,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); */ $config['app_name'] = 'Wavelog'; -$config['directory'] = '/%directory%'; +$config['directory'] = '%directory%'; $config['callbook'] = '%callbook%'; // Options are hamqth, qrz or qrzcq $config['datadir'] = null; // default to install directory diff --git a/install/index.php b/install/index.php index 34e76d011..c222fc494 100644 --- a/install/index.php +++ b/install/index.php @@ -344,24 +344,14 @@ if (!file_exists('.lock')) {

- -
- - " class="form-control" name="directory" aria-describedby="main-url" /> -
- -
-
-
-
- "> - -
- - - can't be empty
- - have to end with a slash 'example/'
- - have to start with 'http'"); ?> -
+ + +
+ +
@@ -1219,9 +1209,6 @@ if (!file_exists('.lock')) { // Exit Tab 3 - Configuration if (nextTab.attr('id') == fourthTabId) { - if (!directory_check() || !websiteurl_check()) { - return; - } if (!callbook_combination()) { return; } @@ -1898,14 +1885,6 @@ if (!file_exists('.lock')) { checklist_configuration = false; } - if ($('#directory').hasClass('is-invalid')) { - checklist_configuration = false; - } - - if ($('#websiteurl').val() == '' || $('#websiteurl').hasClass('is-invalid')) { - checklist_configuration = false; - } - if (checklist_configuration) { checklistConfiguration.removeClass('fa-times-circle'); checklistConfiguration.addClass('fa-check-circle').css('color', '#04a004'); diff --git a/install/run.php b/install/run.php index 232cd79f3..7b9980e19 100644 --- a/install/run.php +++ b/install/run.php @@ -39,7 +39,7 @@

4"); ?>

@@ -268,7 +268,7 @@ return new Promise((resolve, reject) => { $.ajax({ - url: `${window.location.origin}/index.php/migrate`, + url: "" + "index.php/migrate", dataType: 'json', success: async function(response) { if (response.status == 'success') { @@ -297,7 +297,7 @@ return new Promise((resolve, reject) => { $.ajax({ - url: `${window.location.origin}/index.php/update/dxcc`, + url: "" + "index.php/update/dxcc", success: async function(response) { if (response == 'success') { running(field, false);