<?php

// We have to start our session every time we're
// going to call our session variable for a
// logged in issue.
session_start();

// Let's also make sure the user is logged in at all
// If the PHP $_SESSION[] array is not (!) set
if(!isset($_SESSION['username'])){
    //Then redirect them to the login page
    header( 'Location: index.html' );
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Digital Banking - Login step 1</title>
<style type="text/css">
<!--
#apDiv1 {
	position:absolute;
	width:200px;
	height:115px;
	z-index:1;
	left: 23px;
	top: 19px;
}
.bold {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #036;
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#apDiv2 {
	position:absolute;
	width:200px;
	height:115px;
	z-index:2;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style>
</head>

<body>
<h1 class="bmhead">Welcome to bank manager</h1>
<p>&nbsp;</p>
<p><a href="vd.php" target="_blank"><strong>View Database </strong></a>~ <a href="credit.php"><strong>Credit Account</strong></a> ~ <a href="update.php"><strong>Bill Client</strong></a> ~ <a href="delete.php"><strong>Delete Account</strong></a> ~<strong> <a href="changepass.php">Change Password</a> </strong>~ <a href="logout.php"><strong>Logout</strong></a></p>
<p><strong><a href="cinfo.php">Send Activation Mail</a></strong> ~ <a href="index.php"><strong>Home</strong></a><strong></strong></p>
<p><strong>=====================================================================</strong>============</p>
<p><strong>For incomplete registration ( copy client's username from <a href="vd.php" target="_blank">view database</a>)</strong></p>
<form id="form1" name="form1" method="post" action="vrf.php">
  <label for="email"></label>
  Email:
  <input type="text" name="email" id="email" /> 
  <label for="button"></label>
  <input type="submit" name="button" id="button" value="Clear Verification" />
</form>
<p><strong></strong></p>
<script language="javascript" type="text/javascript">
function randomString() {
	var chars = "98765432100000000000123456789";
	var string_length = 12;
	var randomstring = '';
	for (var i=0; i<string_length; i++) {
		var rnum = Math.floor(Math.random() * chars.length);
		randomstring += chars.substring(rnum,rnum+1);
	}
	return randomstring;
}
</script>
<p>=============================== * <strong>Cross Online Banking Software </strong>* ======================= </p>
</body>
</html>
