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.
|
||||
</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>
|
||||
</body>
|
||||
</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.
|
||||
</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>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -16,15 +16,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && AUTH_TYPE == 'local') {
|
||||
if (password_verify($password, $row['password'])) {
|
||||
$_SESSION['admin'] = $row['username'];
|
||||
$_SESSION['auth_type'] = 'local';
|
||||
if (DEV_MODE) {
|
||||
echo "[DEBUG] Password " . $password . " trovata con l'hash " . $row['password'] . '. <a href="index.php">Vai al panello amministrativo</a>';
|
||||
}
|
||||
else {
|
||||
header("Location: index.php");
|
||||
}
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
} else if (DEV_MODE) {
|
||||
echo "[DEBUG] Password " . $password . " non trovata nel database.";
|
||||
}
|
||||
}
|
||||
$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.
|
||||
</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>
|
||||
|
||||
</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.
|
||||
</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>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user