-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.php
69 lines (58 loc) · 1.78 KB
/
info.php
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
require('php/database.php');
session_start();
if($stmt = $database->select("info", ["text"], ["id" => 1])) {
if (count($stmt) == 0) {
echo '<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php require("components/style.php"); ?>
<title><?php echo $open;?> - Info over website</title>
</head>
<body>
<?php require("components/navbar.php"); ?>
<section class="container" id="biografie">
<div class="row">
<span class="mt-5 maxw">NO information</span>
<?php if(isset($_SESSION["loggedin"])) {
echo "<a class="maxw mt-3" href="admin/dashboard.php">← Terug naar dashboard</a>";
} ?>
</div>
</section>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<?php
require("components/footer.php");
require("components/scripts.php"); ?>
</body>
</html>';
}
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php require("components/style.php"); ?>
<title><?php echo $open;?> - Info over website</title>
</head>
<body>
<?php require("components/navbar.php"); ?>
<section class="container" id="biografie">
<div class="row">
<span class="mt-5 maxw"><?php echo $stmt[0]["text"];?></span>
<?php if(isset($_SESSION["loggedin"])) {
echo "<a class='maxw mt-3' href='admin/dashboard.php'>← Terug naar dashboard</a>";
} ?>
</div>
</section>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<?php
require("components/footer.php");
require("components/scripts.php"); ?>
</body>
</html>