-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
143 lines (142 loc) · 5.07 KB
/
menu.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
<?php
if ($_SERVER["SCRIPT_NAME"] != "/index.php") {
die();
}
?>
<a href="#" onclick="" title="Profile">
<div id="left_button" class="left_button">
<img src="images/profile.png">
</div>
</a>
<a href="#" onclick="" title="Messaging">
<div id="left_button2" class="left_button">
<div id="text">
msg
</div>
</div>
</a>
<a href="index.php?task=botips" onclick="" title="Top IPs">
<div id="left_button3" class="left_button">
<div id="text">
<img src="images/botips.png">
</div>
</div>
</a>
<?php
if ($isAdmin) { ?>
<a href="index.php?task=editor" title="Server list">
<div id="left_button13" class="left_button">
<img src="images/settings.png">
</div>
</a>
<a href="index.php?task=users_editor" title="Users">
<div id="left_button14" class="left_button">
<img src="images/users.png">
</div>
</a>
<?php
} ?>
<div id="my_div" class="menu">
<b>Profile</b>
<p><p>
<form action="reg.php" method="POST">
IP: <?php echo $_SERVER['REMOTE_ADDR'] ?>
<p>username:<input class="username" id="login" name="login" value="<?php echo $login ?>">
<p><a id="profile_edit" href="javascript: toggle_visibility('password_div');
toggle_visibility('email_div');
toggle_visibility('submit_div');
toggle_visibility('simple_div');
toggle_visibility('col1');
toggle_visibility('col2');
toggle_visibility('col3');
toggle_visibility('col4');
toggle_visibility('col5');
toggle_visibility('col6');
toggle_visibility('col7');
"><input type="button" value="edit profile"></a>
<p>
<div id="password_div"> password:
<input type="password" id="password" name="password">
<input type="password" id="password2" name="password2">
</div>
<p>
<p>
<div id="email_div"> e-mail:
<input type="text" id="email" name="email" value="<?php echo $umail ?>">
</div>
<p>
<div class="simple_div" id="simple_div" name="simple_div"> columns:
<p>
<div style="display: inline-block;">
1<input type="checkbox" id="la" name="la" <?php if ($ula == 1) {
echo "checked ";
} ?> >
</div>
<div style="display: inline-block;">
2<input type="checkbox" id="rep" name="rep" <?php if ($urep == 1) {
echo "checked ";
} ?> >
</div>
<div style="display: inline-block;">
3<input type="checkbox" id="loc" name="loc" <?php if ($uloc == 1) {
echo "checked ";
} ?> >
</div>
<div style="display: inline-block;">
4<input type="checkbox" id="500" name="500" <?php if ($u500 == 1) {
echo "checked ";
} ?> >
</div><p>
<div style="display: inline-block;">
5<input type="checkbox" id="el" name="el" <?php if ($uel == 1) {
echo "checked ";
} ?> >
</div>
<div style="display: inline-block;">
6<input type="checkbox" id="mon" name="mon" <?php if ($umon == 1) {
echo "checked ";
} ?> >
</div>
<div style="display: inline-block;">
7<input type="checkbox" id="red" name="red" <?php if ($ured == 1) {
echo "checked ";
} ?> >
</div>
<p>
<div style="display: inline-block;">
<p>Notifications:
<p><input type="checkbox" id="notify" name="notify" <?php if ($unotify == 1) {
echo "checked ";
} ?> >
</div>
</div>
<p>
<div id="submit_div">
<input type="submit" id="submit_edit" name="submit_edit" value="save">
</div>
<p>
<p><a href="<?php echo $hostname ?>?task=exit">
<input type="button" value="logout">
</a>
</form>
</div>
<div id="message_div" class="menu">
<b>Messaging</b>
<p><p>
<?php
$result = $dbconnection->query("SELECT `id`, `login`
FROM $database.`users`
WHERE approvied='1'") or die($dbconnection->error);
?>
<form method="post" name="message_form" id="message_form" action="javascript:msg_submit();">
<textarea name="umessage" id="umessage" class="umessage"></textarea>
<p><select multiple name="uselect[]">
<?php
while ($array = $result->fetch_assoc()) {
echo "<option value=\"".$array["id"]."\">".$array["login"]."</option>";
}
?>
</select>
<p><input type="submit" name="message_submit" id="message_submit" value="send">
</form>
</div>