| Current Path : /hdd/hdd11/www/vlevski/e/ |
| Current File : /hdd/hdd11/www/vlevski/e/sndrestore.php |
<?php
if(isset($_POST["umail"]))
{
$m=$_POST["umail"];
$p=$_POST["respass"];
$p=sha1($p);
$t=time();
include("./conn.php");
$updateq=mysqli_query($db, "UPDATE `usrs` SET `ps`='".$p."' WHERE `un`='".$m."'");
$delq=mysqli_query($db, "DELETE FROM `rp` WHERE `e`='".$m."'");
if ($updateq && $delq)
{
print("OK");
}
else
{
print("ERR");
}
}
?>