-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbravo.php
More file actions
70 lines (55 loc) · 2.1 KB
/
bravo.php
File metadata and controls
70 lines (55 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
include_once("varSession.inc.php");
$_SESSION['ici_index_bool'] = true;
$_SESSION['ici_contact_bool'] = false;
$_SESSION['ici_sign_bool'] = false;
if(isset($_GET['n']) && !empty($_GET['n'])) {
extract($_GET);
$pseudo = $_SESSION['user_pseudo'];
$n = (int) $n;
switch($n) {
case 1 : $mess = "Votre message a bien été envoyé ! Vous allez être redirigé vers l'index..."; $refresh = 4; break;
case 2 : $mess = "L'inscription c'est bien passé ! Vous allez être redirigé vers la page d'accueil... Bienvenue <b> $pseudo </b> :) "; $refresh = 6;break;
case 3 : $mess = "Votre commande à bien été pris en compte, et votre colis est en cours de route ! Votre panier a été vidé. Vous allez être redirigé vers la page d'accueil... :) "; $refresh = 8;break;
default : $mess = "?"; $refresh = 3;break;
}
} else {
header('HTTP/1.0 404 Not Found');
exit();
}
if(!isset($mess)) {
header('HTTP/1.0 404 Not Found');
exit();
}
header( "refresh:$refresh;url=index.php" );
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- ===== CSS ===== -->
<link rel="stylesheet" href=" css/bravo.css">
<link rel="icon" href="img/icon.ico" />
<!-- ===== BOX ICONS ===== -->
<script src="https://kit.fontawesome.com/64d58efce2.js" crossorigin="anonymous"></script>
<title>C'est bon ! | Rodav Dalí</title>
</head>
<body onload="Loading()">
<img src="img/valided.png" alt="ok" class="center" width="50">
<div class="container"><p class="mess"><?=$mess ?></p></div>
<div id="cover" class="cover">
<div id="loading" class="ui-circle-loading">
<ul class="animate">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
</body>
</html>