| Name | Size | Mode | Actions |
|---|---|---|---|
| config_loader.php | 963 | 0644 | editdlrm |
| CSRF_Protect.php | 2224 | 0644 | editdlrm |
| db_connect.php | 568 | 0644 | editdlrm |
| error.php | 485 | 0644 | editdlrm |
| firebase_auth.php | 6318 | 0644 | editdlrm |
| footer.php | 617 | 0644 | editdlrm |
| forgetpassword.php | 10825 | 0644 | editdlrm |
| forgetpassword_Bak.php | 7448 | 0644 | editdlrm |
| functions.php | 31330 | 0644 | editdlrm |
| geoiploc.php | 2520435 | 0644 | editdlrm |
| header.php | 1804 | 0644 | editdlrm |
| hex.php | 1050 | 0644 | editdlrm |
| hexbin.php | 942 | 0644 | editdlrm |
| login_page.php | 2993 | 0644 | editdlrm |
| logout.php | 870 | 0644 | editdlrm |
| migrate_last_activity.php | 1278 | 0644 | editdlrm |
| process_login.php | 2119 | 0644 | editdlrm |
| psl-config-Bak.php | 1213 | 0644 | editdlrm |
| psl-config.php | 1883 | 0644 | editdlrm |
| reset.php | 6537 | 0644 | editdlrm |
/home/techb158/workloadmatch.com/includes/reset.php (6537B)
Invalid password configuration.
'; } $password = password_hash($password, PASSWORD_BCRYPT); $date = date('Y/m/d H:i'); $token = $_SESSION['token']; $tok_stmt = $mysqli->prepare("SELECT * FROM tokens WHERE token = ? AND used = '0'"); if ($tok_stmt) { $tok_stmt->bind_param('s', $token); $tok_stmt->execute(); $result = $tok_stmt->get_result(); $row = $result->fetch_assoc(); $tok_stmt->close(); } if (!$row) { set_flash_msg('Invalid token!', 'warning'); header('Location: reset.php'); exit(); } $email=$row['email']; $users_name=$row['userid']; $used=$row['used']; $Admin_ID = $row['Admin_ID']; $Manager_ID = $row['Manager_ID']; $Master_ID = $row['Master_ID']; $Teacher_ID = $row['Teacher_ID']; If($userid == $email && $used == 0){ $prof_stmt = $mysqli->prepare("SELECT * FROM teacher_profile WHERE Admin_ID = ? AND Master_ID = ? AND Manager_ID = ? AND Teacher_ID = ? AND Email = ? AND User_Name = ?"); if ($prof_stmt) { $prof_stmt->bind_param('ssssss', $Admin_ID, $Master_ID, $Manager_ID, $Teacher_ID, $email, $users_name); $prof_stmt->execute(); $result = $prof_stmt->get_result(); $Admin = $result->fetch_assoc(); $prof_stmt->close(); } $Username = $Admin ? $Admin['Teacher_ID'] : 0; //header('Location: reset.php?error='. $mysqli->error . '-'.$token); //header('Location: reset.php?error='. $mysqli->error . '-'.$email); //exit(); if($Username > 0){ $se="1"; $upd_stmt = $mysqli->prepare("UPDATE teacher_profile SET Password = ? WHERE Teacher_ID = ? AND Admin_ID = ? AND Master_ID = ? AND Manager_ID = ? AND Email = ?"); if (!$upd_stmt) { set_flash_msg('Password Update is failed!', 'warning'); header('Location: reset.php'); exit(); } $upd_stmt->bind_param('ssssss', $password, $Teacher_ID, $Admin_ID, $Master_ID, $Manager_ID, $email); if (!$upd_stmt->execute()) { set_flash_msg('Password Update is failed!', 'warning'); header('Location: reset.php'); exit(); } $upd_stmt->close(); $upd_stmt2 = $mysqli->prepare("UPDATE tokens SET used = ?, update_date = ? WHERE token = ?"); if (!$upd_stmt2) { set_flash_msg('Password Update is failed!', 'warning'); header('Location: reset.php'); exit(); } $upd_stmt2->bind_param('sss', $se, $date, $token); if (!$upd_stmt2->execute()) { set_flash_msg('Password Update is failed!', 'warning'); header('Location: reset.php'); exit(); } $upd_stmt2->close(); $url = "http://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; $subject = "Your Password Updated"; $uri = 'https://'. $_SERVER['HTTP_HOST'] ; $message = 'Dear User,
"'."Thank you for choosing Workloadmatch. - Your password has been updated.".'"