2024-06-10 23:23:51 +02:00
|
|
|
<?php
|
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/tools/dbConnect.php';
|
|
|
|
|
|
|
|
if (isset($_COOKIE['userData'])) {
|
|
|
|
$userDataEncoded = $_COOKIE['userData'];
|
|
|
|
$userData = json_decode($userDataEncoded, true); // 'true' pour obtenir un tableau associatif
|
|
|
|
|
|
|
|
$email = $userData['email'];
|
|
|
|
$name = $userData['name'];
|
|
|
|
$familyName = $userData['familyName'];
|
|
|
|
$role = $userData['role'];
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2024-05-28 15:40:57 +02:00
|
|
|
<footer class="site-footer">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 col-md-6">
|
|
|
|
<h6>à propos</h6>
|
|
|
|
<p class="text-justify">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo consequatur illum,
|
|
|
|
officiis nisi porro minus voluptates impedit unde perspiciatis commodi? Mollitia dolores dolore
|
|
|
|
deserunt. Numquam officia ex vitae, ipsum veritatis atque recusandae accusantium consequatur
|
|
|
|
dolorum.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-6 col-md-3">
|
|
|
|
<h6>Catégories</h6>
|
|
|
|
<ul class="footer-links">
|
2024-06-11 10:56:40 +02:00
|
|
|
<li><a href="/">Accueil</a></li>
|
|
|
|
<li><?php
|
|
|
|
if (isset($_COOKIE['userData'])) {
|
|
|
|
$role = $userData['role'];
|
|
|
|
if ($role == 'Administrateur') {
|
|
|
|
echo "<a href='/admin'>Panel d'administration</a>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?></li>
|
|
|
|
<li><a href="/events">Évènements</a></li>
|
2024-05-28 15:40:57 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-6 col-md-3">
|
|
|
|
<h6>Liens rapides</h6>
|
|
|
|
<ul class="footer-links">
|
2024-06-09 17:07:43 +02:00
|
|
|
<li><a href="https://grond.iut-fbleau.fr/balocchi/SAE_web" target="_blank">Code source du site</a>
|
|
|
|
</li>
|
2024-06-10 23:23:51 +02:00
|
|
|
<li>
|
|
|
|
<?php if (isset($_COOKIE['userData'])) {
|
|
|
|
echo "<a href='/account/profile'>Mon profil</a>";
|
|
|
|
} else {
|
|
|
|
echo "<a href='/account/login'>Connexion</a>";
|
|
|
|
} ?>
|
|
|
|
</li>
|
2024-05-28 15:40:57 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8 col-sm-6 col-xs-12">
|
|
|
|
<p class="copyright-text">Copyright © 2024
|
|
|
|
<a href="#">Juliette & Loris</a>.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-sm-6 col-xs-12">
|
2024-05-28 19:47:51 +02:00
|
|
|
<!-- <ul class="social-icons">
|
2024-05-28 15:40:57 +02:00
|
|
|
<li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
|
|
|
|
<li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
|
|
|
|
<li><a class="dribbble" href="#"><i class="fa fa-dribbble"></i></a></li>
|
|
|
|
<li><a class="linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
|
2024-05-28 19:47:51 +02:00
|
|
|
</ul> -->
|
2024-05-28 15:40:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|