Commit 5a3b28cc10f53e3492b06fe1337407bc91222f23
1 parent
58f9717f
Ajout compte
Showing
2 changed files
with
4 additions
and
5 deletions
Show diff stats
site/accesBase.php
@@ -67,7 +67,6 @@ | @@ -67,7 +67,6 @@ | ||
67 | $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); | 67 | $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); |
68 | $tab = pg_fetch_assoc($result); | 68 | $tab = pg_fetch_assoc($result); |
69 | deconnexion($db); | 69 | deconnexion($db); |
70 | - echo "tututututututut"; | ||
71 | return $tab['groupe']; | 70 | return $tab['groupe']; |
72 | } | 71 | } |
73 | 72 |
site/header.php
@@ -17,10 +17,10 @@ | @@ -17,10 +17,10 @@ | ||
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) | ||
21 | - { | ||
22 | - echo '<a href="inscrire.php"><i class="far fa-plus-square"></i> Compte</a>'; | ||
23 | - } | 20 | + //if(getGroupe($_SESSION['Login'])==0) |
21 | + //{ | ||
22 | + //echo '<a href="inscrire.php"><i class="far fa-plus-square"></i> Compte</a>'; | ||
23 | + //} | ||
24 | ?> | 24 | ?> |
25 | <a href="deconnecter.php"><i class="fa fa-power-off"></i> Deconnexion</a> | 25 | <a href="deconnecter.php"><i class="fa fa-power-off"></i> Deconnexion</a> |
26 | <?php | 26 | <?php |