update sistem proyek menjadi lebih struktural. dimulai dengan memisahkan dashboard publik dan administrator pada setiap proyek, membuat dockerfile untuk setup environment docker, dan merapikan database serta membuat file migration.

This commit is contained in:
2026-06-10 17:44:46 +07:00
parent c6087ed7dd
commit e98a8ecec9
34 changed files with 963 additions and 211 deletions
+5 -2
View File
@@ -1,4 +1,6 @@
<?php
require_once 'auth.php';
require_write_access_json();
header('Content-Type: application/json');
include 'db.php';
@@ -11,7 +13,8 @@ if ($id == 0 || $type == '') {
}
$table = '';
if ($type == 'point') $table = 'spbu';
if ($type == 'point') $table = 'points';
if ($type == 'spbu') $table = 'spbu';
if ($type == 'line') $table = 'jalan';
if ($type == 'polygon') $table = 'parsil';
if ($type == 'masjid') $table = 'masjid';
@@ -30,4 +33,4 @@ if ($stmt->execute()) {
} else {
echo json_encode(["message" => "Gagal hapus", "error" => $stmt->error]);
}
?>
?>