make the whole subfolder story more bullet proof

This commit is contained in:
HB9HIL
2025-01-22 10:43:01 +01:00
parent e640baae0c
commit 96e537c730
4 changed files with 13 additions and 34 deletions

View File

@@ -39,7 +39,7 @@
<p><?= sprintf(__("All install steps went through. Redirect to user login in %s seconds..."), "<span id='countdown'>4</span>"); ?></p>
</div>
<div class="mb-3" id="success_button" style="display: none;">
<a class="btn btn-primary" href="<?php echo $_POST['websiteurl'] ?? $websiteurl; ?>index.php/user/login/1"><?= __("Done. Go to the user login ->"); ?></a>
<a class="btn btn-primary" href="<?php echo $_POST['websiteurl']; ?>index.php/user/login/1"><?= __("Done. Go to the user login ->"); ?></a>
</div>
<div id="error_message"></div>
<div class="container mt-5">
@@ -268,7 +268,7 @@
return new Promise((resolve, reject) => {
$.ajax({
url: `${window.location.origin}/index.php/migrate`,
url: "<?php echo $_POST['websiteurl']; ?>" + "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: "<?php echo $_POST['websiteurl']; ?>" + "index.php/update/dxcc",
success: async function(response) {
if (response == 'success') {
running(field, false);