Merge pull request #26 from amit177/bugfix/installation-path
Allow installation on sub directories
This commit is contained in:
commit
ea8176c6e2
@ -31,7 +31,7 @@ function exitErrorMessage(string $message): void
|
|||||||
|
|
||||||
function exitNormal(): void
|
function exitNormal(): void
|
||||||
{
|
{
|
||||||
header('Location: /');
|
header("Refresh: 0");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ $templateData['csrfToken'] = $_SESSION[LookingGlass::SESSION_CSRF] = bin2hex(ran
|
|||||||
<div class="card shadow-lg">
|
<div class="card shadow-lg">
|
||||||
<div class="card-body p-3">
|
<div class="card-body p-3">
|
||||||
<h1 class="fs-4 card-title mb-4">Looking Glass</h1>
|
<h1 class="fs-4 card-title mb-4">Looking Glass</h1>
|
||||||
<form method="POST" action="/" autocomplete="off">
|
<form method="POST" autocomplete="off">
|
||||||
<input type="hidden" name="csrfToken" value="<?php echo $templateData['csrfToken'] ?>">
|
<input type="hidden" name="csrfToken" value="<?php echo $templateData['csrfToken'] ?>">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -286,7 +286,7 @@ $templateData['csrfToken'] = $_SESSION[LookingGlass::SESSION_CSRF] = bin2hex(ran
|
|||||||
|
|
||||||
outputCard.style.display = 'inherit'
|
outputCard.style.display = 'inherit'
|
||||||
|
|
||||||
fetch('/backend.php')
|
fetch('backend.php')
|
||||||
.then(async (response) => {
|
.then(async (response) => {
|
||||||
// response.body is a ReadableStream
|
// response.body is a ReadableStream
|
||||||
const reader = response.body.getReader()
|
const reader = response.body.getReader()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user