Skip to content

Commit

Permalink
Merge pull request #15 from julienrenaudleca/master
Browse files Browse the repository at this point in the history
Gestion des notices php
  • Loading branch information
gildeluermoz authored Apr 11, 2017
2 parents 67e728c + 5920550 commit 5b199f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions web/index.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$erreur='';
if ($_GET['verif']){
if (isset ($_GET['verif'])){
$msg='Erreur d\'authentification ou droits insuffisants';
$erreur='<img src="images/supprimer.gif" alt="" align="absmiddle">&nbsp;'.$msg;
}
if ($_POST['button'] == "CONNEXION"){
if (isset ($_POST['button'])){
if (($_POST['button'] == "CONNEXION")){
$login = $_POST['flogin'];
$password = md5($_POST['fpassword']);
require("../config/connecter.php");
Expand All @@ -28,7 +30,7 @@
else{
$erreur='<img src="images/supprimer.gif" alt="" align="absmiddle">&nbsp;Erreur d\'authentification';
}
}
}
else{
session_start();
$_SESSION = array();
Expand All @@ -37,6 +39,7 @@
}
session_destroy();
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
Expand Down
1 change: 1 addition & 0 deletions web/verification.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
session_start();
error_reporting(E_ERROR | E_WARNING | E_PARSE);
require("../config/connecter.php");
//requete permettant d'extraire l'utilisateur avec son niveau de droit maximum qu'il soit dans un role-groupe et/ou en tant qu'utilisateur seul
$requete = "SELECT a.id_role, a.nom_role, a.prenom_role,max(a.id_droit) as id_droit, a.id_application
Expand Down

0 comments on commit 5b199f4

Please sign in to comment.