HEX
Server: LiteSpeed
System: Linux s3512.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: surajaut (1797)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/admin/index.php
<?php    
session_start();
include '../connect.php';
//if($_SESSION['username'] != '' ) { header ('location:welcome.php');  }
//else {
if(isset($_POST['submit']))
{

$query = mysql_query("select * from login where username = '".$_POST['username']."' and password = '".$_POST['password']."' ");

$login = mysql_num_rows($query); 
if($login>0) 
{
$_SESSION['username'] = $_POST['username'];
$_SESSION['password'] = $_POST['password'];	
	header('location:welcome.php');
}
else 
{     
	$msg = "Incorrect Username and password";
}
}
//}
?>


<style type="text/css">
body {
	margin:80px 0px; padding:0px;
	text-align:center;
	}
.main { width:400px;
	margin:0px auto;
	text-align:left;
	padding:25px;
	}
.admin{ width:410px; margin-top:50px; margin-bottom:10px; background-color:#fff;}
.top{ width:410px; height:112px;background:url(../images/logo.png) no-repeat;}
.inp{width:357px; margin-bottom:7px;}
.form{ width:520px; border:#4190f0 1px solid; margin:0 auto; }
.inp{width:395px; margin:0 auto; padding-bottom:7px;}
.inp_text{ width:90px; line-height:26px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#7f7f7f; margin: 0 5px; float:left;}
.inp_text_value{ width:620px; line-height:26px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#7f7f7f; margin-right:2px; float:left;}
.inp_box_main{ width:293px; float:left;}
.inp_box,inp_box_err{ width:291px; height:26px;  font-family:Verdana, Arial, Helvetica, sans-serif;color:#000; padding-left:2px; font-size:12px;}
.inp_box_succ{background:#ecfbdc; border:#82ba45 1px solid;}
.inp_box_err{background:#ffeceb; border:#d0584f 1px solid; color:#009; width:390px;}
.butt{width:auto;background:#063154  repeat-x bottom; height:27px; border:1px solid #f5900c; line-height:27px; color:#fff; font-weight:bold;cursor:pointer;}






</style>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>SURAJ AUTO | ADMIN PANEL</title>
 <!--  <link rel="icon" href="images/favicon.ico" type="image/gif" />-->

<link href="style/style.css" rel="stylesheet" type="text/css" media="screen"/>
<script src="js/admin.js" type="text/javascript"></script>
</head>

<body style="background-image:none;">

<div class="main" >
<div class="admin">

 

<div class="form">
<div style="background-color:#000; width:520px;"><img src="../images/suraj-auto.png" style="padding:15px;" width="500" /></div>
 <form  method="post"  >
								  


       <div class="inp">
       <br clear="all"/> 
      </div>
      <div align="center" style="color:#F00;"><?php echo $msg; ?></div>
      <div class="inp">
      <div class="inp_text">User Name</div>
      <div class="inp_box_main">
      
      <input type="text" id="username" name="username" class="inp_box" maxlength="20" onKeyPress=""  />
      </div>
     <br clear="all"/> 
   </div>	
   						     
   <div class="inp">
          <div class="inp_text">Password</div>
          <div class="inp_box_main">
          <input type="password" id="password" name="password" class="inp_box" maxlength="20" onKeyPress=""  />
          </div>
         <br clear="all"/> 
       </div>
       
       <div class="inp">
          <div class="inp_text">&nbsp;</div>
          <div class="inp_box_main">
          <input name="submit" type="submit" value="Submit" class="butt" /> 
          </div>
          <br clear="all"/> 
       </div>
   </form>
							   
</div>
</div>
</div>

</body>
</html>