|
@@ -138,151 +138,129 @@ if ($NotificationsManager->is_skipped(NotificationsManager::SUBSCRIPTIONS)) {
|
138
|
138
|
<div id="logo">
|
139
|
139
|
<a href="index.php"></a>
|
140
|
140
|
</div>
|
141
|
|
-<?
|
142
|
|
-if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search
|
143
|
|
- $UseAdvancedSearch = true;
|
144
|
|
-} else {
|
145
|
|
- $UseAdvancedSearch = false;
|
146
|
|
-}
|
147
|
|
-?>
|
148
|
|
- <div id="searchbars">
|
149
|
|
- <ul>
|
150
|
|
- <li id="searchbar_torrents">
|
151
|
|
- <span class="hidden">Torrents: </span>
|
152
|
|
- <form class="search_form" name="torrents" action="torrents.php" method="get">
|
153
|
|
-<? if ($UseAdvancedSearch) { ?>
|
154
|
|
- <input type="hidden" name="action" value="advanced" />
|
155
|
|
-<? } ?>
|
156
|
|
- <input id="torrentssearch" accesskey="t" spellcheck="false"
|
157
|
|
- onfocus="if (this.value == 'Torrents') { this.value = ''; }"
|
158
|
|
- onblur="if (this.value == '') { this.value = 'Torrents'; }"
|
159
|
|
- value="Torrents" placeholder="Torrents" type="text" name="<?=$UseAdvancedSearch ? 'groupname' : 'searchstr' ?>" size="17" />
|
160
|
|
- </form>
|
161
|
|
- </li>
|
162
|
|
- <li id="searchbar_artists">
|
163
|
|
- <span class="hidden">Artist: </span>
|
164
|
|
- <form class="search_form" name="artists" action="artist.php" method="get">
|
165
|
|
- <input id="artistsearch"<?=Users::has_autocomplete_enabled('search');
|
166
|
|
- ?> accesskey="a"
|
167
|
|
- spellcheck="false" autocomplete="off"
|
168
|
|
- onfocus="if (this.value == 'Artists') { this.value = ''; }"
|
169
|
|
- onblur="if (this.value == '') { this.value = 'Artists'; }"
|
170
|
|
- value="Artists" placeholder="Artists" type="text" name="artistname" size="17" />
|
171
|
|
- </form>
|
172
|
|
- </li>
|
173
|
|
- <li id="searchbar_requests">
|
174
|
|
- <span class="hidden">Requests: </span>
|
175
|
|
- <form class="search_form" name="requests" action="requests.php" method="get">
|
176
|
|
- <input id="requestssearch" spellcheck="false"
|
177
|
|
- onfocus="if (this.value == 'Requests') { this.value = ''; }"
|
178
|
|
- onblur="if (this.value == '') { this.value = 'Requests'; }"
|
179
|
|
- value="Requests" placeholder="Requests" type="text" name="search" size="17" />
|
180
|
|
- </form>
|
181
|
|
- </li>
|
182
|
|
- <li id="searchbar_forums">
|
183
|
|
- <span class="hidden">Forums: </span>
|
184
|
|
- <form class="search_form" name="forums" action="forums.php" method="get">
|
185
|
|
- <input value="search" type="hidden" name="action" />
|
186
|
|
- <input id="forumssearch"
|
187
|
|
- onfocus="if (this.value == 'Forums') { this.value = ''; }"
|
188
|
|
- onblur="if (this.value == '') { this.value = 'Forums'; }"
|
189
|
|
- value="Forums" placeholder="Forums" type="text" name="search" size="17" />
|
190
|
|
- </form>
|
191
|
|
- </li>
|
192
|
|
-<!--
|
193
|
|
- <li id="searchbar_wiki">
|
194
|
|
- <span class="hidden">Wiki: </span>
|
195
|
|
- <form class="search_form" name="wiki" action="wiki.php" method="get">
|
196
|
|
- <input type="hidden" name="action" value="search" />
|
197
|
|
- <input
|
198
|
|
- onfocus="if (this.value == 'Wiki') { this.value = ''; }"
|
199
|
|
- onblur="if (this.value == '') { this.value = 'Wiki'; }"
|
200
|
|
- value="Wiki" placeholder="Wiki" type="text" name="search" size="17" />
|
201
|
|
- </form>
|
202
|
|
- </li>
|
203
|
|
--->
|
204
|
|
- <li id="searchbar_log">
|
205
|
|
- <span class="hidden">Log: </span>
|
206
|
|
- <form class="search_form" name="log" action="log.php" method="get">
|
207
|
|
- <input id="logsearch"
|
208
|
|
- onfocus="if (this.value == 'Log') { this.value = ''; }"
|
209
|
|
- onblur="if (this.value == '') { this.value = 'Log'; }"
|
210
|
|
- value="Log" placeholder="Log" type="text" name="search" size="17" />
|
211
|
|
- </form>
|
212
|
|
- </li>
|
213
|
|
- <li id="searchbar_users">
|
214
|
|
- <span class="hidden">Users: </span>
|
215
|
|
- <form class="search_form" name="users" action="user.php" method="get">
|
216
|
|
- <input type="hidden" name="action" value="search" />
|
217
|
|
- <input
|
218
|
|
- id="userssearch"
|
219
|
|
- onfocus="if (this.value == 'Users') { this.value = ''; }"
|
220
|
|
- onblur="if (this.value == '') { this.value = 'Users'; }"
|
221
|
|
- value="Users" placeholder="Users" type="text" name="search" size="20" />
|
222
|
|
- </form>
|
223
|
|
- </li>
|
224
|
|
- </ul>
|
225
|
|
- </div>
|
226
|
141
|
<div id="menu">
|
227
|
|
- <h4 class="hidden">Site Menu</h4>
|
228
|
142
|
<ul>
|
229
|
|
- <li id="nav_index"<?=
|
230
|
|
- Format::add_class($PageID, array('index'), 'active', true)?>>
|
231
|
|
- <a href="index.php">Home</a>
|
232
|
|
- </li>
|
233
|
143
|
<li id="nav_torrents"<?=
|
234
|
|
- Format::add_class($PageID, array('torrents', false, false), 'active', true)?>>
|
|
144
|
+ Format::add_class($PageID, ['torrents', false, false], 'active', true)?>>
|
235
|
145
|
<a href="torrents.php">Torrents</a>
|
236
|
146
|
</li>
|
237
|
147
|
<li id="nav_collages"<?=
|
238
|
|
- Format::add_class($PageID, array('collages'), 'active', true)?>>
|
|
148
|
+ Format::add_class($PageID, ['collages'], 'active', true)?>>
|
239
|
149
|
<a href="collages.php">Collections</a>
|
240
|
150
|
</li>
|
241
|
151
|
<li id="nav_requests"<?=
|
242
|
|
- Format::add_class($PageID, array('requests'), 'active', true)?>>
|
|
152
|
+ Format::add_class($PageID, ['requests'], 'active', true)?>>
|
243
|
153
|
<a href="requests.php">Requests</a>
|
244
|
154
|
</li>
|
245
|
155
|
<li id="nav_forums"<?=
|
246
|
|
- Format::add_class($PageID, array('forums'), 'active', true)?>>
|
|
156
|
+ Format::add_class($PageID, ['forums'], 'active', true)?>>
|
247
|
157
|
<a href="forums.php">Forums</a>
|
248
|
158
|
</li>
|
249
|
159
|
<li id="nav_irc"<?=
|
250
|
|
- Format::add_class($PageID, array('chat'), 'active', true)?>>
|
|
160
|
+ Format::add_class($PageID, ['chat'], 'active', true)?>>
|
251
|
161
|
<a href="chat.php">IRC</a>
|
252
|
162
|
</li>
|
253
|
163
|
<li id="nav_top10"<?=
|
254
|
|
- Format::add_class($PageID, array('top10'), 'active', true)?>>
|
|
164
|
+ Format::add_class($PageID, ['top10'], 'active', true)?>>
|
255
|
165
|
<a href="top10.php">Top 10</a>
|
256
|
166
|
</li>
|
257
|
167
|
<li id="nav_rules"<?=
|
258
|
|
- Format::add_class($PageID, array('rules'), 'active', true)?>>
|
|
168
|
+ Format::add_class($PageID, ['rules'], 'active', true)?>>
|
259
|
169
|
<a href="rules.php">Rules</a>
|
260
|
170
|
</li>
|
261
|
171
|
<li id="nav_wiki"<?=
|
262
|
|
- Format::add_class($PageID, array('wiki'), 'active', true)?>>
|
|
172
|
+ Format::add_class($PageID, ['wiki'], 'active', true)?>>
|
263
|
173
|
<a href="wiki.php">Wiki</a>
|
264
|
174
|
</li>
|
265
|
|
- <li id="nav_staff"<?=
|
266
|
|
- Format::add_class($PageID, array('staff'), 'active', true)?>>
|
267
|
|
- <a href="staff.php">Staff</a>
|
|
175
|
+ <li id="nav_user" class="nav_dropdown" <?=Format::add_class($PageID, ['user', false, false], 'active', true, 'id')?>>
|
|
176
|
+ <a href="user.php?id=<?=G::$LoggedUser['ID']?>" class="username"><?=G::$LoggedUser['Username']?></a>
|
|
177
|
+ <div id="user_menu">
|
|
178
|
+ <a href="user.php?action=edit&userid=<?=G::$LoggedUser['ID']?>">Edit</a>
|
|
179
|
+ <a href="logout.php?auth=<?=G::$LoggedUser['AuthKey']?>">Logout</a>
|
|
180
|
+ </div>
|
|
181
|
+ </li>
|
|
182
|
+ <li id="nav_links" class="nav_dropdown<?=$NewSubscriptions ? ' highlite' : ''?>">
|
|
183
|
+ <a>â–ľ</a>
|
|
184
|
+ <div id="links_menu">
|
|
185
|
+ <a href="<?=Inbox::get_inbox_link(); ?>">Inbox</a>
|
|
186
|
+ <a href="staffpm.php">Staff Inbox</a>
|
|
187
|
+ <a href="torrents.php?type=uploaded&userid=<?=G::$LoggedUser['ID']?>">Uploads</a>
|
|
188
|
+ <a href="bookmarks.php?type=torrents">Bookmarks</a>
|
|
189
|
+<? if (check_perms('site_torrents_notify')) { ?>
|
|
190
|
+ <a href="user.php?action=notify">Notifications</a>
|
|
191
|
+<? } ?>
|
|
192
|
+ <a href="userhistory.php?action=subscriptions">Subscriptions</a>
|
|
193
|
+ <a href="comments.php">Comments</a>
|
|
194
|
+ <a href="friends.php">Friends</a>
|
|
195
|
+ <a href="better.php">Better</a>
|
|
196
|
+ </div>
|
268
|
197
|
</li>
|
269
|
198
|
</ul>
|
|
199
|
+ </ul>
|
|
200
|
+ </div>
|
|
201
|
+<?
|
|
202
|
+if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search
|
|
203
|
+ $UseAdvancedSearch = true;
|
|
204
|
+} else {
|
|
205
|
+ $UseAdvancedSearch = false;
|
|
206
|
+}
|
|
207
|
+?>
|
|
208
|
+ <div id="searchbars">
|
|
209
|
+ <form class="search_form" name="torrents" action="torrents.php" method="get">
|
|
210
|
+<? if ($UseAdvancedSearch) { ?>
|
|
211
|
+ <input type="hidden" name="action" value="advanced" />
|
|
212
|
+<? } ?>
|
|
213
|
+ <input id="torrentssearch" accesskey="t" spellcheck="false"
|
|
214
|
+ onfocus="if (this.value == 'Torrents') { this.value = ''; }"
|
|
215
|
+ onblur="if (this.value == '') { this.value = 'Torrents'; }"
|
|
216
|
+ value="Torrents" placeholder="Torrents" type="text" name="<?=$UseAdvancedSearch ? 'groupname' : 'searchstr' ?>" size="17" />
|
|
217
|
+ </form>
|
|
218
|
+ <form class="search_form" name="artists" action="artist.php" method="get">
|
|
219
|
+ <input id="artistsearch"<?=Users::has_autocomplete_enabled('search');
|
|
220
|
+ ?> accesskey="a"
|
|
221
|
+ spellcheck="false" autocomplete="off"
|
|
222
|
+ onfocus="if (this.value == 'Artists') { this.value = ''; }"
|
|
223
|
+ onblur="if (this.value == '') { this.value = 'Artists'; }"
|
|
224
|
+ value="Artists" placeholder="Artists" type="text" name="artistname" size="17" />
|
|
225
|
+ </form>
|
|
226
|
+ <form class="search_form" name="requests" action="requests.php" method="get">
|
|
227
|
+ <input id="requestssearch" spellcheck="false"
|
|
228
|
+ onfocus="if (this.value == 'Requests') { this.value = ''; }"
|
|
229
|
+ onblur="if (this.value == '') { this.value = 'Requests'; }"
|
|
230
|
+ value="Requests" placeholder="Requests" type="text" name="search" size="17" />
|
|
231
|
+ </form>
|
|
232
|
+ <form class="search_form" name="forums" action="forums.php" method="get">
|
|
233
|
+ <input value="search" type="hidden" name="action" />
|
|
234
|
+ <input id="forumssearch"
|
|
235
|
+ onfocus="if (this.value == 'Forums') { this.value = ''; }"
|
|
236
|
+ onblur="if (this.value == '') { this.value = 'Forums'; }"
|
|
237
|
+ value="Forums" placeholder="Forums" type="text" name="search" size="17" />
|
|
238
|
+ </form>
|
|
239
|
+<!--
|
|
240
|
+ <form class="search_form" name="wiki" action="wiki.php" method="get">
|
|
241
|
+ <input type="hidden" name="action" value="search" />
|
|
242
|
+ <input
|
|
243
|
+ onfocus="if (this.value == 'Wiki') { this.value = ''; }"
|
|
244
|
+ onblur="if (this.value == '') { this.value = 'Wiki'; }"
|
|
245
|
+ value="Wiki" placeholder="Wiki" type="text" name="search" size="17" />
|
|
246
|
+ </form>
|
|
247
|
+-->
|
|
248
|
+ <form class="search_form" name="log" action="log.php" method="get">
|
|
249
|
+ <input id="logsearch"
|
|
250
|
+ onfocus="if (this.value == 'Log') { this.value = ''; }"
|
|
251
|
+ onblur="if (this.value == '') { this.value = 'Log'; }"
|
|
252
|
+ value="Log" placeholder="Log" type="text" name="search" size="17" />
|
|
253
|
+ </form>
|
|
254
|
+ <form class="search_form" name="users" action="user.php" method="get">
|
|
255
|
+ <input type="hidden" name="action" value="search" />
|
|
256
|
+ <input
|
|
257
|
+ id="userssearch"
|
|
258
|
+ onfocus="if (this.value == 'Users') { this.value = ''; }"
|
|
259
|
+ onblur="if (this.value == '') { this.value = 'Users'; }"
|
|
260
|
+ value="Users" placeholder="Users" type="text" name="search" size="20" />
|
|
261
|
+ </form>
|
270
|
262
|
</div>
|
271
|
263
|
<div id="userinfo">
|
272
|
|
- <ul id="userinfo_username">
|
273
|
|
- <li id="nav_userinfo" <?=Format::add_class($PageID, array('user', false, false), 'active', true, 'id')?>>
|
274
|
|
- <a href="user.php?id=<?=G::$LoggedUser['ID']?>" class="username"><?=G::$LoggedUser['Username']?></a>
|
275
|
|
- </li>
|
276
|
|
- <li id="nav_userclass">
|
277
|
|
- <span class="hidden userclass"><?=$ClassLevels[G::$LoggedUser['Class']]['Name']?></span>
|
278
|
|
- </li>
|
279
|
|
- <li id="nav_useredit" class="brackets<?=Format::add_class($PageID, array('user','edit'), 'active', false)?>">
|
280
|
|
- <a href="user.php?action=edit&userid=<?=G::$LoggedUser['ID']?>">Edit</a>
|
281
|
|
- </li>
|
282
|
|
- <li id="nav_logout" class="brackets">
|
283
|
|
- <a href="logout.php?auth=<?=G::$LoggedUser['AuthKey']?>">Logout</a>
|
284
|
|
- </li>
|
285
|
|
- </ul>
|
286
|
264
|
<ul id="userinfo_major">
|
287
|
265
|
<li id="nav_upload" class="brackets<?=Format::add_class($PageID, array('upload'), 'active', false)?>">
|
288
|
266
|
<a href="upload.php">Upload</a>
|
|
@@ -302,6 +280,9 @@ if (check_perms('site_send_unlimited_invites')) {
|
302
|
280
|
<li id="nav_donate" class="brackets<?=Format::add_class($PageID, array('donate'), 'active', false)?>">
|
303
|
281
|
<a href="donate.php">Donate</a>
|
304
|
282
|
</li>
|
|
283
|
+ <li id="nav_staff" class="brackets<?=Format::add_class($PageID, array('staff'), 'active', false)?>">
|
|
284
|
+ <a href="staff.php">Staff</a>
|
|
285
|
+ </li>
|
305
|
286
|
</ul>
|
306
|
287
|
<ul id="userinfo_stats">
|
307
|
288
|
<li id="stats_seeding">
|
|
@@ -347,47 +328,6 @@ if (check_perms('site_send_unlimited_invites')) {
|
347
|
328
|
<? }
|
348
|
329
|
?>
|
349
|
330
|
</ul>
|
350
|
|
- <ul id="userinfo_minor"<?=$NewSubscriptions ? ' class="highlite"' : ''?>>
|
351
|
|
- <li>
|
352
|
|
- <span id="header_links_menu" class="brackets">Links â–ľ</span>
|
353
|
|
- <ul>
|
354
|
|
- <li id="nav_inbox"<?=
|
355
|
|
- Format::add_class($PageID, array('inbox'), 'active', true)?>>
|
356
|
|
- <a href="<?=Inbox::get_inbox_link(); ?>">Inbox</a>
|
357
|
|
- </li>
|
358
|
|
- <li id="nav_staffinbox"<?=
|
359
|
|
- Format::add_class($PageID, array('staffpm'), 'active', true)?>>
|
360
|
|
- <a href="staffpm.php">Staff Inbox</a>
|
361
|
|
- </li>
|
362
|
|
- <li id="nav_uploaded"<?=
|
363
|
|
- Format::add_class($PageID, array('torrents', false, 'uploaded'), 'active', true, 'userid')?>>
|
364
|
|
- <a href="torrents.php?type=uploaded&userid=<?=G::$LoggedUser['ID']?>">Uploads</a>
|
365
|
|
- </li>
|
366
|
|
- <li id="nav_bookmarks"<?=
|
367
|
|
- Format::add_class($PageID, array('bookmarks'), 'active', true)?>>
|
368
|
|
- <a href="bookmarks.php?type=torrents">Bookmarks</a>
|
369
|
|
- </li>
|
370
|
|
-<? if (check_perms('site_torrents_notify')) { ?>
|
371
|
|
- <li id="nav_notifications"<?=
|
372
|
|
- Format::add_class($PageID, array(array('torrents', 'notify'), array('user', 'notify')), 'active', true, 'userid')?>>
|
373
|
|
- <a href="user.php?action=notify">Notifications</a>
|
374
|
|
- </li>
|
375
|
|
-<? }
|
376
|
|
- $ClassNames = $NewSubscriptions ? 'new-subscriptions' : '';
|
377
|
|
- $ClassNames = trim($ClassNames.Format::add_class($PageID, array('userhistory', 'subscriptions'), 'active', false));
|
378
|
|
-?>
|
379
|
|
- <li id="nav_subscriptions"<?=$ClassNames ? " class=\"$ClassNames\"" : ''?>>
|
380
|
|
- <a href="userhistory.php?action=subscriptions">Subscriptions</a>
|
381
|
|
- </li>
|
382
|
|
- <li id="nav_comments"<?=
|
383
|
|
- Format::add_class($PageID, array('comments'), 'active', true, 'userid')?>>
|
384
|
|
- <a href="comments.php">Comments</a></li>
|
385
|
|
- <li id="nav_friends"<?=
|
386
|
|
- Format::add_class($PageID, array('friends'), 'active', true)?>>
|
387
|
|
- <a href="friends.php">Friends</a></li>
|
388
|
|
- </ul>
|
389
|
|
- </li>
|
390
|
|
- </ul>
|
391
|
331
|
</div>
|
392
|
332
|
</div>
|
393
|
333
|
<?
|