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

<?php
include_once "cdn/globle.php";
$roll = (in_array('roll',array_keys($_SESSION)) && in_array('Comment',array_keys($_SESSION['roll'])) ? array_values($_SESSION['roll']['Comment']) : []);
if(isset($_SESSION['roll_name']) && $_SESSION['roll_name'] != 'user' && in_array('view',$roll) ){
?>
<!doctype html>
<html lang="en">

<?php
include 'widgets/head.php';
?>
<style>
    /* Example: If the parent of the autocomplete dropdown has a class 'parent-container' */
.pac-container {
    z-index: 99999 !important;
}

</style>
<body class="d-flex">
      <div class="messages position-fixed w-100 p-3 top-0 start-0 z-2">

  </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">Commment Details</h6>
            <small class="text-secondary fw-normal fs-8">Update your project detials and address.</small>
        </div>
        <form onsubmit="return false" id="commentDetails" enctype="multipart/form-data">
            <div class="row mt-4">
                <div class="col-6 col-sm-6 col-md-2 mb-3 position-relative ">
                    <label for="" class="form-label">Profile<sup class="text-danger">*</sup></label>
                    <img src="/files/addimage.png" class="file h-auto w-100 z-1">
                    <input type="file"  class="form-control position-absolute opacity-0 h-100 start-0 top-0 "  name="image"  id="file"  placeholder=""  aria-describedby="fileHelpId"  />
                    <small id="name" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 mb-3">
                    <label for="" class="form-label">Name<sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" name="name" id="name" aria-describedby="helpId" placeholder=""  required/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 mb-3">
                    <label for="" class="form-label">Message</label>
                    <textarea class="form-control w-100" name="message" id="message" rows="4"></textarea>
                </div>
            </div>
            <?php if(in_array('edit',$roll)){ ?>
            <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button"  id="commentDetailsSave" 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">Active Comment</h6>
            <small class="text-secondary fw-normal fs-8">active or in-active comment.</small>
                <!--<p class="fs-7 mt-3">Once the project is deleted, all of its resources and data will be permanently deleted.</p>-->
        </div>
        <div class="d-flex gap-2 justify-content-start my-2">
            <button type="button" id="in-active-comment" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="" data-bs-original-title="Save Comment as draft">IN-ACTIVE</button>
            <button type="button" id="active-comment" class="btn btn-danger fs-7" data-bs-toggle="tooltip" data-bs-placement="top" title="" data-bs-original-title="Active Comment to display in client">ACTIVE</button>
        </div>
    </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 Comment</h6>
            <small class="text-secondary fw-normal fs-8">Parmanently delete your comment.</small>
                <p class="fs-7 mt-3">Once the comment is deleted, it will be no longer available.</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 COMMENT</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 Comment</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 comment?.</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-project" id="delete-comment" 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="/js/commentdetails.js"></script>
  <?php
    include 'widgets/footer.php';
  ?>
  </div>
</body>

</html>
<?php
}else{
     header('location: /login');
}
?>

LittleDemon - FACEBOOK
[ KELUAR ]