<? session_start();ob_start();

include("../include/db.inc.php");
  $db1=new db;
  $db1->open();
if(isset($_POST['submit']))
	{
		 $uid=$_POST['uid'];
		 $pwd=$_POST['pwd'];
		$admres=mysql_query("select * from admin where uname='$uid' and pwd='$pwd' and block = '1'");
		$adm=mysql_fetch_array($admres);
		 $an=$adm[uname];
		 $ap=$adm[pwd];
		if($uid==$an && $pwd==$ap)
		{
			
			$_SESSION['uname']=$uid;
			$_SESSION['pwd']=$pwd;
			
			header("location:index.php");
		}
	else
	   header("location:login.php?msg=error");
		//$str="ID or Password does not match! Please try again!";
}
?>
<!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" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Description" content="Isociety is a site like iSociety, its an exact clone of iSociety for those who want to run their own social networking site, photos, friends, groups, events, bulletin, networks, messages, pokes and much more. find and make your friends here" />
<meta name="Keywords" content="Penny Auction, Auction, Bid, Mega Cheap prices, Sale,  for Penny Auction, Cheap Deals, Great Bargains, Win Consoles, Cameras, TV, LCD, Plasma TV, Scooters, and even Cars for mega cheap prices, <?=_TITLE1_?>, Brand new , disocunt of" />
<meta name="rating" content="General"/>
<meta name="copyright" content="Copyright (c) 2008 by money-auctions.com" />
<meta name="classification" content="auction, bidding, unique bid, ecommerce platform, real time shopping"/>
<meta name="coverage" content="Worldwide"/>
<meta name="title" content="<?=_TITLE1_?> | An online real time Ecommerce Auction Platform"/>
<meta name="page-topic" content="products, services, technology, business, Internet, Web, friends, photos, networks, connections, events, groups, relations"/>
<meta name="audience" content="all, experts, advanced, professionals, business, youth, children, ladies, females, males"/>
<meta name="reply-to" content="helpdesk@money-auctions.com"/>

<meta name="author" content="Info-Tech Ltd. | We simplify web 2.0"/>
<title>Money-Auctions Administion Console</title>
<link href="index.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?=_BASEURL_?>/favicon.ico" />
<style type="text/css">
<!--
.style2 {font-size: 18px}
-->
</style>
</head>
<body bgcolor="#ffffff">
<!--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::header starts:::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<table width="100%" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse; border-color:#ffffff">
  <tr>
    <td><? //include("header.php");?></td>
  </tr>
</table>
<!--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::header ends:::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<!--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::center starts:::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<div style="margin-top:5px">
  <table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" style="border-collapse:collapse; border-color:#ffffff">
    <tr height="417">
    
    <!--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::left starts:::::::::::::::::::::::::::::::::::::::::::::::::::::-->

    <!--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::left ends:::::::::::::::::::::::::::::::::::::::::::::::::::::-->
    <td bgcolor="#FFFFFF" valign="top">

    <!--Start Main Body-->
    <table width="50%" border="1" cellspacing="0" cellpadding="0" align="center" style="border-collapse:collapse; border-color:#ccc; margin-top:120px" bgcolor="#F1F3F5">
      <tr>
      
      <td valign="top">
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
        
        <td width="27%" valign="top" style="padding:10px">
        
          <img src="images/j_login_lock.gif" />  <br />
          <br /><div align="justify" class="normaltextblack" style="margin-top:10px">Use a valid username and password to gain access to the administration console.</div></td>
        <td width="73%" valign="top">
        <div class="normaltextredbold13 style2" style="margin-left:30px; margin-top:20px">Administration Login</div>
        <form name="admin_login" action="" method="post">
        
  
          <? if($_REQUEST['msg']=="error") { echo "<font color='red'>The administrator name and password is not valid ! Please try again later!</font>";}?>
          <div align="center" style="margin-top:50px" class="normaltextblackbold"> <span class="normaltextblackbold10">Username</span>&nbsp;&nbsp;&nbsp;
            <input type="text" name="uid" class="inputtext">
           
                <br /><br />

                <span class="normaltextblackbold10">Password&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="pwd" class="inputtext" /><br />
                <div align="center" style="margin-left:80px; margin-top:5px">
                  <input type="submit" name="submit" value="Admin Login" class="inputsubmitbig">
                </div>
          </div>
          <div align="right"><img src="images/key.gif" /></div>
    </form></td></tr></table></td></tr></table>
    
    
    
    <!--End Main Body-->    </td>
    </tr>
  </table>
</div>
<!--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::center ends:::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::footer starts:::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<div style="margin-top:5px">
  <? //include("footer.php");?>
</div>
<!--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::footer ends:::::::::::::::::::::::::::::::::::::::::::::::::::::-->
</body>
</html>

