-
Notifications
You must be signed in to change notification settings - Fork 0
/
fpemail.php
65 lines (51 loc) · 2.81 KB
/
fpemail.php
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
<?php include "dbLogic.php";
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
if (isset($_SESSION['loggedin']) && $_SESSION['loggedin']){
header("Location: index.php");
exit();
}
?>
<?php require_once('partials/header.php') ?>
<link rel="stylesheet" href="static/css/style.css?v=<?php echo time(); ?>">
<title>BlogIt - Reset</title>
</head>
<body style = "background-color: #ece9e9;">
<!-- Navbar -->
<?php include('partials/navbar.php')?>
<?php include('partials/menuLinks.php')?>
<?php if (isset($_REQUEST['info'])){ ?>
<?php if($_REQUEST['info'] == 'invalid') { ?>
<div class="alert error-dailog" id="alert">
This email is not registered!
<svg id="close-btn" onclick= closeFunction() xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm4.151 17.943l-4.143-4.102-4.117 4.159-1.833-1.833 4.104-4.157-4.162-4.119 1.833-1.833 4.155 4.102 4.106-4.16 1.849 1.849-4.1 4.141 4.157 4.104-1.849 1.849z"/></svg>
</div>
<?php } elseif ($_REQUEST['info'] == 'sent') { ?>
<div class="alert success-dailog" id="alert">
Email sent!
<svg id="close-btn" onclick= closeFunction() xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm4.151 17.943l-4.143-4.102-4.117 4.159-1.833-1.833 4.104-4.157-4.162-4.119 1.833-1.833 4.155 4.102 4.106-4.16 1.849 1.849-4.1 4.141 4.157 4.104-1.849 1.849z"/></svg>
</div>
<?php } elseif ($_REQUEST['info'] == 'expired') { ?>
<div class="alert error-dailog" id="alert">
The password reset link has expired
<svg id="close-btn" onclick= closeFunction() xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm4.151 17.943l-4.143-4.102-4.117 4.159-1.833-1.833 4.104-4.157-4.162-4.119 1.833-1.833 4.155 4.102 4.106-4.16 1.849 1.849-4.1 4.141 4.157 4.104-1.849 1.849z"/></svg>
</div>
<?php } ?>
<?php } ?>
<form class="login-form" method = "POST" autocomplete="off">
<span class="login-signup-header"><i class="fas fa-user-plus"></i> Password Reset</span>
<div class="field">
<input
name = 'pass_email'
type="email"
placeholder="Enter your email..."
required
autocomplete = 'off'
/>
</div>
<div>
<button name = "new_pass" id='add-post-btn'>Submit</button>
</div>
</form>
<?php require_once('partials/footer.php') ?>