generated from s449331/Pracownia_Pogramowania
76 lines
1.9 KiB
PHP
76 lines
1.9 KiB
PHP
<?php
|
|
|
|
session_start();
|
|
|
|
if ((isset($_SESSION['zalogowany1'])) && ($_SESSION['zalogowany1']==true))
|
|
{
|
|
header('Location: admin.php');
|
|
exit();
|
|
}
|
|
if ((isset($_SESSION['zalogowany2'])) && ($_SESSION['zalogowany2']==true))
|
|
{
|
|
header('Location: ucz.php');
|
|
exit();
|
|
}
|
|
if ((isset($_SESSION['zalogowany3'])) && ($_SESSION['zalogowany3']==true))
|
|
{
|
|
header('Location: klient.php');
|
|
exit();
|
|
}
|
|
|
|
?>
|
|
|
|
<!DOCTYPE HTML>
|
|
<html lang="pl">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>GymFit </title>
|
|
<meta name="description" content="Serwis poświęcony siłowni. />
|
|
<meta name="keywords" content="gym, fit, gymfit" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
|
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
|
<link href='http://fonts.googleapis.com/css?family=Lato:400,900&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="container">
|
|
|
|
<div id="menu">
|
|
<div id="logo">
|
|
<img src="png/logo.png" />
|
|
</div>
|
|
<div id="menuP">
|
|
<div class="option"><a href="index.html">Strona główna</a></div>
|
|
<div class="option"><a href="login.php">Zaloguj</a></div>
|
|
<div class="option"><a href="rejestracja.php">Dołącz</a></div>
|
|
<div class="option"><a href="terminarz.php">Terminarz</a></div>
|
|
<div class="option"><a href="kontakt.html">Kontakt</a></div>
|
|
</div>
|
|
<div style="clear:both;"></div>
|
|
</div>
|
|
|
|
<div id="content">
|
|
<form action="zaloguj.php" method="post">
|
|
|
|
Login: <br /> <input type="text" name="login" /> <br />
|
|
Hasło: <br /> <input type="password" name="haslo" /> <br /><br />
|
|
<input type="submit" value="Zaloguj się" />
|
|
|
|
</form>
|
|
<?php
|
|
if(isset($_SESSION['blad'])) echo $_SESSION['blad'];
|
|
?>
|
|
</div>
|
|
|
|
<div id="footer">
|
|
GymFit. Strona w sieci od 2021r. © Wszelkie prawa zastrzeżone
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|