diff --git a/login.html b/login.html index 552ba1c..65705f0 100644 --- a/login.html +++ b/login.html @@ -35,7 +35,7 @@
- Lihat sebagai Pengguna Umum + Lihat sebagai Pengguna Umum
@@ -50,7 +50,7 @@ const password = document.getElementById('password').value; try { - const response = await fetch('/WEBPOVERTYSIGUAS/sig-jalan/api_login.php?action=login', { + const response = await fetch('/sig-jalan/api_login.php?action=login', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({username, password}) @@ -62,9 +62,9 @@ sessionStorage.setItem('user', JSON.stringify(result.data)); if (result.data.role === 'admin') { - window.location.href = '/WEBPOVERTYSIGUAS/sig-bansos/DASHBOARD%20ADMIN.html'; + window.location.href = '/sig-bansos/DASHBOARD%20ADMIN.html'; } else { - window.location.href = '/WEBPOVERTYSIGUAS/sig-bansos/PENGGUNA%20UMUM.html'; + window.location.href = '/sig-bansos/PENGGUNA%20UMUM.html'; } } else { document.getElementById('errorMsg').style.display = 'block'; diff --git a/sig-bansos/DASHBOARD ADMIN.html b/sig-bansos/DASHBOARD ADMIN.html index 7a32765..1ad98b5 100644 --- a/sig-bansos/DASHBOARD ADMIN.html +++ b/sig-bansos/DASHBOARD ADMIN.html @@ -65,13 +65,13 @@
- + Kelola Orang
- + Kelola Ibadah @@ -100,8 +100,8 @@ window.location.href = '/login.html'; } - const API_ORANG = '/WEBPOVERTYSIGUAS/sig-jalan/api_orang.php'; - const API_IBADAH = '/WEBPOVERTYSIGUAS/sig-jalan/api_ibadah.php'; + const API_ORANG = '/sig-jalan/api_orang.php'; + const API_IBADAH = '/sig-jalan/api_ibadah.php'; const W = { masjid:'#28a745', gereja:'#dc3545', klenteng:'#ff6f00', vihara:'#ff9800', pura:'#9c27b0' }; const I = { masjid:'fa-mosque', gereja:'fa-church', klenteng:'fa-torii-gate', vihara:'fa-om', pura:'fa-gopuram' }; diff --git a/sig-bansos/ORANG BERKEBUTUHAN.html b/sig-bansos/ORANG BERKEBUTUHAN.html index fdc474e..f87d4ed 100644 --- a/sig-bansos/ORANG BERKEBUTUHAN.html +++ b/sig-bansos/ORANG BERKEBUTUHAN.html @@ -92,7 +92,7 @@ window.location.href = '/login.html'; } - const API_URL = '/WEBPOVERTYSIGUAS/sig-jalan/api_orang.php'; + const API_URL = '/sig-jalan/api_orang.php'; var map = L.map('map').setView([-0.026330, 109.342519], 13); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19 }).addTo(map); diff --git a/sig-bansos/PENGGUNA UMUM.html b/sig-bansos/PENGGUNA UMUM.html index 95de432..488ff8a 100644 --- a/sig-bansos/PENGGUNA UMUM.html +++ b/sig-bansos/PENGGUNA UMUM.html @@ -104,8 +104,8 @@