-
Notifications
You must be signed in to change notification settings - Fork 0
/
logowanie.php
62 lines (52 loc) · 1.78 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
<?php
session_start();
//sprawdzanie czy uzytkownik juz zalogowany
if (isset($_SESSION['zalogowany']) && $_SESSION['zalogowany'] == true){
header("Location: index.php");
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Znajdź pracę</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Lato|Ubuntu" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
</head>
<body>
<!-- menu-->
<?php include "skrypty/menu.php"; ?>
<div class="content">
<h1>Logowanie do systemu:</h1>
<?php
if (isset($_SESSION['blad'])){
echo '<h2 style="color: red;">'.$_SESSION['blad'].'</h2>';
unset($_SESSION['blad']);
}
?>
<div class="box">
<form method="post" action="skrypty/login.php">
<table>
<tr>
<td>E-mail:</td>
<td><input type="text" name="mail"></td>
</tr>
<tr>
<td>Hasło:</td>
<td><input type="password" name="haslo"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Zaloguj!"></td>
</tr>
</table>
</form>
</div>
</div>
<div class="footer">
<div class="footer-content">Projekt wykonał: Jakub Trzciński</div>
</div>
</body>
</html>