2020-10-02 17:02:20 +08:00
|
|
|
<?php
|
2023-08-01 17:02:33 +08:00
|
|
|
include 'NoDirectPhpAcess.php';
|
2020-10-02 17:02:20 +08:00
|
|
|
?>
|
|
|
|
|
2020-03-16 15:23:14 +08:00
|
|
|
<?php
|
|
|
|
include 'Header.php';
|
|
|
|
?>
|
|
|
|
|
2023-08-10 22:41:59 +08:00
|
|
|
<br><br><br>
|
2020-09-26 20:08:39 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
<div class="container">
|
2023-08-10 22:41:59 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-5"></div>
|
|
|
|
<div class="col-md-5">
|
2023-08-06 17:43:36 +08:00
|
|
|
<form method="post" action="Script.php">
|
2023-08-10 22:41:59 +08:00
|
|
|
<legend>Recover password</legend>
|
2023-09-03 20:42:15 +08:00
|
|
|
<input type="hidden" name="form_recover_password" value="true"/>
|
2023-08-10 22:41:59 +08:00
|
|
|
Student number
|
|
|
|
<input type="text" name="sno" placeholder="Enter your student number" class="form-control" required="required" value="<?php echo htmlspecialchars($_SESSION['student_number']); ?>"> <br/>
|
|
|
|
Email
|
|
|
|
<input type="text" name="email" placeholder="Enter your email address" class="form-control" required="required" value="<?php echo htmlspecialchars($_SESSION['user_email']); ?>"> <br/>
|
2023-08-06 17:43:36 +08:00
|
|
|
<button type="submit" class="btn btn-primary">Recover</button>
|
|
|
|
</form>
|
2023-08-01 17:02:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-08-06 17:43:36 +08:00
|
|
|
|
2023-08-10 22:41:59 +08:00
|
|
|
<?php
|
2023-08-06 17:43:36 +08:00
|
|
|
if(isset($_SESSION['info_recover_password'])) {
|
|
|
|
echo '<hr><div class="alert alert-danger" role="alert">'.htmlspecialchars($_SESSION['info_recover_password']).'</div>';
|
|
|
|
$_SESSION['info_recover_password'] = null;
|
|
|
|
}
|
|
|
|
?>
|
2020-12-25 21:41:34 +08:00
|
|
|
|
2023-08-01 17:02:33 +08:00
|
|
|
</div>
|
2023-08-08 15:02:26 +08:00
|
|
|
|