Mini Shell
<?php
include("../include/connect.php");
include("../include/function.php");
if($_SESSION['girdi']=='ok') header("location:start.php");
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $site_ad; ?> | Yetkili Paneli</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="fonts/css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<!-- Custom styling plus plugins -->
<link href="css/custom.css" rel="stylesheet">
<link href="css/icheck/flat/green.css" rel="stylesheet">
<script src="js/jquery.min.js"></script>
<!--[if lt IE 9]>
<script src="../assets/js/ie8-responsive-file-warning.js"></script>
<![endif]-->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body style="background:#F7F7F7;">
<script>
var loading = "<img src='../img/loading.gif'>";
function giris(){
$("#login").slideUp();
//$("#mesaj").html(loading);
$(".loader").show();
$.ajax({
type: "POST",
url: "include/nologin.php?pg=1",
data: $('#loginform').serialize(),
error:function(){ $('#mesaj').html("Bir hata algılandı."); },
success: function(veri) {
if (veri=="success") location.href='start.php';
else if(veri=="engel") location.href='engel.php';
else {
$(".loader").hide();
$('#mesaj').html(veri);
$("#login").slideDown();
}}
});
}
</script>
<div class="loader"><img src='../img/loading.gif'></div>
<div class="">
<a class="hiddenanchor" id="toregister"></a>
<a class="hiddenanchor" id="tologin"></a>
<div id="wrapper">
<div id="login" class="animate form">
<section class="login_content">
<form id="loginform">
<h1>Yönetici Paneli Girişi</h1>
<div>
<input type="text" name="kulladi" class="form-control" placeholder="Kullanıcı Adınız" required="" />
</div>
<div>
<input type="password" name="sifre" class="form-control" placeholder="Şifreniz" required="" />
</div>
<div>
<img src="../include/captcha/captcha.php" id="captcha" style="float:left;margin-bottom:18px"/><br/>
<a href="javascript:void(0)" onclick="
document.getElementById('captcha').src='../include/captcha/captcha.php?'+Math.random();"
id="change-image">Kodu Değiştir</a>
<input class="form-control" placeholder="Güvenlik Kodunuz" name="captcha" type="text" value="">
</div>
<div>
<input type="button" onclick="giris();" class="btn btn-success submit pull-left" value="Oturum Aç">
</div>
<div class="clearfix"></div>
</form>
<!-- form -->
</section>
<!-- content -->
</div>
<div id="mesaj"></div>
</div>
</div>
<style>
.loader{
display: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
</style>
</body>
</html>