-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.php
More file actions
46 lines (45 loc) · 2.19 KB
/
menu.php
File metadata and controls
46 lines (45 loc) · 2.19 KB
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
<meta charset="utf-8"/>
<link rel="stylesheet" href="css/menu.css"/>
<div class="floatcontainer doc_header" id="header">
<div class="toplinks" id="toplinks">
<ul class="nouser">
<?php
if (!isset($_SESSION['autorised']))
echo '
<li>
<a href="registration.php" target="_parent">Регистрация</a>
</li>';
?>
<li>
<a href="viewforum.php" target="_parent">Список тем</a>
</li>
<li style="list-style: none; display: inline">
<form id="navbar_loginform" action="auth.php" method="post" target="_parent">
<fieldset class="logindetails" id="logindetails">
<div>
<?php
if (isset($_SESSION['autorised'])) {
echo $_SESSION['user_nick'] . ' <input type="submit"
value="Log off" class="small-button" />';
$_SESSION['action'] = 'logout';
} else
echo '<input type="text" size="10" id="navbar_username" name="username"
class="textbox default-value" placeholder="username"/>
<input type="password" size="10" id="navbar_password" name="password"
class="textbox default-value" placeholder="password"/>
<input type="submit"
title="Enter your username and password in the boxes provided to login, or click the 'Create new account' button to create a profile for yourself."
value="Log in" class="small-button" />
';
echo "\n";
?>
</div>
</fieldset>
</form>
</li>
</ul>
</div>
</div>
<header>
<a href=index.php target="_parent"> <img src="images/head.png"></a>
</header>