Rimosse schifezze varie
This commit is contained in:
@@ -58,11 +58,6 @@ if (isset($_GET['delete'])) {
|
|||||||
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
||||||
</p>
|
</p>
|
||||||
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
|
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
|
||||||
<?php
|
|
||||||
if (DEV_MODE) {
|
|
||||||
echo "<p>[DEBUG] Tipo di autenticazione: " . $_SESSION['auth_type'] . "</p>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -45,11 +45,6 @@ if (!isset($_SESSION['admin'])) {
|
|||||||
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
||||||
</p>
|
</p>
|
||||||
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
|
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
|
||||||
<?php
|
|
||||||
if (DEV_MODE) {
|
|
||||||
echo "<p>[DEBUG] Tipo di autenticazione: " . $_SESSION['auth_type'] . "</p>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -16,15 +16,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && AUTH_TYPE == 'local') {
|
|||||||
if (password_verify($password, $row['password'])) {
|
if (password_verify($password, $row['password'])) {
|
||||||
$_SESSION['admin'] = $row['username'];
|
$_SESSION['admin'] = $row['username'];
|
||||||
$_SESSION['auth_type'] = 'local';
|
$_SESSION['auth_type'] = 'local';
|
||||||
if (DEV_MODE) {
|
header("Location: index.php");
|
||||||
echo "[DEBUG] Password " . $password . " trovata con l'hash " . $row['password'] . '. <a href="index.php">Vai al panello amministrativo</a>';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
header("Location: index.php");
|
|
||||||
}
|
|
||||||
exit;
|
exit;
|
||||||
} else if (DEV_MODE) {
|
|
||||||
echo "[DEBUG] Password " . $password . " non trovata nel database.";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$error = "Credenziali non valide";
|
$error = "Credenziali non valide";
|
||||||
|
|||||||
@@ -113,11 +113,6 @@ if(isset($_GET['edit'])){
|
|||||||
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
||||||
</p>
|
</p>
|
||||||
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
|
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
|
||||||
<?php
|
|
||||||
if (DEV_MODE) {
|
|
||||||
echo "<p>[DEBUG] Tipo di autenticazione: " . $_SESSION['auth_type'] . "</p>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -156,11 +156,6 @@ if ($class_id > 0) {
|
|||||||
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
||||||
</p>
|
</p>
|
||||||
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
|
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
|
||||||
<?php
|
|
||||||
if (DEV_MODE) {
|
|
||||||
echo "<p>[DEBUG] Tipo di autenticazione: " . $_SESSION['auth_type'] . "</p>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user