first commit

This commit is contained in:
Anderi Saputra
2026-06-10 17:00:19 +07:00
commit adec71e763
38 changed files with 9278 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
session_start();
$role = isset($_SESSION['role']) ? $_SESSION['role'] : '';
if ($role !== 'infrastruktur') { echo "unauthorized"; exit; }
include "koneksi.php";
$id = intval($_POST['id']);
$lat = doubleval($_POST['lat']);
$lng = doubleval($_POST['lng']);
$conn->query("UPDATE tb_spbu SET latitude='$lat', longitude='$lng' WHERE id='$id'");
?>