Added proper lock and favicon

Implemented not being able to go to ticket_submit if not unlocked. Also
added favicon to display in address bar (from csg-germering.de). Deleted
unnessecary files.
This commit is contained in:
sraffauf
2026-01-28 15:49:54 +01:00
parent bb8c35b6d1
commit f055f8943f
7 changed files with 59 additions and 57 deletions

BIN
img/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width initial-scale=1.0"/>
<title>CSG Ticketsystem</title>
<link rel="stylesheet" href="./css/style.css"/>
<link rel="icon" type="image/x-icon" href="./img/favicon.ico">
</head>
<body>
<div class="container">

View File

@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Login</title>
<link rel="stylesheet" href="../css/style.css" />
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
</head>
<body>
<div class="container">

View File

@@ -11,6 +11,7 @@ if (!isset($_SESSION["loggedIn"])) {
<meta charset="UTF-8">
<title>Admin Dashboard</title>
<link rel="stylesheet" href="../css/style.css">
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
</head>
<body>
<div class="container">

View File

@@ -1,10 +0,0 @@
<?php
session_start();
if (!isset($_SESSION['unlocked'])) {
header("Location: ../index.html");
exit;
} else {
header("Location: ../pages/ticket_submit.html");
exit;
}
?>

View File

@@ -1,3 +1,11 @@
<?php
session_start();
if (!isset($_SESSION["unlocked"])) {
header("Location: ../index.html");
exit;
}
?>
<!DOCTYPE html>
<html lang="de">
<head>
@@ -5,6 +13,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Schul-IT Ticketsystem</title>
<link rel="stylesheet" href="../css/style.css" />
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
</head>
<body>
<div class="container">
@@ -38,7 +47,7 @@
</select>
<button type="submit">Ticket absenden</button>
<a href="./login.html" class="login-btn">Admin Login</a>
<a href="../pages/login.html" class="login-btn">Admin Login</a>
</form>
</div>

View File

@@ -11,7 +11,7 @@ if ($pass === $try) {
if ($unlocked) {
$_SESSION['unlocked'] = true;
header("Location: ./ticket_lock.php");
header("Location: ./ticket_submit.php");
exit;
} else {
header("Location: ../index.html?error=1");