ACC SHELL
<?
session_start();
if($_SESSION['auth_uzivatel_authorisation']!=""){
$path="./admin.php";
Header("Location: $path");
}
else{
require "../conf/db_access.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Administrační rozhraní CMS 4G</title>
<meta charset="utf-8">
<!-- Global stylesheets -->
<link href="css/reset.css" rel="stylesheet" type="text/css">
<link href="css/common.css" rel="stylesheet" type="text/css">
<link href="css/form.css" rel="stylesheet" type="text/css">
<link href="css/standard.css" rel="stylesheet" type="text/css">
<link href="css/special-pages.css" rel="stylesheet" type="text/css">
<style type='text/css'>
body{
/* background:url('web_pozadi_orang.jpg') top center no-repeat #ce202a; */
background:white;
}
.block-header{
font-size:18px;
}
.prolink{
color:white;
text-decoration:underline;
display:inline-block;
padding-top:13px;
}
</style>
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="icon" type="image/png" href="favicon-large.png">
<!-- Generic libs -->
<script type="text/javascript" src="js/html5.js"></script><!-- this has to be loaded before anything else -->
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/old-browsers.js"></script> <!-- remove if you do not need older browsers detection -->
<!-- Template core functions -->
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/standard.js"></script>
<!--[if lte IE 8]><script type="text/javascript" src="js/standard.ie.js"></script><![endif]-->
<script type="text/javascript" src="js/jquery.tip.js"></script>
<!-- example login script -->
<script type="text/javascript">
$(document).ready(function()
{
// We'll catch form submission to do it in AJAX, but this works also with JS disabled
$('#login-form').submit(function(event)
{
// Check fields
var login = $('#login').val();
var pass = $('#pass').val();
if (!login || login.length == 0)
{
$('#login-block').removeBlockMessages().blockMessage('Napište prosím Vaše přihlašovací jméno', {type: 'warning'});
}
else if (!pass || pass.length == 0)
{
$('#login-block').removeBlockMessages().blockMessage('Napište prosím vaše heslo', {type: 'warning'});
}
});
<? if($_REQUEST['pwd_sent']){
if($_REQUEST['pwd_sent']=='ok'){
echo "$('#login-block').removeBlockMessages().blockMessage('Vaše přístupové údaje byly odeslány na vaši e-mailovou adresu.', {type: 'success'});";
}
else{
echo"$('#login-block').removeBlockMessages().blockMessage('Nepodařilo se nalézt váš email v databázi. <br />Prosím ověřte, zda jste zadali správnou e-mailovou adresu nebo kontaktujte naši podporu.', {type: 'error'});";
}
}
?>
});
</script>
</head>
<!-- the 'special-page' class is only an identifier for scripts -->
<body class="special-page login-bg " style=" background: url(http://4ground.cz/fur_big.jpg) no-repeat center center; -webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;">
<!-- The template uses conditional comments to add wrappers div for ie8 and ie7 - just add .ie, .ie7 or .ie6 prefix to your css selectors when needed -->
<!--[if lt IE 9]><div class="ie"><![endif]-->
<!--[if lt IE 8]><div class="ie7"><![endif]-->
<?/*
<section id="message">
<div class="block-border"><div class="block-content no-title dark-bg">
<p class="mini-infos">For demo website, use <b>admin</b> / <b>admin</b></p>
</div></div>
</section>
*/?>
<section id="login-block">
<div class="block-border"><div class="block-content">
<!--
IE7 compatibility: if you want to remove the <h1>,
add style="zoom:1" to the above .block-content div
-->
<div class="block-header"><? echo $_REQUEST['lost_pwd']? "Zaslání hesla":"Přihlášení do administrace";?></div>
<?
if($_REQUEST['failed']){
echo "<p class='message error no-margin'>Přihlášení selhalo, zkuste zadat vaše přihlašovací údaje ještě jednou.</p>";
}
?>
<?
if(!$_REQUEST['lost_pwd']){
?>
<form class="form with-margin" name="login-form" id="login-form" method="post" action="login.php">
<input type="hidden" name="a" id="a" value="send">
<p class="inline-small-label">
<label for="login"><span >Přihlašovací jméno</span></label>
<input type="text" name="login" id="login" class="full-width" value="">
</p>
<p class="inline-small-label">
<label for="pass"><span >Heslo</span></label>
<input type="password" name="password" id="pass" class="full-width" value="">
</p>
<button type="submit" class="float-right red">Přihlásit</button>
<p class="input-height">
</p>
</form>
<?
}
else{
?>
<form class="form with-margin" name="login-form-pwd" id="login-form-pwd" method="post" action="send_pwd.php">
<input type="hidden" name="a" id="a" value="send">
<p class="inline-small-label">
<label for="login"><span >E-mail</span></label>
<input type="text" name="heslo" id="login" class="full-width" value="">
</p>
<a href='./' class='submitter button red'>Zpět</a> <button type="submit" class="float-right red">Odeslat</button>
<p class="input-height">
</p>
</form>
<?
}
?>
<?/*
<form class="form" id="password-recovery" method="post" action="">
<fieldset class="grey-bg no-margin collapse">
<legend><a href="#">Lost password?</a></legend>
<p class="input-with-button">
<label for="recovery-mail">Enter your e-mail address</label>
<input type="text" name="recovery-mail" id="recovery-mail" value="">
<button type="button">Send</button>
</p>
</fieldset>
</form>
*/?>
</div></div>
</section>
<!--[if lt IE 8]></div><![endif]-->
<!--[if lt IE 9]></div><![endif]-->
</body>
</html>
<?
}
?>
ACC SHELL 2018