admin regle2

This commit is contained in:
remi.biette 2019-05-23 08:19:11 +02:00
parent c8308b0504
commit 78eac17d42
2 changed files with 4 additions and 1 deletions

View File

@ -24,11 +24,14 @@ $result = pg_query_params($db, $requete, array($mail));
<meta charset = "UTF-8"> <meta charset = "UTF-8">
<link rel = "stylesheet" href = "avis_laisses.css"> <link rel = "stylesheet" href = "avis_laisses.css">
<link rel="icon" href="../ressources/favicon.ico" /> <link rel="icon" href="../ressources/favicon.ico" />
<link rel="stylesheet" href="../ressources/navbarhtml.css" />
<title>Avis Laissés</title> <title>Avis Laissés</title>
</head> </head>
<body> <body>
<?php require_once ("../ressources/navbarhtml.php"); ?>
<div id = "container"> <div id = "container">
<div id ="entete"> <div id ="entete">

View File

@ -2,7 +2,7 @@
require_once ('../connexionBD.php'); require_once ('../connexionBD.php');
require_once ('../ressources/user.php'); require_once ('../ressources/user.php');
require_once ('verifconnecte.php'); require_once ('verifconnecte.php');
if (getUser($db, $mail)['estadmin']){ if (!strcmp(getUser($db, $mail)['estadmin'], 't')) {
require_once ('../ressources/navbaradminhtml.php'); require_once ('../ressources/navbaradminhtml.php');
} }
else { else {