| Name | Size | Mode | Actions |
|---|---|---|---|
| CSRF_Protect.php | 2188 | 0644 | editdlrm |
| db_connect.php | 694 | 0644 | editdlrm |
| error.php | 451 | 0644 | editdlrm |
| error_log | 2418 | 0644 | editdlrm |
| forgetpassword.php | 6831 | 0644 | editdlrm |
| functions.php | 24162 | 0644 | editdlrm |
| geoiploc.php | 2520435 | 0644 | editdlrm |
| hex.php | 1050 | 0644 | editdlrm |
| hexbin.php | 942 | 0644 | editdlrm |
| logout.php | 794 | 0644 | editdlrm |
| process_login.php | 2884 | 0644 | editdlrm |
| process_login_Remove rechaptcha.php | 2891 | 0644 | editdlrm |
| psl-config.php | 1687 | 0644 | editdlrm |
| register.inc.php | 3304 | 0644 | editdlrm |
| register.php | 26322 | 0644 | editdlrm |
| reset.php | 6154 | 0644 | editdlrm |
/home/techb158/workloadmatch.com/workloadmatch.com/includes/reset.php (6154B)
Invalid password configuration.
'; } $random_salt = hash('sha512', uniqid(openssl_random_pseudo_bytes(16), TRUE)); $password = hash('sha512', $password . $random_salt); $date = date('Y/m/d H:i'); $token = $_SESSION['token']; //$str =$_GET['token']; //$_GET["token"] = 0; // //$myArray = explode(',', $str); //$token = encrypt_decrypt('decrypt', $myArray[0]); //header('Location: reset.php?error='. $token); //exit(); $querys = "SELECT * FROM tokens where token='".$token."' and used='0'"; $results = $mysqli->query($querys); $row = $results->fetch_assoc(); $email=$row['email']; //$tokens=encrypt_decrypt('decrypt', $row['token']); $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){ $query = "SELECT * FROM Teacher_Profile where Admin_ID ='".$Admin_ID."' and Master_ID ='".$Master_ID."' and Manager_ID ='".$Manager_ID."' and Teacher_ID ='".$Teacher_ID."' and Email ='".$email."' and User_Name ='".$users_name."'"; $result = $mysqli->query($query); $Admin = $result->fetch_assoc(); $Username = $Admin['Teacher_ID']; //header('Location: reset.php?error='. $mysqli->error . '-'.$token); //header('Location: reset.php?error='. $mysqli->error . '-'.$email); //exit(); if($Username > 0){ $se="1"; if (!$mysqli->query("UPDATE Teacher_Profile SET Password ='$password', salt='$random_salt' WHERE Teacher_ID ='".$Teacher_ID."' and Admin_ID ='".$Admin_ID."' and Master_ID ='".$Master_ID."' and Manager_ID ='".$Manager_ID."' and Email ='".$email."'")) { header('Location: reset.php?error=Password Update is failed!'); exit(); } if (!$mysqli->query("UPDATE tokens SET used='".$se."', update_date='".$date."' WHERE token='".$token."'")) { header('Location: reset.php?error=Password Update is failed!'); exit(); } $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.".'"