-
Notifications
You must be signed in to change notification settings - Fork 32
/
login.php
56 lines (53 loc) · 2.02 KB
/
login.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
<title>Login Gagal ! - Chirexs 1.0</title>
<?php
session_start();
include "config/koneksi.php";
$user=$_POST['username'];
$pass=md5($_POST['password']);
$login=mysqli_query($conn,"select * from admin where username='$user' and password='$pass'");
$ketemu=mysqli_num_rows($login);
$r=mysqli_fetch_array($login);
if ($ketemu>0) {
$_SESSION['username'] = $r['username'];
$_SESSION['password'] = $r['password'];
$_SESSION['nama_lengkap'] = $r['nama_lengkap'];
header("location: index.php");
}
else{
echo " <link href='css/font-awesome-4.2.0/font-awesome-4.2.0/css/font-awesome.min.css' rel='stylesheet'>
<link rel='stylesheet' href='animasi/login/ayam.css'>
<link rel='stylesheet' href='aset/cinta.css'>
<link href='css/main.css' rel='stylesheet' type='text/css' media='all'/>
<link rel='stylesheet' href='aset/bootstrap.css'>
<div class='errorpage'> <center><div class='danger'><i class='fa fa-exclamation-triangle'></i></div><br><h1>LOGIN GAGAL!</h1>
Username dan Password anda salah.<br><br><input name='submit' id='submitku' type=submit style='padding: 6px 12px;' value='ULANGI LAGI' onclick=location.href='formlogin'></a><br><p class='message'>Masih bingung, Kembali ke <a href='bantuan'>Halaman Bantuan</a></p></center></div>
<div class='chick-wrapper-landing show'>
<div class='wing-back'></div>
<div class='body'>
<div class='eye-left'></div>
<div class='eye-right'></div>
</div>
<div class='wing-front'></div>
</div>
<div class='chick-wrapper-run run'><img class='egg-lay' src='animasi/login/lay_egg.png'/>
<div class='legs'>
<div class='leg-l'></div>
<div class='leg-r'></div>
</div>
<div class='wing-back'> </div>
<div class='sweat-1'></div>
<div class='sweat-2'></div>
<div class='sweat-3'></div>
<div class='body'>
<div class='eye-liner'>
<div class='eye'></div>
</div>
<div class='eye-lid'></div>
<div class='cheek'></div>
</div>
<div class='sweat-last'></div>
<div class='wing-front'></div>
</div>
<script src='animasi/login/index.js'></script>";
}
?>