LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /home/u901718425/domains/panel.urbanpillar.in/public_html/
File Upload :
Command :
Current File : /home/u901718425/domains/panel.urbanpillar.in/public_html/login.php

<?php
session_start();
if(isset($_SESSION['roll_name']) && $_SESSION['roll_name'] != 'user'){
    header('location: https://urbanpillar.com/');
}
if(isset($_SESSION['roll_name']) && $_SESSION['roll_name'] == 'user'){
    header('location: https://dashboard.urbanpillar.in/');
}
if(isset($_SESSION) && empty($_SESSION) ){
    header('location: https://urbanpillar.com/');
}
if(isset($_SESSION) && in_array('id',array_keys($_SESSION))){
     
    $roll = (in_array('roll',array_keys($_SESSION)) ? array_values($_SESSION['roll']) : []);
    if(!empty($roll)){
        if($_SESSION['roll_name'] == 'seo'){
            header('location: https://panel.urbanpillar.in/meta');
        }
        if($_SESSION['roll_name'] == 'dataentry'){
            header('location: https://panel.urbanpillar.in/property');
        }
        if($_SESSION['roll_name'] == 'master'){
            header('location: https://panel.urbanpillar.in/');
        }
        if($_SESSION['roll_name'] == 'admin'){
            header('location: https://panel.urbanpillar.in/');
        }
        if($_SESSION['roll_name'] == 'user'){
            header('location: https://dashboard.urbanpillar.in/');
        }
    }
}
?>
<!doctype html>
<html lang="en">
<head>
  <title>UrbanPIllar | Login</title>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="shortcut icon" href="/files/urban.png" type="image/x-icon">
  <!-- Bootstrap CSS v5.2.1 -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" />
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  <script src="https://accounts.google.com/gsi/client" async defer></script>
</head>
<style>
    .form-center{
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .form-control:focus {
        color: #212529;
        background-color: #fff;
        border-color: #e81515;
        outline: 0;
        box-shadow: 0 0 0 0.25rem #c60c0c38;
    }
    .custom-form{
        height: 45px;
    }
    .login-box{
        width:350px;
        min-height:300px;
    }
    @media screen and (max-width: 600px) {
        .login-box{
            width: 100%;
            box-shadow: none !important;
            padding: 40px !important;
        }
    }
</style>
<body>
<?php if(!isset($_SESSION['token']) && !isset($_SESSION['email'])){ ?>
<div class="d-flex position-fixed bg-white flex-column p-4 form-center shadow rounded-4 login-box" >
        <div class="d-flex w-100 justify-content-center mb-4">
            <img src="/files/urban.png" style="width: 60%;">
        </div>
        <form onsubmit="return false" class="login my-4">
            <div class="mb-3">
                <input type="email" class="form-control custom-form rounded-5 px-4 text-center  " name="email" id="email" aria-describedby="helpId" placeholder="Username" autocomplete="on">
            </div>
            <div class="mb-3">  
                <input type="password" class="form-control custom-form rounded-5 px-4 text-center  " name="password" id="password" aria-describedby="helpId" placeholder="password" autocomplete="on">
            </div>
            <div class="d-grid gap-2 mt-4">
              <button type="button" name="" id="login" class="btn btn-danger btn-lg fs-5  rounded-5  bg-house-color-light">Login</button>
            </div>
        </form>
        <div class="d-flex justify-content-center  fw-medium align-items-center my-2">
            OR
        </div>
        <div class="d-flex justify-content-center  align-items-center my-3">
            <div class="g_id_signin"
                data-type="standard"
                data-shape="rectangular"
                data-theme="outline"
                data-text="signin_with"
                data-login_uri="https://panel.urbanpillar.in/login"
                data-size="large"
                data-logo_alignment="left">
            </div>
        </div>
</div>
<div id="g_id_onload"
    data-client_id="84848165467-kv99kh87cjatev5b4nn44q8i4tv57bpv.apps.googleusercontent.com"
    data-login_uri="https://panel.urbanpillar.in/login"
    data-callback="handleCredentialResponse">
</div>
<?php }else{ ?>
    <div class="d-flex position-fixed bg-white flex-column p-4 form-center shadow rounded-4 login-box" >
        <div class="d-flex w-100 justify-content-center mb-4">
            <img src="/files/urban.png" style="width: 60%;">
        </div>
        <p class="fs-5 text-center mb-2  text-secondary ">
            Please enter One-Time Password to verify your account
        </p>
            <div class="d-flex mb-0 w-100 fs-5 fw-medium justify-content-center" id="countdown">
                00:00
            </div>
        <form onsubmit="return false" class="login mb-4 mt-3">
            <div class="mb-3">  
                <input type="text" class="form-control custom-form rounded-3 px-4 text-center " name="otp" id="otp" aria-describedby="helpId" autocomplete="on">
            </div>
            <div class="d-grid gap-2 mt-4">
              <button type="button" name="" id="verify" class="btn btn-danger bg-house-color-light btn-lg fs-5  rounded-3">Verify</button>
            </div>
            <button type="button" id="resetotp" class="w-100 bg-transparent border-0 mt-2">Resend One-Time Password ?</button>
        </form>
    </div>
<?php } ?>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="/js/login.js"></script>
<script>
    
function parseJwt (token) {
    var base64Url = token.split('.')[1];
    var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
    var jsonPayload = decodeURIComponent(atob(base64).split('').map(function(c) {
        return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
    }).join(''));
   return JSON.parse(jsonPayload);
 };

function handleCredentialResponse(response) {
   let json = parseJwt(response.credential);
   loginCheck(json.email);
}

<?php if(isset($_SESSION['id'])){ ?>
    sessionStorage.setItem('id',<?= $_SESSION['id'] ?>);
    updateCountdown();
<?php } ?>
</script>
  <?php
    include 'widgets/footer.php';
  ?>
</body>

</html>
<?php

?>

LittleDemon - FACEBOOK
[ KELUAR ]