forked from llcit/FVP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·52 lines (52 loc) · 1.67 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>The Language Flagship Video Project Website</title>
<?php
include "./inc/db_pdo.php";
include "./inc/dump.php";
include "./inc/sqlFunctions.php";
include "./inc/htmlFunctions.php";
$SETTINGS = parse_ini_file(__DIR__."/inc/settings.ini");
$pageTitle = "Flagship Video Home";
$subTitle = "Main Menu";
$titleText = "Select one of the links below.";
session_start();
if (!isset($_SESSION['username'])) {
$role = 'anonymous';
}
else {
$user = getUser($_SESSION['username']);
$role = $user->role;
}
$pageContent = writeNavLinks($role,'body');
?>
<link rel="stylesheet" href="./css/main.css" type="text/css"/>
</head>
<body>
<div class="panel panel-default">
<?php
$header = writePageHeader($SETTINGS['base_url'],$user,$pageTitle);
echo($header);
?>
<div class="panel-body" style='margin-top:30px;'>
<div class="container" >
<div class="row fv_main">
<div class="card fv_card">
<div class="card-body fv_card_body" style='border-bottom:solid 1px gray;'>
<h2 class="card-title"><?php echo($subTitle); ?></h2>
<p class="card-text"><?php echo($titleText); ?></p>
</div>
<div class='fv_pageContent'>
<?php echo($pageContent); ?>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p> </p>
</div>
</div>
</body>
</html>