<?php
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Panel Administratora</title>
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet">
<link href="assets/css/style-responsive.css" rel="stylesheet">
</head>
<body onload="getTime()">
<div class="container">
<?php
if(isset($_GET['logout'])) { header('Location: index.php'); }
if(isset($_POST['username']) && ($_POST['username'] == 'test') && isset($_POST['password']) && ($_POST['password'] == 'test')) { $_SESSION['Authenticated'] = 1;
}else{
$_SESSION['Authenticated'] = 0;
}
if(isset($_SESSION['Authenticated']) && ($_SESSION['Authenticated'] == 0)) { ?>
<div id="showtime"></div>
<div class="col-lg-4 col-lg-offset-4">
<div class="lock-screen">
<h2><a data-toggle="modal" href="#myModal"><i class="fa fa-lock"></i></a></h2>
<p>Odblokuj</p>
<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
<form action="auth.php" method="post">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Witamy!</h4>
</div>
<div class="modal-body">
<p class="centered"><img class="img-circle" width="80" src="assets/img/ui-sam.jpg"></p>
<input type="text" name="username" id="username" placeholder="Nazwa użytkownika" autocomplete="off" class="form-control placeholder-no-fix">
<br />
<input type="password" name="password" id="password" placeholder="Hasło" autocomplete="off" class="form-control placeholder-no-fix">
<input type="hidden" name="login">
</div>
<div class="modal-footer centered">
<button data-dismiss="modal" class="btn btn-theme04" type="button">Anuluj</button>
<button class="btn btn-theme03" type="submit">Zaloguj</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<?php
}else{
header('Location: index.php'); }
?>
</div>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.backstretch.min.js"></script>
<script>
$.backstretch("assets/img/login-bg.jpg", {speed: 500});
</script>
<script>
function getTime()
{
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
// add a zero in front of numbers<10
m=checkTime(m);
s=checkTime(s);
document.getElementById('showtime').innerHTML=h+":"+m+":"+s;
t=setTimeout(function(){getTime()},500);
}
function checkTime(i)
{
if (i<10)
{
i="0" + i;
}
return i;
}
</script>
</body>
</html>
nie loguje mi (IMG:
style_emoticons/default/sad.gif)
wpisuje dobre dane to mam pustą stronę z tłem (IMG:
style_emoticons/default/sad.gif)