This repository has been archived by the owner on Oct 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dashboard.php
62 lines (61 loc) · 2.02 KB
/
dashboard.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
53
54
55
56
57
58
59
60
61
62
<?php include (__DIR__ .'/include/header.inc.php'); ?>
<?php include (__DIR__ .'/outils/load_msg.php'); ?>
<header>
<div class="slogan">
<a href="dashboard.php"><img src="img/logo.png" alt="Logo du Trombinouc"></a>
<p>
Le Trombinouc des R&T
</p>
</div>
<div class="connexion">
<form id="rechercher" action="outils/rechercher.php" method="GET">
<input type="text" name="pseudo" placeholder="Pseudo"/>
<input type="submit" id="rechercher" value="Rechercher"/>
<input type="button" value="Se déconnecter" onclick="parent.location='deconnexion.php'"/>
</form>
</div>
</header>
<nav>
<ul>
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="http://ent.unice.fr">Accès ENT</a></li>
<li><a href="http://iutsa.unice.fr/gpushow2/?dept=RT&interactive">Planning des cours</a></li>
<?php echo "<li><a href='profil.php?pseudo={$_SESSION['pseudo']}'>Profil</a></li>"; ?>
<li><a href="options.php">Paramètres</a></li>
</ul>
</nav>
<?php // Apparait uniquement lorsqu'il y a une variable dans l'url
if (isset($_GET['redir'])){
if($_GET['redir'] == "msgsize"){
$msg = "Votre message fait plus de 500 caractères !";
}
elseif($_GET['redir'] == "unknowpseudo"){
$msg = "Pseudo inconnu !";
}
elseif($_GET['redir'] == "unknowidpub"){
$msg = "Publication inconnue !";
}
elseif($_GET['redir'] == "rmpubsuccess"){
$msg = "Publication supprimée !";
}else{
$msg = "";
}
echo "<div class='annonces'>\n
<i class='fa fa-exclamation-triangle' aria-hidden='true'></i>
{$msg}
<i class='fa fa-exclamation-triangle' aria-hidden='true'></i>\n
</div>\n";
}
?>
<div class="publier">
<form id="publication" action="outils/publier.php" method="POST">
<textarea name="message" id="textarea" placeholder=" Exprimez-vous ..." required></textarea> <em id="count">500</em>
<br />
<input type="submit" id="publication" value="Publier !"/>
</form>
</div>
<div class="forum">
<?php load_msg(); ?>
</div>
<script src="js/count.js"></script>
<?php include ('include/footer.inc.php'); ?>