From e848cb31fcf2041facfbf4e06a3b595b50a53528 Mon Sep 17 00:00:00 2001 From: Matthew Florentino Date: Wed, 26 Nov 2025 11:01:10 +0700 Subject: [PATCH] style: final style notif --- src/index.php | 9 +++++---- src/notif.php | 12 ++++++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/index.php b/src/index.php index afd1db7..3407299 100644 --- a/src/index.php +++ b/src/index.php @@ -8,7 +8,7 @@ if(isset($_POST['login'])){ $password = $_POST['password']; if(empty($username)||empty($password)){ - $msg = "data harus diisi!"; + $msg = "Data Harus Lengkap !"; echo ""; }else{ $sql = "SELECT * FROM users WHERE username =?"; @@ -23,14 +23,15 @@ if(isset($_POST['login'])){ $_SESSION['loggedin']='true'; $_SESSION['username']=$user['username']; $_SESSION['id']=$user['id']; - header("location:leaderboard.php"); + header("location:onboard.php"); exit(); }else{ - $msg = "Password Salah!"; + $msg = "Password Salah !"; echo ""; } }else{ - echo "username salah"; + $msg = "Username tidak ditemukan !"; + echo ""; } $stmt->close(); } diff --git a/src/notif.php b/src/notif.php index 780c38f..68702cd 100644 --- a/src/notif.php +++ b/src/notif.php @@ -3,20 +3,20 @@