merge from notif to dev #6

Merged
5803025047 merged 2 commits from notif into dev 2025-11-26 04:41:57 -05:00
2 changed files with 11 additions and 10 deletions
Showing only changes of commit e848cb31fc - Show all commits

View File

@ -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 "<script>showNotif(" . json_encode($msg) . ");</script>";
}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 "<script>showNotif(" . json_encode($msg) . ");</script>";
}
}else{
echo "username salah";
$msg = "Username tidak ditemukan !";
echo "<script>showNotif(" . json_encode($msg) . ");</script>";
}
$stmt->close();
}

View File

@ -3,20 +3,20 @@
<style>
.notif {
position: fixed;
top: 100px;
top: 50px;
left: 50%;
transform: translateX(-50%);
background-color: #00000060;
background-color: #b2db0e1c;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: yellow;
padding: 12px 18px;
width: 500px;
height: 200px;
font-size: 30px;
border: 1px solid white;
width: 300px;
height: 25px;
font-size: 20px;
border: 1px solid yellow;
border-radius: 8px;
opacity: 0;
transition: .3s;