-
Notifications
You must be signed in to change notification settings - Fork 0
/
logowanie.php
166 lines (133 loc) · 6.68 KB
/
logowanie.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?php
session_start();
if (isset($_SESSION["zalogowany"])) {
header('Location: index.php');
}
?>
<!DOCTYPE html>
<html lang="pl" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Sklep zoologiczny">
<meta name="keywords" content="kot, pies, akcesoria, karma">
<meta name="author" content="M Czechura">
<meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://kit.fontawesome.com/c1748c61e8.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="ikona.ico" />
<title>Sklep zoologiczny</title>
</head>
<body>
<nav class="navbar navbar-expand-lg">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<img src="img/menu.png" width="24" height="24" alt="Menu">
</button>
<a class="navbar-brand" href="index.php"><i class="fas fa-paw">Pawiański</i></a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="dropdown">
<ul class="dropdown-menu">
<li><a href="koty.php">Koty</a></li>
<li><a href="psy.php">Psy</a></li>
<li><a href="chomiki.php">Małe zwierzęta</a></li>
<li><a href="akwarium.php">Akwarystyka</a></li>
<li><a href="ptaki.php">Ptaki</a></li>
</ul>
</li>
<li><a href="koty.php">Koty</a></li>
<li><a href="psy.php">Psy</a></li>
<li><a href="chomiki.php">Małe zwierzęta</a></li>
<li><a href="akwarium.php">Akwarystyka</a></li>
<li><a href="ptaki.php">Ptaki</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<?php if (isset($_SESSION["zalogowany"])) {
echo '<li><a href="logout.php">Wyloguj</a></li>';
} else {
echo '<li><a href="rejestracja.php">Rejestracja</a></li>
<li><a href="logowanie.php"><span class="glyphicon glyphicon-log-in"></span>Zaloguj</a> </li>';
}
?>
<li><a href="koszyk.php"><i class="fas fa-shopping-cart"></i>Koszyk</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid text-center bg-grey" style="padding: 6px">
<h4><i>Już teraz wybierz co najlepsze dla Twojego pupila!</i> </h4>
</div>
<div class="container" style="padding: 15px">
</div>
<header class="masthead text-white text-center" id="startrej">
<div class="container bg-grey " style="padding: 10px">
<h3 class="text-uppercase">Zaloguj się</h3>
</div>
</header>
<main>
<section id="rejestracja">
<div class="container bg-grey" style="padding-bottom: 20px">
<form class="form-horizontal" method="post" action="logowaniePOST.php">
<fieldset>
<div class="form-group">
<label class="col-md-4 control-label" for="email">E-mail</label>
<div class="col-md-4">
<input id="email" name="email" type="email" class="form-control input-md" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="haslo">Hasło</label>
<div class="col-md-4">
<input id="haslo" name="haslo" type="password" class="form-control input-md" required>
</div>
</div>
<?php
if (isset($_SESSION['blad'])) echo $_SESSION['blad'];
unset($_SESSION['blad']);
?>
<div class="form-group">
<label class="col-md-4 control-label" for="log"></label>
<div class="col-md-4">
<button id="log" name="log" class="btn btn-success">Zaloguj</button>
</div>
</div>
</fieldset>
</form>
</div>
</section>
<div class="container" style="padding: 15px">
</div>
<div class="container-fluid bg-grey" id="Kontakt">
<h4 class="text-center">KONTAKT</h4>
<div class="row">
<div class="text-center">
<p><span class="glyphicon glyphicon-map-marker"></span> ul. Wesoła 5<br />90-007 Łódź</p>
<p><span class="glyphicon glyphicon-phone"></span> +48 234 234 123</p>
<p><span class="glyphicon glyphicon-envelope"></span> [email protected]</p>
<p><a href="https://www.facebook.com/"><i class="fab fa-facebook-square"></i></a>
<a href="https://www.instagram.com/?hl=pl"><i class="fab fa-instagram"></i></a></p>
</div>
</div>
</div>
</main>
<footer class="panel-footer text-center">
<p>Sklep zoologiczny Pawiański©</p>
</footer>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/js_galeria/lightbox-plus-jquery.min.js"></script>
<script>
lightbox.option({
'alwaysShowNavOnTouchDevices': true
})
</script>
</body>
</html>