Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/u615232177/domains/marisgoldunisexboutique.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/domains/marisgoldunisexboutique.com/public_html/sign_in.php
<?php use PHPMailer\PHPMailer\PHPMailer;use PHPMailer\PHPMailer\Exception;use PHPMailer\PHPMailer\SMTP; session_start();
$page_name = basename($_SERVER['PHP_SELF']); 
include("header.php"); ?>
<title><?php echo $company_name; ?> - Sign in</title>
<?php $errors=0;
if (isset($_POST["log_in"])) {
	
	$email = mysqli_real_escape_string($con,$_POST['email']);
	$password = mysqli_real_escape_string($con,$_POST['password']);
	
	$sql = "SELECT * FROM users WHERE email = '$email' AND password='$password' LIMIT 1" ;
		$check_query = mysqli_query($con,$sql);
		$count_email = mysqli_num_rows($check_query);
		if($count_email > 0){
			while ($row_first_name = mysqli_fetch_array($check_query, MYSQLI_ASSOC)) {
				$first_name = $row_first_name['first_name'];
				$user_id = $row_first_name['user_id'];
				$email = $row_first_name['email'];
			}
		}
		
		if($count_email !== 1){
			//create a session to verify it's coming from here
			$_SESSION["action"] = "true";
			$message="Wrong username or password";
			echo "<meta http-equiv=\"refresh\" content=\"0; url=failure.php?u=$page_name&m=$message\">";exit();
			$errors = 1;
		}
		
	if($errors ==0 AND isset($_POST['log_in'])){
		
	
	
	//create the sesssion
	$_SESSION["email"] = $email;
	$_SESSION["user_id"] = $user_id;
	$_SESSION["first_name"] = $first_name;
							
	//take them to the success page
	
	echo "<meta http-equiv=\"refresh\" content=\"0; url=cart.php\">";
	exit();
	}	
}
?>
<main class="login-bg">

<div class="login-form-area">
<div class="login-form">

<div class="login-heading">
<span>Login</span>
<p>Enter Login details to get access</p>
</div>

<form action="" method='post' id="checkout_form">
<div class="input-box">
<div class="single-input-fields">
<label>Username or Email Address</label>
<input type="email" placeholder="Email address" name='email' required>
</div>
<div class="single-input-fields">
<label>Password</label>
<input type="password" placeholder="Password" name='password' required>
</div>
<div class="single-input-fields login-check">
<input type="checkbox" id="fruit1" name="keep-log">

<a href="forgot_password.php" class="f-right">Forgot Password?</a>
</div>
</div>

<div class="login-footer">
<p>Don’t have an account? <a href="sign_up.php">Sign Up</a> here</p>
<button name='log_in' class="submit-btn3">Login</button>
</div>
</form>
</div>
</div>

</main>

<?php include("footer.php"); ?>

Al-HUWAITI Shell