-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofil.php
More file actions
119 lines (93 loc) · 2.51 KB
/
profil.php
File metadata and controls
119 lines (93 loc) · 2.51 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
114
115
116
117
118
119
<?php
session_start();
include('include/display_art_min.php');
if (isset($_SESSION['account'])) {
?>
<!DOCTYPE HTML>
<!--
Future Imperfect by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Je suis une bobo</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
</head>
<body class="single">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<h1><a href="index.php">BLOG D'UNE BOBO</a></h1>
<?php
include ('include/menu.php')
?>
<nav class="main">
<ul>
<li class="menu">
<a class="fa-bars" href="#menu">Menu</a>
</li>
</ul>
</nav>
</header>
<!-- Menu -->
<section id="menu">
<!-- Links -->
<section>
<?php display_articles_min(); ?>
</section>
<!-- Actions -->
<section>
<ul class="actions vertical">
<li><a href="connexion.php" class="button big fit">Se connecter</a></li>
</ul>
</section>
</section>
<!-- Main -->
<div id="main">
<!-- Information de compte -->
<article class="post">
<header>
<div class="title">
<h2> <?php echo htmlspecialchars($_SESSION['account']['user']) ?></h2>
<h1>Votre Profil</h1>
</div>
</header>
<p>Information de votre compte</p>
<ul>
<li>Pseudo : <?php echo htmlspecialchars($_SESSION['account']['user']) ?></li>
<li>Email : <?php echo htmlspecialchars($_SESSION['account']['email']) ?></li>
</ul>
<?php
if ($_SESSION['account']['admin'] == 'oui') {
echo "Vous êtes administrateur";
} else {
echo "Vous n'êtes pas administrateur";
}
?>
</article>
</div>
<!-- Footer -->
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
</body>
</html>
<?php
}
else
{
echo "Vous n'etes pas connecter !";
}
?>