Commit 64c101bdc95d4dbe337e999ca6f457344b3d9443
1 parent
dd22c39c
MAJ
Showing
1 changed file
with
39 additions
and
10 deletions
Show diff stats
site/stop.php
1 | <?php | 1 | <?php |
2 | require_once("accesBase.php"); | 2 | require_once("accesBase.php"); |
3 | -include("data.php"); | ||
4 | 3 | ||
5 | $arduino_simple = "[Arduino]\r\n"; | 4 | $arduino_simple = "[Arduino]\r\n"; |
6 | $arduino_spi = "[Arduino]\r\n"; | 5 | $arduino_spi = "[Arduino]\r\n"; |
@@ -48,14 +47,44 @@ for($i = 0; $i<$size; $i++) | @@ -48,14 +47,44 @@ for($i = 0; $i<$size; $i++) | ||
48 | $ansible = $ansible.$retour[$i]."<br/>"; | 47 | $ansible = $ansible.$retour[$i]."<br/>"; |
49 | } | 48 | } |
50 | 49 | ||
50 | +session_start(); | ||
51 | ?> | 51 | ?> |
52 | -<div class="alert <?php echo $color;?>" role="alert"> | ||
53 | - <?php echo $message;?> | ||
54 | -</div> | ||
55 | -<div class="alert alert-secondary" role="alert"> | ||
56 | - <?php echo $ansible;?> | ||
57 | -</div> | 52 | +<!DOCTYPE html> |
53 | + | ||
54 | +<html> | ||
55 | + <head> | ||
56 | + <?php include("head.php"); ?> | ||
57 | + </head> | ||
58 | + | ||
59 | + <!-- Contenu du site --> | ||
60 | + <body> | ||
61 | + <?php | ||
62 | + include("header.php"); | ||
63 | + if(isset($_SESSION['Login'], $_SESSION['Password'])) | ||
64 | + { | ||
65 | + ?> | ||
66 | + <div class="row"> | ||
67 | + <div class="col-6 col-md-6 offset-md-3 offset-3"> | ||
68 | + <br/> | ||
69 | + <h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-history"></i> Arrêt d'un capteur</h1> | ||
70 | + | ||
71 | + | ||
72 | + <div class="alert <?php echo $color;?>" role="alert"> | ||
73 | + <?php echo $message;?> | ||
74 | + </div> | ||
75 | + <div class="alert alert-secondary" role="alert"> | ||
76 | + <?php echo $ansible;?> | ||
77 | + </div> | ||
78 | + <meta http-equiv="Refresh" content="5;url=gestionCapteur.php" /> | ||
79 | + </div> | ||
80 | + </div> | ||
81 | + <?php | ||
82 | + } | ||
83 | + else | ||
84 | + { | ||
85 | + include("formConnexion.php"); | ||
86 | + } | ||
87 | + ?> | ||
88 | + </body> | ||
89 | +</html> | ||
58 | 90 | ||
59 | -<?php | ||
60 | -//header("Location: data.php"); | ||
61 | -?> |