Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
Submit
~
home
u127906809
domains
ictglobaltech.online
public_html
admin
File Name:
<?php include 'connection.php'; session_start(); // Check if the user is not logged in (no active session) if (!isset($_SESSION['id'])) { // Redirect to the login page header("Location: login.php"); exit; // Terminate the script to prevent further execution } if(isset($_GET['eid'])){ extract($_GET); $status_q = "update enquiries set status = 'true' where id = '$eid'"; update($status_q); redirect('enquiries.php'); } if(isset($_GET['enq_id'])){ $enq_id = $_GET['enq_id']; $delete_q = "delete from enquiries where id = '$enq_id'"; delete($delete_q); redirect('enquiries.php'); } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>ICT Global Tech Admin</title> <!-- base:css --> <link rel="stylesheet" href="vendors/typicons/typicons.css"> <link rel="stylesheet" href="vendors/css/vendor.bundle.base.css"> <!-- endinject --> <!-- plugin css for this page --> <!-- End plugin css for this page --> <!-- inject:css --> <link rel="stylesheet" href="css/vertical-layout-light/style.css"> <!-- endinject --> <link rel="shortcut icon" href="images/favicon.png" /> <!-- font awsome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"> </head> <body> <div class="container-scroller"> <!-- partial:partials/_navbar.html --> <?php include 'partials/navbar.php' ?> <!-- partial --> <nav class="navbar-breadcrumb col-xl-12 col-12 d-flex flex-row p-0"> <div class="navbar-links-wrapper d-flex align-items-stretch"> </div> <div class="navbar-menu-wrapper d-flex align-items-center justify-content-start"> <ul class="navbar-nav mr-lg-2"> <li class="nav-item ml-0"> <h4 class="mb-0">Enquiries</h4> </li> </ul> <ul class="navbar-nav navbar-nav-right"> <li class="d-none d-md-block"><a href="enquiries.php" class="text-white border p-2">View all</a></li> <li class="nav-item nav-search d-none d-md-block mr-0"> <form method="get"> <div class="input-group"> <input type="text" class="form-control" name="search" placeholder="Search..." aria-label="search" aria-describedby="search"> <div class="input-group-prepend"> <button style="submit" class="input-group-text" id="search"> <i class="typcn typcn-zoom"></i> </button> </div> </div> </form> </li> </ul> </div> </nav> <div class="container-fluid page-body-wrapper"> <!-- partial --> <!-- partial:partials/_sidebar.html --> <?php include 'partials/sidebar.php' ?> <!-- partial --> <div class="main-panel"> <div class="content-wrapper"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="table-responsive pt-3"> <table class="table table-striped project-orders-table"> <thead> <tr> <th class="ml-5">#</th> <th>Business</th> <th>Name</th> <th>Mobile number</th> <th>Location</th> <th>Message</th> <th>Status <i class="fa-solid fa-filter text-dangermx-3 filter-hov" data-toggle="modal" data-target="#exampleModalCenterFilter"></i></th> <th>Action</th> </tr> </thead> <tbody> <?php // Modify the query to include search functionality $q = "SELECT enquiries.*, business.business AS business_name FROM enquiries INNER JOIN business ON enquiries.business_id = business.id"; if(isset($_GET['search']) && !empty($_GET['search'])) { $search = $_GET['search']; // Modify the query to include search condition $q .= " WHERE enquiries.name LIKE '%$search%' OR enquiries.location LIKE '%$search%' OR enquiries.message LIKE '%$search%' OR business.business LIKE '%$search%'"; } if(isset($_GET['filter'])) { $filter = $_GET['filter']; // Modify the query to include filter condition $q .= " AND enquiries.status = '$filter'"; } $res = select($q); $i = 1; foreach($res as $row) { $buttonClass = ($row['status'] == 'true') ? 'btn-inverse-success' : 'btn-inverse-warning'; ?> <tr> <td><?php echo $i++ ?></td> <td><?php echo $row['business_name'] ?></td> <td><?php echo $row['name'] ?></td> <td><?php echo $row['mobile'] ?></td> <td><?php echo $row['location'] ?></td> <td><?php echo $row['message'] ?></td> <td> <a href="?eid=<?php echo $row['id'] ?>" onclick="return confirm('Are you sure you sent the data to the client')"> <button type="button" class="btn <?php echo $buttonClass ?> btn-rounded btn-icon"> <i class="typcn typcn-tick"></i> </button> </a> </td> <td> <a href="?enq_id=<?php echo $row['id'] ?>" onclick="return confirm('Are you sure you want to delete this enquiry?')"> <button class="btn btn-inverse-danger btn-rounded btn-icon"> <i class="typcn typcn-trash"></i> </button> </a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> <!-- content-wrapper ends --> <!-- partial:partials/_footer.html --> <?php include 'partials/footer.php' ?> <!-- partial --> </div> <!-- main-panel ends --> </div> <!-- page-body-wrapper ends --> </div> <!-- container-scroller --> <!--Filter status Modal --> <div class="modal fade" id="exampleModalCenterFilter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-sm" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Filter Status</h5> <button type="button" class="close text-danger" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <select class="form-select form-control" aria-label="Default select example" id="filterStatus"> <option selected>Choose status</option> <option value="true">Submitted</option> <option value="">Not submitted</option> </select> <div class="text-center"><button type="button" class="btn btn-primary mt-4" onclick="applyFilter()">Filter</button></div> </div> </div> </div> </div> <script> function applyFilter() { // Get the selected value from the filter status select element var filterValue = document.getElementById("filterStatus").value; // Get the current URL var currentUrl = window.location.href; // Update the URL with the filter parameter var updatedUrl = updateQueryStringParameter(currentUrl, 'filter', filterValue); // Redirect to the updated URL window.location.href = updatedUrl; } function updateQueryStringParameter(uri, key, value) { var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i"); var separator = uri.indexOf('?') !== -1 ? "&" : "?"; if (uri.match(re)) { return uri.replace(re, '$1' + key + "=" + value + '$2'); } else { return uri + separator + key + "=" + value; } } </script> <!-- get date --> <script> // Create a new Date object var today = new Date(); // Get the month and day var month = today.toLocaleString('default', { month: 'short' }); // Short month name like "Mar" var day = today.getDate(); // Format the date as desired var formattedDate = month + ' ' + day; // Find the element with the class "date mb-0" var dateElement = document.querySelector('.date.mb-0'); // Set the innerHTML of the element to the formatted date if (dateElement) { dateElement.innerHTML = "Today: " + formattedDate; } </script> <!-- base:js --> <script src="vendors/js/vendor.bundle.base.js"></script> <!-- endinject --> <!-- Plugin js for this page--> <script src="vendors/chart.js/Chart.min.js"></script> <!-- End plugin js for this page--> <!-- inject:js --> <script src="js/off-canvas.js"></script> <script src="js/hoverable-collapse.js"></script> <script src="js/template.js"></script> <script src="js/settings.js"></script> <script src="js/todolist.js"></script> <!-- endinject --> <!-- Custom js for this page--> <script src="js/dashboard.js"></script> <!-- End custom js for this page--> </body> </html>
Bypass Options
Select edit method
Using basic write file
Using command
Info
Info!
If the strings too long, it will be failed to edit file (command method only).
Obfuscate PHP:
No Obfuscate
Obfuscate
Save Changes