Commit 5214456ad937ca1c4bdde62c65933e77cb47e701

Authored by grouille
1 parent ad69cb1d

Test

site/formInscription.php
1 <?php 1 <?php
  2 +require_once("accesBase.php");
2 if(getGroupe($_SESSION['Login'])!=1) 3 if(getGroupe($_SESSION['Login'])!=1)
3 { header("Location: accueil.php"); } 4 { header("Location: accueil.php"); }
4 5
site/inscription.php
1 <?php 1 <?php
2 session_start(); 2 session_start();
3 -require("accesBase.php") ; 3 +require_once("accesBase.php");
4 if(getGroupe($_SESSION['Login'])!=1) 4 if(getGroupe($_SESSION['Login'])!=1)
5 { header("Location: accueil.php"); } 5 { header("Location: accueil.php"); }
6 ?> 6 ?>
@@ -9,14 +9,11 @@ @@ -9,14 +9,11 @@
9 <body> 9 <body>
10 <?php 10 <?php
11 include("header.php"); 11 include("header.php");
  12 + require_once("accesBase.php");
12 if(getGroupe($_SESSION['Login'])==1) 13 if(getGroupe($_SESSION['Login'])==1)
13 - {  
14 - include("formInscription.php");  
15 - } 14 + { include("formInscription.php"); }
16 else 15 else
17 - {  
18 - ?><meta http-equiv="Refresh" content="0;url=accueil.php" /><?php  
19 - } 16 + { header("Location: accueil.php"); }
20 ?> 17 ?>
21 </body> 18 </body>
22 </html> 19 </html>