D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
update-reset-password.php
back
Copy
<?php session_start(); include 'config.php'; $email = $_POST['email']; $pass = md5($_POST['password']); $sql = "UPDATE login_admin SET password='$pass' WHERE email = '$email'"; if ($conn->query($sql) === TRUE) { $_SESSION['reset'] = 'reset'; echo '<script>location.replace("index.php")</script>'; } else { $_SESSION['reseterror'] = 'reseterror'; echo '<script>location.replace("index.php")</script>'; } ?>