-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.php
104 lines (86 loc) · 3.41 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php include 'islemler/baglan.php' ;
$ayarsor=$db->prepare("SELECT * FROM ayarlar");
$ayarsor->execute();
$ayarcek=$ayarsor->fetch(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="<?php echo $ayarcek['site_aciklama'] ?>">
<meta name="author" content="<?php echo $ayarcek['site_sahibi'] ?>">
<link rel="shortcut icon" type="image/png" href="<?php echo $ayarcek['site_logo'] ?>">
<title><?php echo $ayarcek['site_baslik'] ?></title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body class="bg-gradient-primary">
<div class="container align-items-center" style="margin-top: 7%">
<div class="row justify-content-center align-content-center">
<div class="card o-hidden border-0 shadow-md" style="min-width: 45%">
<div class="p-5">
<div class="text-center">
<h5 class="h5 text-gray-900 mb-4"><?php echo $ayarcek['site_baslik'] ?> Hoşgeldiniz</h5>
</div>
<form class="user" action="islemler/islem.php" method="POST">
<div class="form-group">
<input name="kul_mail" required type="text" class="form-control form-control-user" id="exampleInputEmail" aria-describedby="emailHelp" placeholder=" E-Mail ">
</div>
<div class="form-group">
<input type="password" required name="kul_sifre" class="form-control form-control-user" id="exampleInputPassword" placeholder="Şifre">
</div>
<button name="oturumac" type="submit" class="btn text-white btn-primary btn-user btn-block">Oturum Aç</button>
<hr>
</form>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
</body>
</html>
<script src="vendor/sweetalert/sweetalert2.all.min.js"></script>
<?php if (@$_GET['durum']=="hata") {?>
<script>
Swal.fire({
type: 'error',
title: 'Oturum Açma İşlemi Başarısız',
text: 'Girdiğiniz Bilgileri Kontrol Edin Lütfen',
showConfirmButton: true,
confirmButtonText: 'Kapat'
})
</script>
<?php } ?>
<?php if (@$_GET['durum']=="izinsiz") {?>
<script>
Swal.fire({
type: 'error',
title: 'Giriş İzniniz Yok',
text: 'Sayfayı Görüntüleyebilmek İçin Lütfen Oturum Açın',
showConfirmButton: true,
confirmButtonText: 'Kapat'
})
</script>
<?php } ?>
<?php if (@$_GET['durum']=="suphe") {?>
<script>
Swal.fire({
type: 'error',
title: 'Şüpheli Hareket',
text: 'Şüpheli Bir Hareket Tespit Edildi Lütfen Tekrar Oturum Açın',
showConfirmButton: true,
confirmButtonText: 'Kapat'
})
</script>
<?php } ?>