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:
BIN
img/favicon.ico
Normal file
BIN
img/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -5,6 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width initial-scale=1.0"/>
|
||||||
<title>CSG Ticketsystem</title>
|
<title>CSG Ticketsystem</title>
|
||||||
<link rel="stylesheet" href="./css/style.css"/>
|
<link rel="stylesheet" href="./css/style.css"/>
|
||||||
|
<link rel="icon" type="image/x-icon" href="./img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Login</title>
|
<title>Login</title>
|
||||||
<link rel="stylesheet" href="../css/style.css" />
|
<link rel="stylesheet" href="../css/style.css" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ if (!isset($_SESSION["loggedIn"])) {
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Admin Dashboard</title>
|
<title>Admin Dashboard</title>
|
||||||
<link rel="stylesheet" href="../css/style.css">
|
<link rel="stylesheet" href="../css/style.css">
|
||||||
|
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
if (!isset($_SESSION['unlocked'])) {
|
|
||||||
header("Location: ../index.html");
|
|
||||||
exit;
|
|
||||||
} else {
|
|
||||||
header("Location: ../pages/ticket_submit.html");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
@@ -1,3 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
if (!isset($_SESSION["unlocked"])) {
|
||||||
|
header("Location: ../index.html");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
@@ -5,6 +13,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Schul-IT Ticketsystem</title>
|
<title>Schul-IT Ticketsystem</title>
|
||||||
<link rel="stylesheet" href="../css/style.css" />
|
<link rel="stylesheet" href="../css/style.css" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -38,7 +47,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<button type="submit">Ticket absenden</button>
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -11,7 +11,7 @@ if ($pass === $try) {
|
|||||||
|
|
||||||
if ($unlocked) {
|
if ($unlocked) {
|
||||||
$_SESSION['unlocked'] = true;
|
$_SESSION['unlocked'] = true;
|
||||||
header("Location: ./ticket_lock.php");
|
header("Location: ./ticket_submit.php");
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
header("Location: ../index.html?error=1");
|
header("Location: ../index.html?error=1");
|
||||||
|
|||||||
Reference in New Issue
Block a user