Remove fitur jalan, parsil, dan spbu

This commit is contained in:
2026-06-09 17:46:57 +07:00
parent 25bdf082cc
commit f4065a84b6
10 changed files with 23 additions and 807 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$tabel = $_POST['tabel'];
// Daftar tabel yang diizinkan (untuk keamanan)
$allowed_tables = ['spbu_locations', 'jalan', 'parsil', 'rumah_ibadah', 'penduduk_miskin'];
$allowed_tables = ['rumah_ibadah', 'penduduk_miskin'];
if (in_array($tabel, $allowed_tables)) {
$stmt = $conn->prepare("DELETE FROM $tabel WHERE id = ?");