-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsuccess.php
More file actions
36 lines (34 loc) · 1.42 KB
/
success.php
File metadata and controls
36 lines (34 loc) · 1.42 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
<?php
session_start();
error_reporting(0);
require "connexionSQL.php";
$new_psswrd=mysqli_real_escape_string($connexion, $_POST["checking"]);
$changed = "UPDATE users_infos SET password='".$new_psswrd."' WHERE email='".$_SESSION['oldemail']."' ";
$resultat = mysqli_query($connexion, $changed);
?>
<!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="icon" type="image/png" href="siteLogo1.png" sizes="120×120"/>
<title>Password reset successfully | MyChata</title>
<link rel="stylesheet" type="text/css" href="success.css">
</head>
<body>
<div id="missionCompleted">
<p>Your password has been changed successfully.</p>
<div class="success-animation">
<svg class="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52"><circle class="checkmark__circle" cx="26" cy="26" r="25" fill="none" /><path class="checkmark__check" fill="none" d="M14.1 27.2l7.1 7.2 16.7-16.8" /></svg>
</div>
<p> Now, you can login with your new password </p>
<a href="my_chata.php" id="a1">Go to login page.</a>
</div>
<script type="text/javascript">
function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);
window.onunload = function () { null };
</script>
</body>
</html>