Remove fitur jalan, parsil, dan spbu

This commit is contained in:
Romeo3
2026-06-09 15:17:56 +07:00
parent 6acbbb7e0b
commit d13903bfe3
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 = ?");