Fixed
This commit is contained in:
parent
93b44fc4ae
commit
98bdf7935f
|
|
@ -18,7 +18,7 @@ $username = isset($_SESSION['username']) ? $_SESSION['username'] : null;
|
||||||
<div class="max-w-7xl mx-auto px-4">
|
<div class="max-w-7xl mx-auto px-4">
|
||||||
<div class="flex justify-between items-center h-16">
|
<div class="flex justify-between items-center h-16">
|
||||||
<div class="flex items-center gap-6">
|
<div class="flex items-center gap-6">
|
||||||
<a href="/BibliotecaOnline/index.php" class="font-semibold text-lg">Biblioteca Online</a>
|
<a href="#" class="font-semibold text-lg">Biblioteca Online</a>
|
||||||
<div class="hidden md:flex items-center gap-4">
|
<div class="hidden md:flex items-center gap-4">
|
||||||
<a href="#" class="hover:text-[#cbff4d]">Catalogo</a>
|
<a href="#" class="hover:text-[#cbff4d]">Catalogo</a>
|
||||||
<a href="#" class="hover:text-[#cbff4d]">Recensioni</a>
|
<a href="#" class="hover:text-[#cbff4d]">Recensioni</a>
|
||||||
|
|
@ -44,7 +44,7 @@ $username = isset($_SESSION['username']) ? $_SESSION['username'] : null;
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<?php if ($isLogged): ?>
|
<?php if ($isLogged): ?>
|
||||||
<span class="hidden md:inline text-sm">Ciao, <?php echo htmlspecialchars($username); ?></span>
|
<span class="hidden md:inline text-sm">Ciao, <?php echo htmlspecialchars($username); ?></span>
|
||||||
<a href="/BibliotecaOnline/php/auth/logout.php" class="px-4 py-2 bg-[#84dd63] text-[#1f2937] rounded hover:bg-[#cbff4d]">Logout</a>
|
<a href="./php/auth/logout.php" class="px-4 py-2 bg-[#84dd63] text-[#1f2937] rounded hover:bg-[#cbff4d]">Logout</a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<button id="openLogin" class="px-4 py-2 bg-[#84dd63] text-[#1f2937] rounded hover:bg-[#cbff4d]">Login</button>
|
<button id="openLogin" class="px-4 py-2 bg-[#84dd63] text-[#1f2937] rounded hover:bg-[#cbff4d]">Login</button>
|
||||||
<button class="px-4 py-2 bg-[#69747c] text-white rounded opacity-80 cursor-not-allowed">Registrati (presto)</button>
|
<button class="px-4 py-2 bg-[#69747c] text-white rounded opacity-80 cursor-not-allowed">Registrati (presto)</button>
|
||||||
|
|
@ -111,7 +111,7 @@ $username = isset($_SESSION['username']) ? $_SESSION['username'] : null;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const formData = $(this).serialize();
|
const formData = $(this).serialize();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/BibliotecaOnline/php/auth/login.php',
|
url: './php/auth/login.php',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: formData,
|
data: formData,
|
||||||
headers: { 'X-Requested-With': 'XMLHttpRequest' },
|
headers: { 'X-Requested-With': 'XMLHttpRequest' },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue