<?php
require_once('../library.php');
 if(isset($_GET['em']) && $_GET['ip'] == 'fd62b6b32557a22a8682d674ec478407' ){

}else{
    header("location:../");
} 

if(isset($_POST['submit'])){
   $msg = $lib->passwordReset($_POST['w-email'],$_POST['n-pass'],$_POST['c-pass']);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Reset Password</title>
</head>
<body>
<form action="" enctype="multipart/form-data" method="post">
    <div style="text-align: center; ">
        <label class="  text-left">
            <strong><a href="">Password Recovery</a></strong> 
        </label><br><br>
    <div class="form-group col-lg-12">
        <label class="text-left"><strong>Enter Your New Password</strong> </label><br>
        <div class="col-lg-12 " style="color:red;"><?php print @$msg;?></div><br><br>
              <div class="col-lg-12">
                 <input type="text" name="w-email" value="<?php print $_GET['em']; ?>" class="form-control" id="w-email" placeholder="">
              </div>
              <div class="col-lg-12">
                 <input type="password" name="n-pass" value="" class="form-control" id="n-pass" placeholder="New Password">
              </div>
              <div class="col-lg-12">
                 <input type="password" name="c-pass" value="" class="form-control" id="c-pass" placeholder="Confirm Password">
              </div>
        </div>
        <div class="form-group col-lg-10 ">
            <div class=" ">
                <button type="submit" name="submit" class="btn btn-primary bg-blck btn-acct">
                    <i class="fa fa-tasks"></i>&nbsp;Reset&nbsp;</button>
            </div>
        </div>
    </div>
</form>
</body>
</html>