fix: hapus prefix /WEBPOVERTYSIGUAS dari semua path
This commit is contained in:
+4
-4
@@ -35,7 +35,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
<div class="text-center mt-3">
|
<div class="text-center mt-3">
|
||||||
<a href="/WEBPOVERTYSIGUAS/sig-bansos/PENGGUNA%20UMUM.html" class="text-muted">Lihat sebagai Pengguna Umum</a>
|
<a href="/sig-bansos/PENGGUNA%20UMUM.html" class="text-muted">Lihat sebagai Pengguna Umum</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
const password = document.getElementById('password').value;
|
const password = document.getElementById('password').value;
|
||||||
|
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {'Content-Type': 'application/json'},
|
||||||
body: JSON.stringify({username, password})
|
body: JSON.stringify({username, password})
|
||||||
@@ -62,9 +62,9 @@
|
|||||||
sessionStorage.setItem('user', JSON.stringify(result.data));
|
sessionStorage.setItem('user', JSON.stringify(result.data));
|
||||||
|
|
||||||
if (result.data.role === 'admin') {
|
if (result.data.role === 'admin') {
|
||||||
window.location.href = '/WEBPOVERTYSIGUAS/sig-bansos/DASHBOARD%20ADMIN.html';
|
window.location.href = '/sig-bansos/DASHBOARD%20ADMIN.html';
|
||||||
} else {
|
} else {
|
||||||
window.location.href = '/WEBPOVERTYSIGUAS/sig-bansos/PENGGUNA%20UMUM.html';
|
window.location.href = '/sig-bansos/PENGGUNA%20UMUM.html';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('errorMsg').style.display = 'block';
|
document.getElementById('errorMsg').style.display = 'block';
|
||||||
|
|||||||
@@ -65,13 +65,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<a href="/WEBPOVERTYSIGUAS/sig-bansos/ORANG%20BERKEBUTUHAN.html" class="nav-card">
|
<a href="/sig-bansos/ORANG%20BERKEBUTUHAN.html" class="nav-card">
|
||||||
<i class="fas fa-user-edit" style="color:#17a2b8;"></i>
|
<i class="fas fa-user-edit" style="color:#17a2b8;"></i>
|
||||||
Kelola Orang
|
Kelola Orang
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<a href="/WEBPOVERTYSIGUAS/sig-bansos/RUMAH%20IBADAT.html" class="nav-card">
|
<a href="/sig-bansos/RUMAH%20IBADAT.html" class="nav-card">
|
||||||
<i class="fas fa-place-of-worship" style="color:#28a745;"></i>
|
<i class="fas fa-place-of-worship" style="color:#28a745;"></i>
|
||||||
Kelola Ibadah
|
Kelola Ibadah
|
||||||
</a>
|
</a>
|
||||||
@@ -100,8 +100,8 @@
|
|||||||
window.location.href = '/login.html';
|
window.location.href = '/login.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
const API_ORANG = '/WEBPOVERTYSIGUAS/sig-jalan/api_orang.php';
|
const API_ORANG = '/sig-jalan/api_orang.php';
|
||||||
const API_IBADAH = '/WEBPOVERTYSIGUAS/sig-jalan/api_ibadah.php';
|
const API_IBADAH = '/sig-jalan/api_ibadah.php';
|
||||||
const W = { masjid:'#28a745', gereja:'#dc3545', klenteng:'#ff6f00', vihara:'#ff9800', pura:'#9c27b0' };
|
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' };
|
const I = { masjid:'fa-mosque', gereja:'fa-church', klenteng:'fa-torii-gate', vihara:'fa-om', pura:'fa-gopuram' };
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
window.location.href = '/login.html';
|
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);
|
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);
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19 }).addTo(map);
|
||||||
|
|||||||
@@ -104,8 +104,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const API_ORANG = '/WEBPOVERTYSIGUAS/sig-jalan/api_orang.php';
|
const API_ORANG = '/sig-jalan/api_orang.php';
|
||||||
const API_IBADAH = '/WEBPOVERTYSIGUAS/sig-jalan/api_ibadah.php';
|
const API_IBADAH = '/sig-jalan/api_ibadah.php';
|
||||||
const warnaIbadah = { masjid: '#28a745', gereja: '#dc3545', klenteng: '#ff6f00', vihara: '#ff9800', pura: '#9c27b0' };
|
const warnaIbadah = { masjid: '#28a745', gereja: '#dc3545', klenteng: '#ff6f00', vihara: '#ff9800', pura: '#9c27b0' };
|
||||||
const ikonIbadah = { masjid: 'fa-mosque', gereja: 'fa-church', klenteng: 'fa-torii-gate', vihara: 'fa-om', pura: 'fa-gopuram' };
|
const ikonIbadah = { masjid: 'fa-mosque', gereja: 'fa-church', klenteng: 'fa-torii-gate', vihara: 'fa-om', pura: 'fa-gopuram' };
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
window.location.href = '/login.html';
|
window.location.href = '/login.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
const API_URL = '/WEBPOVERTYSIGUAS/sig-jalan/api_ibadah.php';
|
const API_URL = '/sig-jalan/api_ibadah.php';
|
||||||
const warna = { masjid: '#28a745', gereja: '#dc3545', klenteng: '#ff6f00', vihara: '#ff9800', pura: '#9c27b0' };
|
const warna = { masjid: '#28a745', gereja: '#dc3545', klenteng: '#ff6f00', vihara: '#ff9800', pura: '#9c27b0' };
|
||||||
const ikon = { masjid: 'fa-mosque', gereja: 'fa-church', klenteng: 'fa-torii-gate', vihara: 'fa-om', pura: 'fa-gopuram' };
|
const ikon = { masjid: 'fa-mosque', gereja: 'fa-church', klenteng: 'fa-torii-gate', vihara: 'fa-om', pura: 'fa-gopuram' };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user