-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpass.php
More file actions
executable file
·79 lines (66 loc) · 3.68 KB
/
pass.php
File metadata and controls
executable file
·79 lines (66 loc) · 3.68 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
71
72
73
74
75
76
77
78
79
<?php
require_once("PHP/config.php");
if(!$_SESSION['user_emargement']['connected']){
header("Location: index.php");
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- School Icon -->
<link rel="icon" type="image/x-icon" href="image/favicon.ico">
<title>Zone01 - Émargement</title>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/alertify.min.css"/>
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
<link rel="stylesheet" href="CSS/user.css?v=2.0">
</head>
<body>
<div class="container mt-4">
<div class="row">
<div class="col-md-12">
<div class="card tabs">
<div id="errorLoggingStatut" class="alert alert-warning d-none"></div>
<div class="card-header tabs_sidebar">
<h4 class="welcome-user" id="download-button" style="display: inline"> Bienvenue <span id="user_pseudo"><?php echo($_SESSION['user_emargement']['pseudo']); ?></span></h4>
<h4 id="clock"></h4>
<div class="userInfo float-end">
<?php if($_SESSION['user_emargement']['admin']) { ?>
<button class="btn btn-info float-end deconnexion" onclick="location.href='crud.php'">Admin</button>
<?php }?>
<button class="btn btn-warning float-end deconnexion" onclick="location.href='pass.php'">Mot de passe</button>
<button class="btn btn-danger float-end deconnexion" onclick="location.href='actions/deco.php'">Deconnexion</button>
</div>
</div>
<div class="card-body tabs_content tabs_content_active" data-tab="1">
<a class="lostpwd" href="user.php" id="showLoginForm" style="text-decoration: none; color: white;">← Retour</a>
<br><br>
<div class="card-filter space-between">
<form id="changePasswordForm">
<label for="old_pass">Ancien mot de passe</label>
<input type="password" name="old_pass" id="old_pass" class="fill_input" required>
<label for="new_pass">Nouveau mot de passe</label>
<input type="password" name="new_pass" id="new_pass" class="fill_input" required>
<label for="new_pass_conf">Confirmer</label>
<input type="password" name="new_pass_conf" id="new_pass_conf" class="fill_input" required>
<br>
<input type="button" value="Changer mot de passe" id="changePasswordBtn" class="connexion">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/otplib@12.0.1"></script>
<script src="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/alertify.min.js"></script>
<script src="JS/pass.js?v=2.0"></script>
</body>
</html>