<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
	<title>KoBo and Power BI</title>
	<script type="text/javascript" src="../bootstrap4/js/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="../bootstrap4/css/bootstrap.min.css"> 
	<script type="text/javascript" src="../bootstrap4/canvasjs.min.js"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
	<meta name="viewport" content="width=device-width, initial-scale=.8">
	<style type="text/css">
	body {font-family: "Times New Roman", Times, serif;font-size: 20px;}
		#header {font-family: "Times New Roman", Times, serif;
			font-size: 26px;
			background-color: orange;
			color: white;}
			#red {color:red;}
	</style>
</head>
<body>
<form method="post">
	<div class="row">
		<div class="col-md-12" align="center" id="header">
			<b><u>	Index Testing Online Register - MdM </u></b>
		</div>
	</div>
	<br>
	<div class="row">
		<div class="col-md-3"> </div>
		<div class="col-md-2" style="color:skyblue;">
			<b>Authorized Password </b>
		</div>
		<div class="col-md-2">
			<input type="password" name="pswd" class="container-fluid" id='pswd' onkeyup="check_password()"; style="height: 40px;">
		</div>
		<div class="col-md-2">
			<input type="submit" name="ok" value="submit" class="btn btn-success">
		</div>
		<div class="col-md-3"></div>
	</div>
	<br>
</form>
<div class="row">
	<div class="col-md-12" align="center" id="red">
<?php 
$a = "mknkobo.admin";
$b = "mggkobo.admin";
$c = "hpnkobo.admin";
if(isset($_POST['ok']))
{
	$pswd = $_POST['pswd'];
	if($pswd==$a||$pswd==$b||$pswd==$c)
	{ 
		echo "<script>location.assign('dashboard.php?pswd=$pswd');</script>";
	 }
	else { echo "Invalid password! Try Again! ";}
}
?>
</div>
</div>
</body>
</html>