From c612742a7add64c1b9a57768493f8d6c2b753116 Mon Sep 17 00:00:00 2001 From: Athallah Ghathfan Aqila Date: Fri, 12 Jun 2026 20:18:21 +0700 Subject: [PATCH] Remove PDF from tugas, fix operator login --- tugas.php | 4 ---- uas/koneksi.php | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tugas.php b/tugas.php index 8307576..09b295d 100644 --- a/tugas.php +++ b/tugas.php @@ -54,9 +54,6 @@ Portal -
@@ -729,7 +726,6 @@ function geolocate() { showToast('Lokasi ditemukan!','success'); }, () => showToast('Gagal mendapatkan lokasi GPS','danger')); } -function exportPDF() { window.open('export_pdf.php','_blank'); } function showToast(msg, type='success') { const colors = {success:'#22c55e', danger:'#ef4444', warning:'#f59e0b', info:'#3b82f6'}; const el = document.getElementById('toast-el'); diff --git a/uas/koneksi.php b/uas/koneksi.php index 8d74972..14eba78 100644 --- a/uas/koneksi.php +++ b/uas/koneksi.php @@ -56,10 +56,8 @@ if (!isset($GLOBALS[$setup_flag])) { FOREIGN KEY (penduduk_id) REFERENCES penduduk_miskin(id) ON DELETE CASCADE )"); $hash = '$2y$10$Ep64LS7KEQc2jKMu.AsH.O2wKF9ku4C8Cz0z4RHahgmYbz0vMr0/.'; - $conn->query("INSERT INTO users (username, password, nama, role) VALUES - ('admin','$hash','Administrator','superadmin'), - ('operator','$hash','Operator Lapangan','operator') - ON DUPLICATE KEY UPDATE password='$hash'"); + $conn->query("INSERT INTO users (username,password,nama,role) VALUES ('admin','$hash','Administrator','superadmin') ON DUPLICATE KEY UPDATE password='$hash',role='superadmin'"); + $conn->query("INSERT INTO users (username,password,nama,role) VALUES ('operator','$hash','Operator Lapangan','operator') ON DUPLICATE KEY UPDATE password='$hash',role='operator'"); $conn->query("INSERT IGNORE INTO rumah_ibadah (id,nama,jenis,kontak,alamat,lat,lng,radius) VALUES (1,'Masjid Raya Mujahidin','Masjid','0561-123456','Jl. Ahmad Yani, Pontianak',-0.0262,109.3429,500), (2,'Gereja Katedral Santo Yosef','Gereja Katolik','0561-234567','Jl. Pattimura, Pontianak',-0.0312,109.3301,400),