File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/old-myadmin/login.php
<?php
require_once "../library/config.php";
require_once "./library/functions.php";
$errorMessage ="" ;
if(isset($_POST["uname"]))
{
$result = doLogin();
if ($result != "")
{
$errorMessage=$result;
}
}
?>
<html>
<head>
<title>BK-Administrator: Login</title>
<style>
body{
margin-top:0px;
margin-bottom:0px;
}
#tophead{
margin-top:15%;
text-align:center;
background-color:lightgrey;
font-size:30px;
font-weight:bold;
color:grey;
width:50%;
background-color:skyblue;
-moz-border-radius:20px;
-webkit-border-radius:20px;
border-radius: 20px;
}
#tophead .topname{
font-size:30px;
font-weight:bold;
color:olive;
}
#tophead .footer {
margin-top:25px;
width:100%;
font-size:14px;
text-align:center;
background-color:lightgrey;
}
#tophead .logbox {
text-align:center;
margin-left:15%;
margin-top:25px;
width:55%;
background-color:skyblue;
}
#tophead .errms{
font-size:20px;
text-align:center;
color:red;
font-weight:bold;
}
</style>
</head>
<body>
<form method="POST" action="">
<center>
<div id="tophead">
<b class="topname">Bagwar-Admin </b>: Login
<div class="errms">
<?php if(isset($errorMessage)){ echo $errorMessage;} ?> </div>
<div class="logbox">
<br/>
<table width="261" border="0">
<tr>
<td>User Name</td>
<td><input type="text" name="uname" /> </td>
</tr>
<tr>
<td>Password </td>
<td><input type="password" name="upass" /> </td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="usubmit" value="Login" /></td>
<tr>
</table>
<br/>
</div>
<div class="footer">
© Copyright Bagwarsoftware. All rights reserved., 2011-2012.
</div>
</div>
</center>
</form>
</body>
</html>