<?php
				
	require_once("admin/black-min-sm.php");
	
	if ((isset($_SESSION['zalogowany'])) && ($_SESSION['zalogowany']==true))
	{
		$flaga = $_SESSION['flaga'];
		$user_t = "";
					
		if($flaga <= 5){
			$user_t = "user/user-";
		}else{
			$user_t = "admin/admin-";
		}
		header('Location: '.$user_t.'panel.php');
		exit();
	}

?>

<!DOCTYPE html>
<html lang="pl" class="tlo2">
<head>
	
	<!-- arkusze stylów css ON -->
	<link rel="stylesheet" href="../files/css/black-min-styles.css">
	<link rel="stylesheet" href="../files/css/menu.css">
	<link rel="stylesheet" href="../files/global/jquery-modal-master/jquery.modal.ms.css" />
    <link rel="stylesheet" href="../files/global/jquery.tabSlideOut.js-master/jquery.tabSlideOut.css">	 
	<link rel="stylesheet" href="../files/global/jquery/jquery-ui.css" />	
	<!-- arkusze stylów css OFF -->
    <!-- roszerzenie aplikacj strony KODOWANIE     » » » »      -->
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Content-Script-Type" content="text/javascript">
	<!-- Koniec roszerzenia aplikacj strony KODOWANIE   » » » » -->
	<!-- Rozpoczynane Znaczników meta i meta_data i metadata i robots-->
	<meta name="viewport" content="width=1600">
    <title>Logowanie - Black Min CMS</title>
 
	<!-- SKRYPTY -->
	<script src="../files/global/jquery/jquery.min.js"></script> 
	<script src="../files/global/jquery.tabSlideOut.js-master/jquery.tabSlideOut.js"></script> 
 	<script src="../files/global/jquery/jquery-ui.min.js"></script>
	<script src="../files/global/jquery-modal-master/jquery.modal.min.js"></script>
	<script src="../files/global/scrollmagic/minified/ScrollMagic.min.js"></script>
	<script src="../script.js"></script>
	<!-- KONIEC SKRYPTY -->	
	
	<script>
	$(document).ready(function() { 
 
	$('a[href^="#"]').on('click', function(event) {
	
		var target = $( $(this).attr('href') );
	
		if( target.length ) {
			event.preventDefault();
			$('html, body').animate({
				scrollTop: target.offset().top
			}, 1500);
		}
	});
	});
	</script>

</head>
<body>
<?php

require_once "../connect.php";
//require_once "../heder.php";
//require_once "global.php";

?>
				
	<!-- container - tresc strony ON -->
	<div id="container blocker">
		<section class="container blocker current">		
				
			<div id="" class="tsr modal modal2 modal-auto" style="display: inline-block;">
				<section class="tsr">
					<?php
						if(isset($_SESSION['blad']))	echo $_SESSION['blad'];
					?>	
				</section>
				<section class=" tsr tsr-p-10px fs-150">
					<span>
						Logowanie
					</span>
				<section class="lin"></section>
				</section>
					
				<form action="zaloguj.php" method="post">	
				
				<section class="tsr-inp"></section>
				<section class="col-inp-4 tsr-p-10px fs-110 " >
					<span>
						Login:
					</span>
				</section>
				<section class="col-inp-5-5 tsr-p-10px fs-110" >
						<input type="text" name="login" class="input" placeholder="login"/>
				</section>
				<section class="col-inp-4 tsr-p-10px fs-110 " >
					<span>
						Hasło:
					</span>
				</section>
				<section class="col-inp-5-5 tsr-p-10px fs-110" >
						<input type="password" name="haslo" class="input" placeholder="hasło"/>
				</section>
				<section class="tsr-inp tsr-mt-50">
				<input type="submit" value="Zaloguj się" class="input buttom"/>
				</section>
					<!--<section class="tsr-inp tsr-mt-50 fs-60">
					<a href="rejestracja.php" class="a" style="    color: black;">
						<span>Rejestracja - Załóż darmowe konto!
					</a>
					</section>
					<section class="tsr-inp tsr-mt-20 fs-60">
					<a href="resethasla.php" class="a" style="    color: black;">
						<span>Nie Pamiętasz hasła? - reset hasła!</span>
					</a>
					</section>-->				
				
			</form>				
			<a href="javascript: history.back()" class="close-modal2 tsr-aufle-close "><img src="../pliki/ikony/zamknij.png" class="img" /></a>
			</div>	
		</section>
	</div>	
	<!-- container - tresc strony OFF -->

	<!--  STOPKA ON  -->
<!--
	<div id="tsr-nav-stopka">
		<section class="tsr-nav-stopka">
				<section class="tsr-stopka-left tsr-nav-bottom">	
					<span class="tsr-stopka-text">
						&copy; Copyright (Wszelkie prawa zastrzeżone) - Minecraftszkoła.cf - 2018
					</span>
				</section>	
				<section class="tsr-stopka-right">
					<section class="tsr-stopka-bottom-right-hover">
						<a href="?Minecraft-Szkoła">
							<img src="../pliki/img/logo/minecraft-szkoła-LOGO-strony-1.png" alt="minecraft szkoła" title="" class="logo-bottom"   />
							<img src="../pliki/img/logo/minecraft-szkoła-LOGO-strony-2.png" alt="minecraft szkoła" title="" class="logo-bottom1"   />
						</a>					
					</section>
				</section>	
				<section class="tsr-stopka-left tsr-nav-bottom1">	
					<span class="tsr-stopka-text">
						&copy; Copyright (Wszelkie prawa zastrzeżone) - Minecraftszkoła.cf - 2018
					</span>
				</section>				
		</section>
	</div>
-->
	<!--  STOPKA OFF  -->	

	<script>
	$(document).ready(function() { 
		console.clear()
	});
	</script>	

</body>
</html>