Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
113 lines (89 loc) · 5.14 KB
/
Copy pathheader.php
File metadata and controls
113 lines (89 loc) · 5.14 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<head>
<!-- bootstrap files -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="/stylesheets/header.css"/>
</head>
<?php
include 'check_language.php';
?>
<!-- bootstrap nav bar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="https://cypress-cdbat.000webhostapp.com/index.php">CYPRESS</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/index.php"><?php checkLanguage("Home", "Domicile"); ?><span class="sr-only">(current)</span></a>
</li>
<!-- check if user needs to login -->
<?php
if (!isset($_SESSION['email'])) {
?>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/login.php"><?php checkLanguage("Login", "Connexion"); ?></a>
</li>
<?php
}
// user login
if (isset($_SESSION['email'])) {
?>
<!-- drop downs -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php checkLanguage("Reports", "Rapports"); ?></a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="https://cypress-cdbat.000webhostapp.com/create_report.php"><?php checkLanguage("Create Report", "Creer un Rapport"); ?></a>
<a class="dropdown-item" href="https://cypress-cdbat.000webhostapp.com/edit_report_group.php"><?php checkLanguage("Edit Report", "Modifier le Rapport"); ?></a>
<a class="dropdown-item" href="https://cypress-cdbat.000webhostapp.com/delete_report_group.php"><?php checkLanguage("Delete Report", "Supprimer le Rapport"); ?></a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/rankings.php"><?php checkLanguage("Rankings", "Classements"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/suggest.php"><?php checkLanguage("Suggest", "Suggèrer"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/notify_survey.php"><?php checkLanguage("Notify Survey", "Notifier l'Enquête"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/vote.php"><?php checkLanguage("Vote", "Vote"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/friend.php"><?php checkLanguage("Friend", "amie"); ?></a>
</li>
<!-- end php -->
<?php } ?>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/faq.php">FAQ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/contact.php"><?php checkLanguage("Contact", "Contacter"); ?></a>
</li>
</ul>
<?php
// user login
if (isset($_SESSION['email'])) {
?>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/account_settings.php"><?php checkLanguage("Account Settings", "Paramètres du Compte"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/delete_account.php"><?php checkLanguage("Delete Profile", "Supprimer le Profil"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://cypress-cdbat.000webhostapp.com/logout.php"><?php checkLanguage("Logout", "Se Déconnecter"); ?></a>
</li>
</ul>
<?php } ?>
</div>
</nav>