fix: update koneksi database ke localhost dan perbaiki path URL
This commit is contained in:
+4
-4
@@ -35,7 +35,7 @@
|
||||
</button>
|
||||
</form>
|
||||
<div class="text-center mt-3">
|
||||
<a href="/sig-bansos/PENGGUNA%20UMUM.html" class="text-muted">Lihat sebagai Pengguna Umum</a>
|
||||
<a href="/WEBPOVERTYSIGUAS/sig-bansos/PENGGUNA%20UMUM.html" class="text-muted">Lihat sebagai Pengguna Umum</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@
|
||||
const password = document.getElementById('password').value;
|
||||
|
||||
try {
|
||||
const response = await fetch('/sig-jalan/api_login.php?action=login', {
|
||||
const response = await fetch('/WEBPOVERTYSIGUAS/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 = '/sig-bansos/DASHBOARD%20ADMIN.html';
|
||||
window.location.href = '/WEBPOVERTYSIGUAS/sig-bansos/DASHBOARD%20ADMIN.html';
|
||||
} else {
|
||||
window.location.href = '/sig-bansos/PENGGUNA%20UMUM.html';
|
||||
window.location.href = '/WEBPOVERTYSIGUAS/sig-bansos/PENGGUNA%20UMUM.html';
|
||||
}
|
||||
} else {
|
||||
document.getElementById('errorMsg').style.display = 'block';
|
||||
|
||||
@@ -65,13 +65,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="/sig-bansos/ORANG%20BERKEBUTUHAN.html" class="nav-card">
|
||||
<a href="/WEBPOVERTYSIGUAS/sig-bansos/ORANG%20BERKEBUTUHAN.html" class="nav-card">
|
||||
<i class="fas fa-user-edit" style="color:#17a2b8;"></i>
|
||||
Kelola Orang
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="/sig-bansos/RUMAH%20IBADAT.html" class="nav-card">
|
||||
<a href="/WEBPOVERTYSIGUAS/sig-bansos/RUMAH%20IBADAT.html" class="nav-card">
|
||||
<i class="fas fa-place-of-worship" style="color:#28a745;"></i>
|
||||
Kelola Ibadah
|
||||
</a>
|
||||
@@ -100,8 +100,8 @@
|
||||
window.location.href = '/login.html';
|
||||
}
|
||||
|
||||
const API_ORANG = '/sig-jalan/api_orang.php';
|
||||
const API_IBADAH = '/sig-jalan/api_ibadah.php';
|
||||
const API_ORANG = '/WEBPOVERTYSIGUAS/sig-jalan/api_orang.php';
|
||||
const API_IBADAH = '/WEBPOVERTYSIGUAS/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' };
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
window.location.href = '/login.html';
|
||||
}
|
||||
|
||||
const API_URL = '/sig-jalan/api_orang.php';
|
||||
const API_URL = '/WEBPOVERTYSIGUAS/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);
|
||||
|
||||
@@ -104,8 +104,8 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const API_ORANG = '/sig-jalan/api_orang.php';
|
||||
const API_IBADAH = '/sig-jalan/api_ibadah.php';
|
||||
const API_ORANG = '/WEBPOVERTYSIGUAS/sig-jalan/api_orang.php';
|
||||
const API_IBADAH = '/WEBPOVERTYSIGUAS/sig-jalan/api_ibadah.php';
|
||||
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' };
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
window.location.href = '/login.html';
|
||||
}
|
||||
|
||||
const API_URL = '/sig-jalan/api_ibadah.php';
|
||||
const API_URL = '/WEBPOVERTYSIGUAS/sig-jalan/api_ibadah.php';
|
||||
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' };
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
|
||||
exit();
|
||||
}
|
||||
|
||||
$host = 'sql208.infinityfree.com';
|
||||
$dbname = 'if0_42170546_sig_db';
|
||||
$username = 'if0_42170546';
|
||||
$password = 'SABTU01012005';
|
||||
$host = '127.0.0.1';
|
||||
$dbname = 'sig_db';
|
||||
$username = 'root';
|
||||
$password = '';
|
||||
|
||||
try {
|
||||
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $username, $password);
|
||||
|
||||
@@ -9,10 +9,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
|
||||
exit();
|
||||
}
|
||||
|
||||
$host = 'sql208.infinityfree.com';
|
||||
$dbname = 'if0_42170546_sig_db';
|
||||
$username = 'if0_42170546';
|
||||
$password = 'SABTU01012005';
|
||||
$host = '127.0.0.1';
|
||||
$dbname = 'sig_db';
|
||||
$username = 'root';
|
||||
$password = '';
|
||||
|
||||
try {
|
||||
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $username, $password);
|
||||
|
||||
@@ -9,10 +9,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
|
||||
exit();
|
||||
}
|
||||
|
||||
$host = 'sql208.infinityfree.com';
|
||||
$dbname = 'if0_42170546_sig_db';
|
||||
$username = 'if0_42170546';
|
||||
$password = 'SABTU01012005';
|
||||
$host = '127.0.0.1';
|
||||
$dbname = 'sig_db';
|
||||
$username = 'root';
|
||||
$password = '';
|
||||
|
||||
try {
|
||||
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $username, $password);
|
||||
|
||||
Reference in New Issue
Block a user