 <?php 
 
 echo "Ade";
/*require "buiapp/phpClasses/phpmailer/PHPMailerAutoload.php";
function connect(){
$dbc = mysqli_connect("localhost", "sshuujin_bowenapp", "80622BOWen") or die('No server');
	mysqli_select_db($dbc, "sshuujin_bowensshub_v2") or die('No db');
	return $dbc;

}

echo "Ade";
$userkey  = $_POST['username'];
$dbc= connect();

session_start();
$key = $_SESSION['key'];

$bui = $_SESSION['user']; 

echo "Generated key is $key<br> Supplied key is $userkey";


if($userkey != $key){
//    echo "
  //  <script ='text/javascript'>
    //alert('Incorrect Reset Key');
    //window.location.replace('forgotpassword.php');
    //</script>
    
    //";
}


if(isset($_POST['changepassword'])){
    $dbc = connect();
    $password = $_POST['username'];
    $query = "UPDATE staffs SET password='$password' WHERE staffsId='$bui'";
    $run = mysqli_query($dbc, $query);
     echo "
    <script ='text/javascript'>
    alert('Password Change Successful');
    window.location.replace('index.php');
    </script>
    
    ";
    
}
*/
?>





<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Bowen University</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="plugins/iCheck/square/blue.css">
 
<script src="bower_components/jquery/dist/jquery.min.js"></script>
  <script src="buiapp/js/modernizr.custom.js"></script>


  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page">
<div class="login-box">
  <div class="login-logo">
    <a href="index.html"><img src="images/logo.png" width="70%"></a>
  </div>
  <!-- /.login-logo -->
  <div class="login-box-body">
    <p class="login-box-msg">Enter New Password</p>
<div class="alert alert-danger" role="alert" id="error" style="display: none;">...</div>



   













    <form  id="staff-login-form" name="login_form" role="form" method="post" action="verify.php">
      <div class="form-group has-feedback">
        <input id="username"  required="" type="password" class="form-control" placeholder="New Password" name="username"/>
        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
      </div>
    
      <div class="row">
     
        <!-- /.col -->
        <div class="col">
          <button type="submit" name="changepassword" id="login-submit" class="btn btn-primary btn-block ">Change Password</button>
        </div>
      
        <!-- /.col -->
      </div>
    </form>

   
    <!-- /.social-auth-links -->

    <br>
    
    
    
    
   


  </div>
  <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<!-- jQuery 3 -->

<!-- Bootstrap 3.3.7 -->
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="plugins/iCheck/icheck.min.js"></script>

</body>
</html>
