Commit 6ad7e50c authored by Okthane's avatar Okthane

general

parents
Pipeline #1142 failed with stages
# iMangerMieux
Ce projet consiste à créer un site web qui permet de suivre ses consommations journalières.
Afin de tester efficacement ce site web, vous pouvez vous identifier avec le login suivant :
..* login : maya.didon@etu.imt-lille-douai.fr
La pagination de la page Aliments marchait correctement avant de faire les requêtes ajax avec le back.
On a donc décidé de se concentrer sur le reste du site plutôt que de refaire le back et le front pour y remédier.
<?php
$config = include('config.php');
$conn= mysqli_connect($config['database'], $config['username'], $config['password'], $config['dbname']);
if($conn == false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$array = array('energie','eau','proteines','glucides','lipides','sucres','glucose','fibres_alimentaires','cholesterol','calcium','fer','iode','magnesium','phosphore','potassium','sodium','vitamines_d','vitamines_e','vitamines_k1','vitamines_c','vitamines_b1','vitamines_b2','vitamines_b3','vitamines_b5','vitamines_b6','vitamines_b9','vitamines_b12');
if(isset($_POST['label'] )){
$label = $_POST['label'];
}
if(isset($_POST['type'] )){
$type = $_POST['type'];
}
if($_POST['crud']=='ajout'){
$sql = "INSERT INTO food (FOOD_LABEL,TYPE_) VALUES ('${label}','${type}')";
if(mysqli_query($conn, $sql)){
echo "Records added successfully.\n";
}
else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($conn)."\n";
}
$result= mysqli_query($conn, "SELECT ID_FOOD FROM food WHERE FOOD_LABEL='${label}'");
$id_food_1 = mysqli_fetch_array($result,MYSQLI_NUM);
$id_food = $id_food_1[0];
for($i=1;$i<=27;$i++){
$nut=$array[$i-1];
if(!empty($_POST[$nut] )){
$ratio = $_POST[$nut];
$sql_nut = "INSERT INTO to_provide (FOOD_ID,NUTRIENT_ID,RATIO) VALUES ('${id_food}','${i}','${ratio}')";
if(mysqli_query($conn, $sql_nut)){
echo "Records added successfully.";
}
else{
echo "ERROR: Could not able to execute $sql_nut. " . mysqli_error($conn)."\n";
}
}
}
}
else{
$result= mysqli_query($conn, "SELECT ID_FOOD FROM food WHERE FOOD_LABEL='${label}'");
$id_food_1 = mysqli_fetch_array($result,MYSQLI_NUM);
$id_food = $id_food_1[0];
}
if($_POST['crud']=='modif'){
$sql = "UPDATE food SET FOOD_LABEL='${label}',TYPE_= '${type}' WHERE FOOD_LABEL='${label}'";
for($i=1;$i<=27;$i++){
$nut=$array[$i-1];
if(!empty($_POST[$nut])){
$ratio = $_POST[$nut];
$sql_nut = "UPDATE to_provide SET FOOD_ID ='${id_food}',NUTRIENT_ID='${i}',RATIO='${ratio}' WHERE FOOD_ID='${id_food}'";
if(mysqli_query($conn, $sql_nut)){
echo "Records added successfully.";
}
else{
echo "ERROR: Could not able to execute $sql_nut. " . mysqli_error($conn)."\n";
}
}
}
}
?>
\ No newline at end of file
<?php
header('Content-Type: application/json');
$config = include('config.php');
$conn= mysqli_connect($config['database'], $config['username'], $config['password'], $config['dbname']);
if($conn == false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
//$array = array('energie','eau','proteines','glucides','lipides','sucres','glucose','fibres_alimentaires','cholesterol','calcium','fer','iode','magnesium','phosphore','potassium','sodium','vitamines_d','vitamines_e','vitamines_k1','vitamines_c','vitamines_b1','vitamines_b2','vitamines_b3','vitamines_b5','vitamines_b6','vitamines_b9','vitamines_b12');
if(isset($_POST['label'] )){
$label = $_POST['label'];
}
if(isset($_POST['date'] )){
$date = $_POST['date'];
}
if(isset($_POST['aliments'] )){
$aliments = $_POST['aliments'];
}//Pas réussi à exporter les ingrédients de chaque repas
if($_POST['crud']=='ajout'){
$sql = "INSERT INTO meal (MEAL_LABEL,DATE) VALUES ('${label}','${date}')";
if(mysqli_query($conn, $sql)){
echo "Records added successfully.\n";
}
else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($conn)."\n";
}
$result= mysqli_query($conn, "SELECT MAX(ID_MEAL) FROM meal");
for ($i=0;$i<sizeof($aliments);i++)
{
$id = $aliments[0];
$quantite = $aliments[0];
$sql_ali= "INSERT INTO to_contain (FOOD_ID,ID_MEAL,QUANTITY) VALUES ('${id}','${result}','${quantite}')";
if(mysqli_query($conn, $sql_ali)){
echo "Records added successfully.";
}
else{
echo "ERROR: Could not able to execute $sql_nut. " . mysqli_error($conn)."\n";
}
}
}
else{
$result= mysqli_query($conn, "SELECT ID_FOOD FROM food WHERE FOOD_LABEL='${label}'");
$id_food_1 = mysqli_fetch_array($result,MYSQLI_NUM);
$id_food = $id_food_1[0];
}
?>
\ No newline at end of file
<?php
header('Content-Type: application/json');
$config = include('config.php');
$conn= mysqli_connect($config['database'], $config['username'], $config['password'], $config['dbname']);
if($conn == false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
if (!mysqli_set_charset($conn, "utf8")) {
printf("Erreur lors du chargement du jeu de caractères utf8 : %s\n", mysqli_error($link));
exit();
}
$sql2 = mysqli_query($conn,"SELECT DISTINCT(COUNT(NUTRIENT_ID)) FROM nutrient_intake");
$n = mysqli_fetch_all($sql2);
$numberOfNutrients = $n[0][0];
$sql=mysqli_query($conn,"SELECT food.FOOD_LABEL,food.TYPE_, nutrient_intake.NUTRIENT_NAME, to_provide.RATIO FROM food JOIN to_provide ON food.ID_FOOD = to_provide.FOOD_ID JOIN nutrient_intake ON to_provide.NUTRIENT_ID = nutrient_intake.NUTRIENT_ID ORDER BY food.FOOD_LABEL ASC");
$result = mysqli_fetch_all($sql);
$sql3 = mysqli_query($conn,"SELECT DISTINCT(COUNT(ID_FOOD)) FROM food");
$f = mysqli_fetch_all($sql3);
$numberOfFood = $f[0][0];
$tableauAliments = array();
$k = 0;
for($i=0;$i<sizeof($result)-$numberOfNutrients;$i=$i+$numberOfNutrients)
{
$label=$result[$i][0];
$type=$result[$i][1];
$row = array();
array_push($row,$label);array_push($row,$type);
for($j=$i;$j<$i+$numberOfNutrients;$j++)
{
$nutr = $result[$j][3];
$row[] = $nutr;
}
array_push($tableauAliments,$row);
$k++;
}
$json = json_encode($tableauAliments,JSON_FORCE_OBJECT);
echo $json;
?>
\ No newline at end of file
<?php
return array(
'database' => 'localhost',
'username' => 'root',
'password' => '',
'dbname' => 'imangermieux'
);
?>
\ No newline at end of file
<?php
$config = include('config.php');
session_start();
$conn= mysqli_connect($config['database'], $config['username'], $config['password'], $config['dbname']);
if($conn == false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$login=$_SESSION['login'];
$sqlcal=mysqli_query($conn,"SELECT SUM(to_provide.RATIO), meal.DATE FROM to_provide JOIN nutrient_intake ON nutrient_intake.NUTRIENT_ID=to_provide.NUTRIENT_ID JOIN food ON food.ID_FOOD=to_provide.FOOD_ID JOIN to_contain ON food.ID_FOOD=to_contain.FOOD_ID JOIN meal ON meal.ID_MEAL=to_contain.ID_MEAL WHERE meal.LOGIN='$login' AND nutrient_intake.NUTRIENT_ID=1 AND meal.DATE > (NOW() - INTERVAL 1 WEEK) GROUP BY meal.DATE");
$resultcal=mysqli_fetch_all($sqlcal);
$cal=array(
date('Y-m-d')=>0,
date('Y-m-d', time()-86400)=>0,
date('Y-m-d', time()-(2*86400))=>0,
date('Y-m-d', time()-(3*86400))=>0,
date('Y-m-d', time()-(4*86400))=>0,
date('Y-m-d', time()-(5*86400))=>0,
date('Y-m-d', time()-(6*86400))=>0,
date('Y-m-d', time()-(7*86400))=>0,
);
foreach ($resultcal as $value){
$cal[$value[1]] += $value[0];
};
echo(json_encode($cal))
?>
\ No newline at end of file
<?php
session_start();
$config = include('config.php');
$conn= mysqli_connect($config['database'], $config['username'], $config['password'], $config['dbname']);
if($conn == false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$login=$_SESSION['login'];
$sqlfruit=mysqli_query($conn,"SELECT SUM(to_contain.QUANTITY) FROM food JOIN to_contain ON food.ID_FOOD=to_contain.FOOD_ID JOIN meal ON to_contain.ID_MEAL=meal.ID_MEAL WHERE meal.login='$login' AND (food.TYPE_='fruits' OR food.TYPE_='legumes') AND meal.DATE > (NOW() - INTERVAL 1 WEEK)");
$resultfruit=mysqli_fetch_all($sqlfruit);
$nombrefruit=$resultfruit[0][0];
echo(json_encode($nombrefruit));
?>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>iMangerMieux API</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- CSS -->
<link rel="stylesheet" href="restapi.css">
<meta charset="utf-8">
</head>
<body>
<h1 class="title">iMangerMieux API</h1>
<br>
<br>
<h3>Authors : DIDON Maya & MARQUE Pierre</h3>
<h3>2021-04-06</h3>
<br>
<br>
<h2>Prefix of all Root Endpoints</h2>
<p>The API is always prefixed by : </p>
<p>http://localhost/IDAW-projet/backend</p>
<br>
<h2>Authentification</h2>
<p>No authentification.</p>
<br>
<h2>Parameters</h2>
<p>All parameters are optional and without them the API will just return all aliments, users or consumptions in ascending order from their ID. Parameters are passed in as a query string and can be chained together.</p>
<br>
<h2>Possible actions for users of the API</h2>
<p>Several filters can be applied using url paramaters. Available options are listed below. </p>
<h3>Aliments</h3>
<table class="table">
<caption>Possible actions with aliments</caption>
<thead>
<tr>
<th>Action</th>
<th>Endpoint</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>READ</td>
<td>aliments.php</td>
<td>Returns the list of aliments ordered alphabetically.</td>
</tr>
<tr>
<td>CREATE</td>
<td>addFood.php</td>
<td>Create an aliment. Users must provide all of the nutritional fields</td>
</tr>
<tr>
<td>UPDATE</td>
<td>addFood.php</td>
<td>Update an aliment. Users must provide all of the nutritional fields</td>
</tr>
<tr>
<td>DELETE</td>
<td>suppFood.php</td>
<td>Delete aliment</td>
</tr>
</tbody>
</table>
<br>
<h3>Meals</h3>
<p>The API's main role concerning the meals is to record the meals taken throughout the usage of the site.</p>
<table class="table">
<caption>Possible actions with meals</caption>
<thead>
<tr>
<th>Action</th>
<th>Endpoint</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>READ</td>
<td>journal.php</td>
<td>Returns the list of all meals.</td>
</tr>
<tr>
<td>CREATE</td>
<td>addMeal.php</td>
<td>Create a meal. Users must provide all of the indicated fields.</td>
</tr>
<tr>
<td>UPDATE</td>
<td>addMeal.php</td>
<td>Update a meal. Users must provide all of the indicated fields.</td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
body{
margin-left: 10%;
margin-right: 10%;
}
h2{
text-align: center;
font-weight: bold;
}
caption{
text-align: center;
}
.title{
text-align: center;
font-weight: bold;
font-size: 5em;
}
<?php
header('Content-Type: application/json');
$config = include('config.php');
$conn= mysqli_connect($config['database'], $config['username'], $config['password'], $config['dbname']);
if($conn == false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
if (!mysqli_set_charset($conn, "utf8")) {
printf("Erreur lors du chargement du jeu de caractères utf8 : %s\n", mysqli_error($link));
exit();
}
if(isset($_POST['login'] )){
$login = $_POST['login'];
}
//echo $login;
$sql = mysqli_query($conn,"SELECT meal.MEAL_LABEL, meal.DATE, meal.ID_MEAL FROM meal WHERE meal.LOGIN = '${login}'");
$result = mysqli_fetch_all($sql);
$tableauAliments = array();
for($i=2;$i<sizeof($result);$i++)
{
$label=$result[$i][0];
$date=$result[$i][1];
$id=$result[$i][2];
$row = array();
array_push($row,$label);array_push($row,$date);array_push($row,$id);
array_push($tableauRepas,$row);
}
$json = json_encode($tableauRepas);
//echo $json;
?>
\ No newline at end of file
<?php
$config = include('config.php');
$conn= mysqli_connect($config['database'], $config['username'], $config['password'], $config['dbname']);
if($conn == false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
if(isset($_POST['label'] )){
$label = $_POST['label'];
}
$sql = "DELETE FROM food WHERE FOOD_LABEL ='${label}'";
if(mysqli_query($conn, $sql)){
echo "Records deleted successfully.";
} else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($conn);
}
?>
\ No newline at end of file
<?php
$config = include('config.php');
$conn= mysqli_connect($config['database'], $config['username'], $config['password'], $config['dbname']);
if($conn == false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
if(isset($_POST['label'] )){
$label = $_POST['label'];
}
$sql = "DELETE FROM meal WHERE MEAL_LABEL ='${label}'";
if(mysqli_query($conn, $sql)){
echo "Records deleted successfully.";
} else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($conn);
}
?>
\ No newline at end of file
This diff is collapsed.
<?php
$conn= mysqli_connect("localhost", "root", "", "imangermieux");
$sql="SELECT LOGIN, FIRSTNAME FROM user";
$result=$conn->query($sql);
$errorText="";
$successfullyLogged=false;
if(isset($_POST['login'])){
$tryLogin=$_POST['login'];
while($data=mysqli_fetch_array($result)){
if($data['LOGIN']==$tryLogin){
$login=$tryLogin;
$name=$data['FIRSTNAME'];
$successfullyLogged=true;
}
}
}
else{
$errorText="Merci d'utiliser le formulaire de login";
}
if(!$successfullyLogged){
echo $errorText;
}
else{
session_start();
$_SESSION['login']=$login;
$_SESSION['firstname']=$name;
echo "
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<link rel='stylesheet' href='css/crud2.css' type='text/css' media='screen' title='default' charset='utf-8' />
<title>TP3</title>
</head>
<body>";
require_once('navbar.php');
echo "<h1>Bienvenue $name !</h1>
</body>
</html>";
}
?>
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
/*!
* Bootstrap Reboot v4.5.3 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors
* Copyright 2011-2020 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
display: block;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
}
[tabindex="-1"]:focus:not(:focus-visible) {
outline: 0 !important;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 0.5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
-webkit-text-decoration-skip-ink: none;
text-decoration-skip-ink: none;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: .5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
a {
color: #007bff;
text-decoration: none;
background-color: transparent;
}
a:hover {
color: #0056b3;
text-decoration: underline;
}
a:not([href]):not([class]) {
color: inherit;
text-decoration: none;
}
a:not([href]):not([class]):hover {
color: inherit;
text-decoration: none;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 1em;
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
-ms-overflow-style: scrollbar;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
border-style: none;
}
svg {
overflow: hidden;
vertical-align: middle;
}
table {
border-collapse: collapse;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #6c757d;
text-align: left;
caption-side: bottom;
}
th {
text-align: inherit;
text-align: -webkit-match-parent;
}
label {
display: inline-block;
margin-bottom: 0.5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
[role="button"] {
cursor: pointer;
}
select {
word-wrap: normal;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
cursor: pointer;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type="radio"],
input[type="checkbox"] {
box-sizing: border-box;
padding: 0;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
outline-offset: -2px;
-webkit-appearance: none;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
/*# sourceMappingURL=bootstrap-reboot.css.map */
\ No newline at end of file
This diff is collapsed.
/*!
* Bootstrap Reboot v4.5.3 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors
* Copyright 2011-2020 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([class]){color:inherit;text-decoration:none}a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit;text-align:-webkit-match-parent}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body{
text-align: center;
align-items: center;
}
form{
margin: 0 auto;
padding: 10px;
text-align: justify;
}
.container{
display:flex;
padding-top: 60px;
}
img{
width: 300px;
padding: 50px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #75dff2;
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<?php
session_start();
session_unset();
session_destroy();
echo "<h1> Vous êtes déconnecté </h1>";
echo "<a href='index.php'>Se connecter</a>";
?>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment