Commit c71ae98a8bdfd2cc30eece4e49d3c4b0c369c66a
1 parent
b250f653
Test
Showing
4 changed files
with
4 additions
and
4 deletions
Show diff stats
site/formInscription.php
site/header.php
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | <a href="rechercheGraphe.php"><i class="fas fa-chart-line"></i> Graphiques</a> | 17 | <a href="rechercheGraphe.php"><i class="fas fa-chart-line"></i> Graphiques</a> |
18 | <a href="data.php"><i class="fas fa-database"></i> Valeurs</a> | 18 | <a href="data.php"><i class="fas fa-database"></i> Valeurs</a> |
19 | <?php | 19 | <?php |
20 | - if(getGroupe($_SESSION['Login'])==0) | 20 | + if(getGroupe($_SESSION['Login'])==1) |
21 | { | 21 | { |
22 | echo '<a href="inscrire.php"><i class="far fa-plus-square"></i> Compte</a>'; | 22 | echo '<a href="inscrire.php"><i class="far fa-plus-square"></i> Compte</a>'; |
23 | } | 23 | } |
site/inscription.php
site/inscrire.php
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | <body> | 9 | <body> |
10 | <?php | 10 | <?php |
11 | include("header.php"); | 11 | include("header.php"); |
12 | - if(getGroupe($_SESSION['Login'])==0) | 12 | + if(getGroupe($_SESSION['Login'])==1) |
13 | { include("formInscription.php"); } | 13 | { include("formInscription.php"); } |
14 | else | 14 | else |
15 | { header("Location: accueil.php"); } | 15 | { header("Location: accueil.php"); } |