-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforgot.php
34 lines (34 loc) · 1.05 KB
/
forgot.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
<?php
session_start();
if (isset($_SESSION['id']))
header('Location: /');
require_once 'Autoloader.php';
Autoloader::register();
require_once $_SERVER['DOCUMENT_ROOT'] . '/config/database.php';
$db = new Database($DB_DSN, $DB_USER, $DB_PASSWORD);
$db->connect("camagru");
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Camagru - Oubli de mot de passe</title>
<link rel="stylesheet" type="text/css" href="resources/css/style.css">
<meta name=""viewport content="width=device-width"/>
<link rel="shortcut icon" href="/favicon.ico">
</head>
<body>
<?php include_once 'resources/partials/header.php'; ?>
<br>
<div class="container">
<form action="#" method="POST" id="forgot">
<input type="text" placeholder="Email" name="email" id="email">
<input type="submit" id="submit" value="Demande de mot de passe" disabled>
</form>
<div class="res" id="res"></div>
</div>
<?php include_once 'resources/partials/footer.php'?>
<script src="resources/js/ajax.js"></script>
<script src="resources/js/forgot.js"></script>
</body>
</html>