-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
76 lines (75 loc) · 3.36 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MiawShare - Login</title>
<meta name="description" content="Bagikan gambarmu di MiawShare!" />
<meta property="og:title" content="MiawShare - Login" />
<meta property="og:url" content="https://miawshare.my.id/" />
<meta property="og:description" content="Daftar sekarang dan bagikan gambarmu!" />
<meta property="og:image" content="https://miawshare.my.id/assets/logo/logo.png" />
<link rel="stylesheet" href="styles/login.css">
<link rel="stylesheet" href="styles/alert2.css">
<link rel="icon" type="image/png" href="assets/logo/logo.png">
<!-- Boxicons CSS -->
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet" />
<style>
body a {
text-decoration: none;
}
</style>
</head>
<body>
<div class="login-container">
<form class="login-form" action="cek_login.php" method="post">
<?php
if(isset($_GET['pesan'])){
if($_GET['pesan']=="gagal"){
echo "<div class='alert'>Username dan Password tidak sesuai !</div>";
}
}
if(isset($_GET['pesan'])){
if($_GET['pesan']=="unvalidated"){
echo "<div class='alert'>Akun belum divalidasi oleh admin</div>";
}
}
if(isset($_GET['pesan'])){
if($_GET['pesan']=="valsuccess"){
echo "<div class='done'>Akun anda telah diverifikasi, silahkan login</div>";
}
}
if(isset($_GET['pesan'])){
if($_GET['pesan']=="needlogin"){
echo "<div class='done'>Login terlebih dahulu</div>";
}
}
?>
<div class="logo_items flex">
<span class="nav_image">
<a href="pages/beranda.php" style="color: inherit; text-decoration: none;"></a>
<img src="assets/logo/logo.png" alt="logo_img" />
</span>
<span class="logo_name"><a href="pages/beranda.php" style="color: inherit; text-decoration: none;">MiawShare</a></span>
</div>
<h2>Login</h2>
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="user_name" class="form_login" placeholder="Username .." required="required">
</div>
<div class="form-group password-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" class="form_login" placeholder="Password .." required>
<button type="button" id="togglePassword" class="toggle-password">Show</button>
</div>
<button type="submit">Login</button>
<!-- Tombol Daftar -->
<br><p id="mendaftar">Tidak punya akun? <a id="regist" href="daftar.php">Daftar</a>. Atau masuk sebagai <a id="regist" href="pages/beranda.php">tamu</a></p>
<!-- Tombol Verifikasi -->
<a href="verif-otp.php" id="verify">Verifikasi</a>
</form>
</div>
<script src="script/login.js"></script>
<script src="script/alert-time.js"></script>
</body>
</html>