Commit 5214456ad937ca1c4bdde62c65933e77cb47e701

Authored by grouille
1 parent ad69cb1d

Test

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