-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhello.php
112 lines (104 loc) · 3.61 KB
/
hello.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
<?php
session_start();
if(!isset($_SESSION['zalogowany'])){
header('Location: login.php');
exit();
}
?>
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8"/>
<title>LoLFire</title>
<meta name="description" content="Grasz w League of Legends i szukasz nowych buildów lub innej pomocy? Ta strona jest właśnie dla Ciebie!"/>
<meta name="keywords" content="league, of, legends, build, buildy, builds, counter"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<link rel="stylesheet" type="text/css" href="styles/main.css">
</head>
<body>
<div id="container">
<div class="menu">
<div class="logo">
<a href="index.php"><img src="images/logo2.png" class="logo" alt="lolfire_logo"></a>
</div>
<div class="drop_down">
<a href="hello.php"><button class="drop_button">Konto</button></a>
<div class="drop_down-content">
<a href="account_settings.php">Ustawienia konta</a>
<a href="add_new_build.php">Dodaj build</a>
<a href="a12">Moje buildy</a>
</div>
</div>
<div class="drop_down">
<a href="heroes.php"><button class="drop_button">Bohaterowie</button></a>
<div class="drop_down-content">
<a href="a21">Znajdź bohatera</a>
<a href="a22">Porównaj </a>
<a href="a23">*Dodaj</a>
</div>
</div>
<div class="drop_down">
<a href="items.php"><button class="drop_button">Przedmioty</button></a>
<div class="drop_down-content">
<a href="a31">Znajdź</a>
<a href="a32">Porównaj</a>
<a href="a33">*Dodaj</a>
</div>
</div>
<div class="drop_down">
<a href="maps.php"><button class="drop_button">Mapy</button></a>
<div class="drop_down-content">
<a href="sum_rift.php">Summoners Rift</a>
<a href="tw_treeline.php">Twisted Treeline</a>
<a href="hol_abbys.php">Hollowing Abbys</a>
</div>
</div>
<div class="drop_down">
<a href="skinns.php"><button class="drop_button">Skórki</button></a>
<div class="drop_down-content">
<a href="a51">a51</a>
<a href="a52">a52</a>
<a href="a53">a53</a>
</div>
</div>
<?php
if(isset($_SESSION['username']) && !empty($_SESSION['username']))
{
echo '
<div class="logout">
<a href="logout.php">
<img class="logout_icon" src="images/logout_icon.png">
</a>
</div>
<a class="link" href="hello.php">
<div id="user_info">
'.$_SESSION['username'].'
</div>
</a>
';
}
?>
</div>
<div id="news">
Tablica jak na FB czy coś xD
</div>
<div id="login">
<?php
if(isset($_SESSION['username']) && !empty($_SESSION['username']))
{
echo "Witaj ".$_SESSION['username']."!";
echo '
<div class="div_link">
<a class="link" href="logout.php">Wyloguj się!</a>
</div>
';
}
else
{
echo "Krytyczny błąd, nie powinno Cię tu być!";
}
?>
</div>
</div>
</body>
</html>