-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·47 lines (43 loc) · 1003 Bytes
/
index.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
<?php
session_start();
if(isset($_SESSION['zalogowany']) && $_SESSION['zalogowany']==true)
{
header('Location: /contest');
exit();
}
?>
<!DOCTYPE HTML>
<html lang="pl">
<?php
include_once ('templates/head.php');
?>
<body>
<div id="container">
<?php
include_once ('templates/top.php');
?>
<div id="center">
<div style="height: 100px;"></div>
<div id="logowanie">
<p><a href="/signup">Zarejestruj się już teraz</a></p>
<?php
if(isset($_SESSION['blad']))
{
echo $_SESSION['blad'].'<br/><br/>';
unset($_SESSION['blad']);
}
?>
<form action="/functions/login.php" method="post">
Login: <input type="text" name="login"><br/><br/>
Hasło: <input type="password" name="password"><br/><br/>
<input type="submit" value="Zaloguj się">
</form>
</div>
</div>
<div style="clear: both;"></div>
<?php
include_once ('templates/footer.php');
?>
</div>
</body>
</html>