Commit 8e13785e424cd05acb6b6eec5ea1fe88f099e1f3
1 parent
a0ba0bb6
Small fix
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
topnavbar.php
@@ -9,8 +9,10 @@ | @@ -9,8 +9,10 @@ | ||
9 | <a class="navbar-brand" onClick="document.location.reload();" data-toggle="tooltip" data-placement="bottom" title="Aller à la page d'accueil" href="#">Coupe de Robotique des Ecoles Primaires</a> | 9 | <a class="navbar-brand" onClick="document.location.reload();" data-toggle="tooltip" data-placement="bottom" title="Aller à la page d'accueil" href="#">Coupe de Robotique des Ecoles Primaires</a> |
10 | </div> | 10 | </div> |
11 | <div class="collapse navbar-collapse"> | 11 | <div class="collapse navbar-collapse"> |
12 | - <?php | 12 | + <?php |
13 | if (isset($_SESSION["connected"]) && $_SESSION["connected"]) | 13 | if (isset($_SESSION["connected"]) && $_SESSION["connected"]) |
14 | + { | ||
15 | + | ||
14 | ?> | 16 | ?> |
15 | <p class="navbar-text navbar-right"> | 17 | <p class="navbar-text navbar-right"> |
16 | Bienvenue, <a href="#" class="navbar-link"><?php echo $_SESSION["realname"];?>.'</a> | 18 | Bienvenue, <a href="#" class="navbar-link"><?php echo $_SESSION["realname"];?>.'</a> |
@@ -18,7 +20,8 @@ | @@ -18,7 +20,8 @@ | ||
18 | <p class="navbar-right"> | 20 | <p class="navbar-right"> |
19 | <a href="#" onclick="file('logout.php');document.location.reload();" class="glyphicon glyphicon-star"></a> | 21 | <a href="#" onclick="file('logout.php');document.location.reload();" class="glyphicon glyphicon-star"></a> |
20 | </p> | 22 | </p> |
21 | -<?php | 23 | + <?php |
24 | + } | ||
22 | else | 25 | else |
23 | echo '<p class="navbar-text navbar-right"><a href="#" class="navbar-link" onClick="loadNewDoc(\'connect.php\');">Se connecter</a></p>'; | 26 | echo '<p class="navbar-text navbar-right"><a href="#" class="navbar-link" onClick="loadNewDoc(\'connect.php\');">Se connecter</a></p>'; |
24 | ?> | 27 | ?> |