-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (28 loc) · 797 Bytes
/
index.php
File metadata and controls
32 lines (28 loc) · 797 Bytes
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
<?php
session_name("peanutbutterandjelly");
session_start();
$_SESSION['initiated'] = true;
require_once("utils/helper/utils.php");
require_once("utils/helper/index_utils.php");
require_once("utils/database.php");
if (isset($_GET["page"]) && check_page($_GET["page"], $pages)) {
$page = $_GET["page"];
} else {
$page = "login";
}
$dbh = Database::connect();
?>
<!DOCTYPE html>
<html lang="fr-FR">
<?php generate_header($page, "css/login.css", "", $pages); ?>
<body class="text-center">
<!--<div class="container-fluid">-->
<?php require_once("content/index/content_".$page.".php"); ?>
<!--</div>-->
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<?php
$dbh = null;
?>
</body>
</html>