Show sourcecode
The following files exists in this folder. Click to view.
access-deneid.png
diagramresultat.php
insert-admin.php
login.php
logout.php
personliga-resultat.php
quiz-sida.php
ransa-quiz-session.php
ransa-skapa-quiz-session.php
resultat.php
session-variabler-unset.php
signin.php
skapa-inloggning-tabell.php
skapa-quiz-tabeller.php
skapa-quiz.php
start.php
tabort-kunder-quiz.php
åtkomst-nekad.php
start.php
55 lines UTF-8 Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
session_start();
include('session-variabler-unset.php')
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quiz Start</title>
</head>
<body>
<?php
include ('../../dbconnection.php');
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] != true){
header("Location: login.php");
exit;
}
echo "<h1> Quiz Startsidan </h1>";
echo "Välkommen, ". htmlspecialchars($_SESSION['username']. "!");
echo "<br> <br>" ;
?>
<a href="quiz-sida.php">Kör Quiz</a> <br>
<a href="resultat.php">Topplista</a> <br>
<a href="diagramresultat.php">Resultat i diagram</a> <br>
<a href="personliga-resultat.php">Person Bästa</a> <br> <br>
<?php if($_SESSION["type"] == "admin") { ?>
<a href="skapa-quiz.php">Skapa Quiz</a> <br>
<a href="tabort-kunder-quiz.php">Ta bort kunder eller quiz</a>
<?php
}
try {
}
catch(PDOException $e){
echo $sql. "<br>". $e->getMessage();
}
$dbconn = null;
?>
<br><br>
<a href="logout.php">Logga ut</a>
</body>
</html>