Monkey Albino

Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home1/ bdapparelinfo/ hi-techplasticltd.com/ Wp-Administrator/

//home1/bdapparelinfo/hi-techplasticltd.com/Wp-Administrator/index.php

<?php @session_start();
	 require_once 'classes/DB.class.php';
	 //require_once ('classes/class.db.php');
	
	$error=$_REQUEST['msg'];
	
	$db = New DB();
	
	$db->connect();
	//@qwe123
	//print_r($_POST);
	//exit;
	if(isset($_POST['Login']))	{
	

		$user_id = $_POST['username'];
		
		$password = $_POST['password'];
		
		$user_login = $db->login($user_id, $password);
		
	if($user_login)	{
		
			$_SESSION['UserId']=$user_id;
			//echo "Session of login: ".$_SESSION['UserId'];
echo "<script>location.replace('dashboard.php')</script>";
		
		//header('Location: admin.php');
		//exit();
		
	}
	else {

		$error = 'User Id or Passowrd is worng!';
		//echo $user_login;
		}
		
	}
?>
<!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>
<title> Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/login.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
  <div id="loginEroor"></div>
    <div style="margin:auto;">
     <?php 
	 
        if(isset($error)){
		
		if($error==1)
		{
		    echo '<div style=" width:auto; height:auto; padding:3px; color:#FFF; background-color:#F00; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:16px; font-weight:bold;">Login Faild!</div>'; 
        
		}
		else
		{
		 echo '<div style=" width:auto; height:auto; padding:3px; color:#FFF; background-color:#F00; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:16px; font-weight:bold;">Invalid UserID or Password!</div>'; 
		}            
          
		    }
		else {
			echo '';	
		}
        ?>
    </div>
  <div id="loginBox">
    <form name="frm_login" method="post" action="">
      <div id="loginHeader">
      <h2 style="color:#000;">Admin Panel</h2>
      </div>
            <div id="loginContainer">
        <div class="wrapper">
        <div id="user" style="color:#000;">Username:<br />
          <label class="smallInput">
            <input type="text" name="username" value="" />
          </label>
        </div>
        <div id="pass" style="color:#000;">Password:<br />
          <label class="smallInput">
            <input type="password" name="password" value="" />
          </label>
        </div>
        </div>
        <div class="wrapper">
        <span id="submit">
          <input class="btn-login" type="submit" name="Login" value="Login" />
        </span>        </div>
      </div>
    </form>
  </div>
</div>
</body>

</html>