Commit 8e13785e424cd05acb6b6eec5ea1fe88f099e1f3

Authored by Jean Wasilewski
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 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 10 </div>
11 11 <div class="collapse navbar-collapse">
12   - <?php
  12 + <?php
13 13 if (isset($_SESSION["connected"]) && $_SESSION["connected"])
  14 + {
  15 +
14 16 ?>
15 17 <p class="navbar-text navbar-right">
16 18 Bienvenue, <a href="#" class="navbar-link"><?php echo $_SESSION["realname"];?>.'</a>
... ... @@ -18,7 +20,8 @@
18 20 <p class="navbar-right">
19 21 <a href="#" onclick="file('logout.php');document.location.reload();" class="glyphicon glyphicon-star"></a>
20 22 </p>
21   -<?php
  23 + <?php
  24 + }
22 25 else
23 26 echo '<p class="navbar-text navbar-right"><a href="#" class="navbar-link" onClick="loadNewDoc(\'connect.php\');">Se connecter</a></p>';
24 27 ?>
... ...