Browse Source

Enable wiki search and other small edits

pjc 5 years ago
parent
commit
af820501b2

+ 188
- 192
design/privateheader.php View File

1
-<?
1
+<?php
2
 
2
 
3
 define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
3
 define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
4
 
4
 
26
   <link rel="alternate" type="application/rss+xml"
26
   <link rel="alternate" type="application/rss+xml"
27
       href="feeds.php?feed=torrents_notify_<?=G::$LoggedUser['torrent_pass']?>&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>"
27
       href="feeds.php?feed=torrents_notify_<?=G::$LoggedUser['torrent_pass']?>&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>"
28
       title="<?=SITE_NAME?> - P.T.N.">
28
       title="<?=SITE_NAME?> - P.T.N.">
29
-<?
29
+<?php
30
 if (isset(G::$LoggedUser['Notify'])) {
30
 if (isset(G::$LoggedUser['Notify'])) {
31
-  foreach (G::$LoggedUser['Notify'] as $Filter) {
32
-    list($FilterID, $FilterName) = $Filter;
33
-?>
31
+    foreach (G::$LoggedUser['Notify'] as $Filter) {
32
+        list($FilterID, $FilterName) = $Filter; ?>
34
   <link rel="alternate" type="application/rss+xml"
33
   <link rel="alternate" type="application/rss+xml"
35
       href="feeds.php?feed=torrents_notify_<?=$FilterID?>_<?=G::$LoggedUser['torrent_pass']?>&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>&amp;name=<?=urlencode($FilterName)?>"
34
       href="feeds.php?feed=torrents_notify_<?=$FilterID?>_<?=G::$LoggedUser['torrent_pass']?>&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>&amp;name=<?=urlencode($FilterName)?>"
36
       title="<?=SITE_NAME?> - <?=display_str($FilterName)?>">
35
       title="<?=SITE_NAME?> - <?=display_str($FilterName)?>">
37
-<?
38
-  }
36
+<?php
37
+    }
39
 }
38
 }
40
 ?>
39
 ?>
41
   <link rel="alternate" type="application/rss+xml"
40
   <link rel="alternate" type="application/rss+xml"
59
   <link rel="stylesheet" type="text/css"
58
   <link rel="stylesheet" type="text/css"
60
       href="<?=STATIC_SERVER?>styles/global.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/global.css')?>">
59
       href="<?=STATIC_SERVER?>styles/global.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/global.css')?>">
61
   <link rel="stylesheet" href="<?=STATIC_SERVER?>styles/tooltipster/style.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/tooltipster/style.css')?>" type="text/css" media="screen">
60
   <link rel="stylesheet" href="<?=STATIC_SERVER?>styles/tooltipster/style.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/tooltipster/style.css')?>" type="text/css" media="screen">
62
-<?
61
+<?php
63
 if (empty(G::$LoggedUser['StyleURL'])) {
62
 if (empty(G::$LoggedUser['StyleURL'])) {
64
-  if (($StyleColors = G::$Cache->get_value('stylesheet_colors')) === false) {
65
-    G::$DB->query('SELECT LOWER(REPLACE(Name, " ", "_")) AS Name, Color FROM stylesheets WHERE COLOR IS NOT NULL');
66
-    while (list($StyleName, $StyleColor) = G::$DB->next_record()) {
67
-      $StyleColors[$StyleName] = $StyleColor;
63
+    if (($StyleColors = G::$Cache->get_value('stylesheet_colors')) === false) {
64
+        G::$DB->query('SELECT LOWER(REPLACE(Name, " ", "_")) AS Name, Color FROM stylesheets WHERE COLOR IS NOT NULL');
65
+        while (list($StyleName, $StyleColor) = G::$DB->next_record()) {
66
+            $StyleColors[$StyleName] = $StyleColor;
67
+        }
68
+        G::$Cache->cache_value('stylesheet_colors', $StyleColors, 0);
68
     }
69
     }
69
-    G::$Cache->cache_value('stylesheet_colors', $StyleColors, 0);
70
-  }
71
-  if (isset($StyleColors[G::$LoggedUser['StyleName']])) { ?>
70
+    if (isset($StyleColors[G::$LoggedUser['StyleName']])) { ?>
72
 <meta name="theme-color" content="<?=$StyleColors[G::$LoggedUser['StyleName']]?>">
71
 <meta name="theme-color" content="<?=$StyleColors[G::$LoggedUser['StyleName']]?>">
73
-<? } ?>
72
+<?php } ?>
74
 <link rel="stylesheet" type="text/css" title="<?=G::$LoggedUser['StyleName']?>" media="screen" href="<?=STATIC_SERVER?>styles/<?=G::$LoggedUser['StyleName']?>/style.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/'.G::$LoggedUser['StyleName'].'/style.css')?>">
73
 <link rel="stylesheet" type="text/css" title="<?=G::$LoggedUser['StyleName']?>" media="screen" href="<?=STATIC_SERVER?>styles/<?=G::$LoggedUser['StyleName']?>/style.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/'.G::$LoggedUser['StyleName'].'/style.css')?>">
75
-<?
74
+<?php
76
 } else {
75
 } else {
77
-  $StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
78
-  if (substr(G::$LoggedUser['StyleURL'], -4) == '.css'
76
+        $StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
77
+        if (substr(G::$LoggedUser['StyleURL'], -4) == '.css'
79
       && empty($StyleURLInfo['query']) && empty($StyleURLInfo['fragment'])
78
       && empty($StyleURLInfo['query']) && empty($StyleURLInfo['fragment'])
80
       && ($StyleURLInfo['host'] == SITE_DOMAIN)
79
       && ($StyleURLInfo['host'] == SITE_DOMAIN)
81
       && file_exists(SERVER_ROOT.$StyleURLInfo['path'])) {
80
       && file_exists(SERVER_ROOT.$StyleURLInfo['path'])) {
82
-    $StyleURL = G::$LoggedUser['StyleURL'].'?v='.filemtime(SERVER_ROOT.$StyleURLInfo['path']);
83
-  } else {
84
-    $StyleURL = G::$LoggedUser['StyleURL'];
85
-  }
86
-?>
81
+            $StyleURL = G::$LoggedUser['StyleURL'].'?v='.filemtime(SERVER_ROOT.$StyleURLInfo['path']);
82
+        } else {
83
+            $StyleURL = G::$LoggedUser['StyleURL'];
84
+        } ?>
87
 <link rel="stylesheet" type="text/css" media="screen" href="<?=$StyleURL?>" title="External CSS">
85
 <link rel="stylesheet" type="text/css" media="screen" href="<?=$StyleURL?>" title="External CSS">
88
-<?
89
-}
86
+<?php
87
+    }
90
 $ExtraCSS = explode(',', $CSSIncludes);
88
 $ExtraCSS = explode(',', $CSSIncludes);
91
 foreach ($ExtraCSS as $CSS) {
89
 foreach ($ExtraCSS as $CSS) {
92
-  if (trim($CSS) == '') {
93
-    continue;
94
-  }
95
-?>
90
+    if (trim($CSS) == '') {
91
+        continue;
92
+    } ?>
96
   <link rel="stylesheet" type="text/css" media="screen" href="<?=STATIC_SERVER."styles/$CSS/style.css?v=".filemtime(SERVER_ROOT.STATIC_SERVER."styles/$CSS/style.css")?>">
93
   <link rel="stylesheet" type="text/css" media="screen" href="<?=STATIC_SERVER."styles/$CSS/style.css?v=".filemtime(SERVER_ROOT.STATIC_SERVER."styles/$CSS/style.css")?>">
97
-<?
94
+<?php
98
 }
95
 }
99
 
96
 
100
 $Scripts = array_merge(array('jquery', 'global', 'ajax.class', 'jquery.autocomplete', 'autocomplete', 'tooltipster'), explode(',', $JSIncludes));
97
 $Scripts = array_merge(array('jquery', 'global', 'ajax.class', 'jquery.autocomplete', 'autocomplete', 'tooltipster'), explode(',', $JSIncludes));
101
 foreach ($Scripts as $Script) {
98
 foreach ($Scripts as $Script) {
102
-  if (trim($Script) == '') { continue; }
103
-  $Async = (in_array($Script, ['jquery','global','ajax.class'])) ? '' : 'async';
104
-  if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) {
105
-    $ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js");
106
-    $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, SERVER_ROOT.STATIC_SERVER."functions/$Script.js", true));
107
-    $ScriptStats['algo'] = INTEGRITY_ALGO;
108
-    G::$Cache->cache_value("script_stats_$Script", $ScriptStats);
109
-  }
110
-?>
99
+    if (trim($Script) == '') {
100
+        continue;
101
+    }
102
+    $Async = (in_array($Script, ['jquery','global','ajax.class'])) ? '' : 'async';
103
+    if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) {
104
+        $ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js");
105
+        $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, SERVER_ROOT.STATIC_SERVER."functions/$Script.js", true));
106
+        $ScriptStats['algo'] = INTEGRITY_ALGO;
107
+        G::$Cache->cache_value("script_stats_$Script", $ScriptStats);
108
+    } ?>
111
   <script src="<?=STATIC_SERVER."functions/$Script.js?v=$ScriptStats[mtime]"?>" type="text/javascript" integrity="<?="$ScriptStats[algo]-$ScriptStats[hash]"?>" <?=$Async?>></script>
109
   <script src="<?=STATIC_SERVER."functions/$Script.js?v=$ScriptStats[mtime]"?>" type="text/javascript" integrity="<?="$ScriptStats[algo]-$ScriptStats[hash]"?>" <?=$Async?>></script>
112
-<?
110
+<?php
113
 }
111
 }
114
 
112
 
115
 global $ClassLevels;
113
 global $ClassLevels;
121
 $NewSubscriptions = false;
119
 $NewSubscriptions = false;
122
 $NotificationSpans = [];
120
 $NotificationSpans = [];
123
 foreach ($Notifications as $Type => $Notification) {
121
 foreach ($Notifications as $Type => $Notification) {
124
-  if ($Type === NotificationsManager::SUBSCRIPTIONS) {
125
-    $NewSubscriptions = true;
126
-  }
127
-  if ($UseNoty) {
128
-    $NotificationSpans[] = "<span class=\"noty-notification\" style=\"display: none;\" data-noty-type=\"$Type\" data-noty-id=\"$Notification[id]\" data-noty-importance=\"$Notification[importance]\" data-noty-url=\"$Notification[url]\">$Notification[message]</span>";
129
-  }
122
+    if ($Type === NotificationsManager::SUBSCRIPTIONS) {
123
+        $NewSubscriptions = true;
124
+    }
125
+    if ($UseNoty) {
126
+        $NotificationSpans[] = "<span class=\"noty-notification\" style=\"display: none;\" data-noty-type=\"$Type\" data-noty-id=\"$Notification[id]\" data-noty-importance=\"$Notification[importance]\" data-noty-url=\"$Notification[url]\">$Notification[message]</span>";
127
+    }
130
 }
128
 }
131
 if ($UseNoty && !empty($NotificationSpans)) {
129
 if ($UseNoty && !empty($NotificationSpans)) {
132
-  NotificationsManagerView::load_js();
130
+    NotificationsManagerView::load_js();
133
 }
131
 }
134
 if ($NotificationsManager->is_skipped(NotificationsManager::SUBSCRIPTIONS)) {
132
 if ($NotificationsManager->is_skipped(NotificationsManager::SUBSCRIPTIONS)) {
135
-  $NewSubscriptions = Subscriptions::has_new_subscriptions();
133
+    $NewSubscriptions = Subscriptions::has_new_subscriptions();
136
 }
134
 }
137
 ?>
135
 ?>
138
 </head>
136
 </head>
139
-<?
137
+<?php
140
   if (!empty(G::$LoggedUser['StyleAdditions'])) {
138
   if (!empty(G::$LoggedUser['StyleAdditions'])) {
141
-    $BodyStyles = 'style_'.implode(' style_', G::$LoggedUser['StyleAdditions']);
139
+      $BodyStyles = 'style_'.implode(' style_', G::$LoggedUser['StyleAdditions']);
142
   }
140
   }
143
 ?>
141
 ?>
144
 <body id="<?=$Document == 'collages' ? 'collage' : $Document?>" class="<?=($BodyStyles??'')?>">
142
 <body id="<?=$Document == 'collages' ? 'collage' : $Document?>" class="<?=($BodyStyles??'')?>">
196
               <a href="staffpm.php">Staff Inbox</a>
194
               <a href="staffpm.php">Staff Inbox</a>
197
               <a href="torrents.php?type=uploaded&amp;userid=<?=G::$LoggedUser['ID']?>">Uploads</a>
195
               <a href="torrents.php?type=uploaded&amp;userid=<?=G::$LoggedUser['ID']?>">Uploads</a>
198
               <a href="bookmarks.php?type=torrents">Bookmarks</a>
196
               <a href="bookmarks.php?type=torrents">Bookmarks</a>
199
-<?  if (check_perms('site_torrents_notify')) { ?>
197
+<?php  if (check_perms('site_torrents_notify')) { ?>
200
               <a href="user.php?action=notify">Notifications</a>
198
               <a href="user.php?action=notify">Notifications</a>
201
-<?  } ?>
199
+<?php  } ?>
202
               <a href="userhistory.php?action=subscriptions">Subscriptions</a>
200
               <a href="userhistory.php?action=subscriptions">Subscriptions</a>
203
               <a href="comments.php">Comments</a>
201
               <a href="comments.php">Comments</a>
204
               <a href="friends.php">Friends</a>
202
               <a href="friends.php">Friends</a>
207
           </li>
205
           </li>
208
         </ul>
206
         </ul>
209
       </div>
207
       </div>
210
-<?
208
+<?php
211
 if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search
209
 if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search
212
-  $UseAdvancedSearch = true;
213
-} else {
214
-  $UseAdvancedSearch = false;
215
-}
210
+                $UseAdvancedSearch = true;
211
+            } else {
212
+                $UseAdvancedSearch = false;
213
+            }
216
 ?>
214
 ?>
217
       <div id="searchbars">
215
       <div id="searchbars">
218
         <form class="search_form" name="torrents" action="torrents.php" method="get">
216
         <form class="search_form" name="torrents" action="torrents.php" method="get">
219
-<?  if ($UseAdvancedSearch) { ?>
217
+<?php  if ($UseAdvancedSearch) { ?>
220
           <input type="hidden" name="action" value="advanced">
218
           <input type="hidden" name="action" value="advanced">
221
-<?  } ?>
219
+<?php  } ?>
222
           <input id="torrentssearch" aria-label="Search torrents" accesskey="t" spellcheck="false" autocomplete="off" placeholder="Torrents" type="text" name="<?=$UseAdvancedSearch ? 'advgroupname' : 'searchstr' ?>" size="17">
220
           <input id="torrentssearch" aria-label="Search torrents" accesskey="t" spellcheck="false" autocomplete="off" placeholder="Torrents" type="text" name="<?=$UseAdvancedSearch ? 'advgroupname' : 'searchstr' ?>" size="17">
223
         </form>
221
         </form>
224
         <form class="search_form" name="artists" action="artist.php" method="get">
222
         <form class="search_form" name="artists" action="artist.php" method="get">
225
-          <input id="artistsearch"<?=Users::has_autocomplete_enabled('search')?> aria-label="Search artists" accesskey="a" spellcheck="false" autocomplete="off" placeholder="Artists" type="text" name="artistname" size="17">
223
+          <input id="artistsearch"<?=Users::has_autocomplete_enabled('search')?> aria-label="Search authors" accesskey="a" spellcheck="false" autocomplete="off" placeholder="Authors" type="text" name="artistname" size="17">
226
         </form>
224
         </form>
227
         <form class="search_form" name="requests" action="requests.php" method="get">
225
         <form class="search_form" name="requests" action="requests.php" method="get">
228
           <input id="requestssearch" aria-label="Search requests" spellcheck="false" autocomplete="off" placeholder="Requests" type="text" name="search" size="17">
226
           <input id="requestssearch" aria-label="Search requests" spellcheck="false" autocomplete="off" placeholder="Requests" type="text" name="search" size="17">
231
           <input value="search" type="hidden" name="action">
229
           <input value="search" type="hidden" name="action">
232
           <input id="forumssearch" aria-label="Search forums" spellcheck="false" autocomplete="off" placeholder="Forums" type="text" name="search" size="17">
230
           <input id="forumssearch" aria-label="Search forums" spellcheck="false" autocomplete="off" placeholder="Forums" type="text" name="search" size="17">
233
         </form>
231
         </form>
234
-<!--
235
         <form class="search_form" name="wiki" action="wiki.php" method="get">
232
         <form class="search_form" name="wiki" action="wiki.php" method="get">
236
           <input type="hidden" name="action" value="search">
233
           <input type="hidden" name="action" value="search">
237
-          <input value="Wiki" placeholder="Wiki" type="text" name="search" size="17">
234
+          <input id="wikisearch" aria-label="Search wiki" spellcheck="false" autocomplete="off" placeholder="Wiki" type="text" name="search" size="17">
235
+
238
         </form>
236
         </form>
239
--->
240
         <form class="search_form" name="log" action="log.php" method="get">
237
         <form class="search_form" name="log" action="log.php" method="get">
241
           <input id="logsearch" aria-label="Search log" spellcheck="false" autocomplete="off" placeholder="Log" type="text" name="search" size="17">
238
           <input id="logsearch" aria-label="Search log" spellcheck="false" autocomplete="off" placeholder="Log" type="text" name="search" size="17">
242
         </form>
239
         </form>
250
           <li id="nav_upload" class="brackets<?=Format::add_class($PageID, array('upload'), 'active', false)?>">
247
           <li id="nav_upload" class="brackets<?=Format::add_class($PageID, array('upload'), 'active', false)?>">
251
             <a href="upload.php">Upload</a>
248
             <a href="upload.php">Upload</a>
252
           </li>
249
           </li>
253
-<?
250
+<?php
254
 if (check_perms('site_send_unlimited_invites')) {
251
 if (check_perms('site_send_unlimited_invites')) {
255
-  $Invites = ' (∞)';
252
+    $Invites = ' (∞)';
256
 } elseif (G::$LoggedUser['Invites'] > 0) {
253
 } elseif (G::$LoggedUser['Invites'] > 0) {
257
-  $Invites = ' ('.G::$LoggedUser['Invites'].')';
254
+    $Invites = ' ('.G::$LoggedUser['Invites'].')';
258
 } else {
255
 } else {
259
-  $Invites = '';
256
+    $Invites = '';
260
 }
257
 }
261
 ?>
258
 ?>
262
           <li id="nav_invite" class="brackets<?=Format::add_class($PageID, array('user','invite'), 'active', false)?>">
259
           <li id="nav_invite" class="brackets<?=Format::add_class($PageID, array('user','invite'), 'active', false)?>">
263
             <a href="user.php?action=invite">Invite<?=$Invites?></a>
260
             <a href="user.php?action=invite">Invite<?=$Invites?></a>
264
           </li>
261
           </li>
265
-<? if (FEATURE_DONATE) { ?>
262
+<?php if (FEATURE_DONATE) { ?>
266
           <li id="nav_donate" class="brackets<?=Format::add_class($PageID, array('donate'), 'active', false)?>">
263
           <li id="nav_donate" class="brackets<?=Format::add_class($PageID, array('donate'), 'active', false)?>">
267
             <a href="donate.php">Donate</a>
264
             <a href="donate.php">Donate</a>
268
           </li>
265
           </li>
269
-<? } ?>
266
+<?php } ?>
270
           <li id="nav_staff" class="brackets<?=Format::add_class($PageID, array('staff'), 'active', false)?>">
267
           <li id="nav_staff" class="brackets<?=Format::add_class($PageID, array('staff'), 'active', false)?>">
271
             <a href="staff.php">Staff</a>
268
             <a href="staff.php">Staff</a>
272
           </li>
269
           </li>
283
           <li id="stats_ratio">
280
           <li id="stats_ratio">
284
             Ratio: <span class="stat"><?=Format::get_ratio_html(G::$LoggedUser['BytesUploaded'], G::$LoggedUser['BytesDownloaded'])?></span>
281
             Ratio: <span class="stat"><?=Format::get_ratio_html(G::$LoggedUser['BytesUploaded'], G::$LoggedUser['BytesDownloaded'])?></span>
285
           </li>
282
           </li>
286
-<?  if (!empty(G::$LoggedUser['RequiredRatio']) && G::$LoggedUser['RequiredRatio'] > 0) { ?>
283
+<?php  if (!empty(G::$LoggedUser['RequiredRatio']) && G::$LoggedUser['RequiredRatio'] > 0) { ?>
287
           <li id="stats_required">
284
           <li id="stats_required">
288
             <a href="rules.php?p=ratio">Required</a>:
285
             <a href="rules.php?p=ratio">Required</a>:
289
             <span class="stat tooltip" title="<?=number_format(G::$LoggedUser['RequiredRatio'], 5)?>"><?=number_format(G::$LoggedUser['RequiredRatio'], 2)?></span>
286
             <span class="stat tooltip" title="<?=number_format(G::$LoggedUser['RequiredRatio'], 5)?>"><?=number_format(G::$LoggedUser['RequiredRatio'], 2)?></span>
290
           </li>
287
           </li>
291
-<?  }
288
+<?php  }
292
 
289
 
293
   if (G::$LoggedUser['FLTokens'] > 0) { ?>
290
   if (G::$LoggedUser['FLTokens'] > 0) { ?>
294
           <li id="fl_tokens">
291
           <li id="fl_tokens">
297
               <a href="userhistory.php?action=token_history&amp;userid=<?=G::$LoggedUser['ID']?>"><?=G::$LoggedUser['FLTokens']?></a>
294
               <a href="userhistory.php?action=token_history&amp;userid=<?=G::$LoggedUser['ID']?>"><?=G::$LoggedUser['FLTokens']?></a>
298
             </span>
295
             </span>
299
           </li>
296
           </li>
300
-<?  }
297
+<?php  }
301
 ?>
298
 ?>
302
           <li id="bonus_points">
299
           <li id="bonus_points">
303
             <a href="wiki.php?action=article&amp;name=bonuspoints"><?=BONUS_POINTS?></a>:
300
             <a href="wiki.php?action=article&amp;name=bonuspoints"><?=BONUS_POINTS?></a>:
305
               <a href="store.php"><?=number_format(G::$LoggedUser['BonusPoints'])?></a>
302
               <a href="store.php"><?=number_format(G::$LoggedUser['BonusPoints'])?></a>
306
             </span>
303
             </span>
307
           </li>
304
           </li>
308
-<?  if (G::$LoggedUser['HnR'] > 0) { ?>
305
+<?php  if (G::$LoggedUser['HnR'] > 0) { ?>
309
           <li id="hnr">
306
           <li id="hnr">
310
             <a href="snatchlist.php">HnRs</a>:
307
             <a href="snatchlist.php">HnRs</a>:
311
             <span class="stat">
308
             <span class="stat">
312
               <a><?=G::$LoggedUser['HnR']?></a>
309
               <a><?=G::$LoggedUser['HnR']?></a>
313
             </span>
310
             </span>
314
           </li>
311
           </li>
315
-<?  }
312
+<?php  }
316
 ?>
313
 ?>
317
         </ul>
314
         </ul>
318
       </div>
315
       </div>
319
-<? if (!apcu_exists('DBKEY')) { ?>
316
+<?php if (!apcu_exists('DBKEY')) { ?>
320
       <a id="dbcrypt" class="tooltip" href="wiki.php?action=article&amp;name=databaseencryption" title="Database is not fully decrypted. Site functionality will be reduced until staff can provide the decryption key. Click to learn more."></a>
317
       <a id="dbcrypt" class="tooltip" href="wiki.php?action=article&amp;name=databaseencryption" title="Database is not fully decrypted. Site functionality will be reduced until staff can provide the decryption key. Click to learn more."></a>
321
-<? } ?>
318
+<?php } ?>
322
     </div>
319
     </div>
323
-<?
320
+<?php
324
 //Start handling alert bars
321
 //Start handling alert bars
325
 $Alerts = [];
322
 $Alerts = [];
326
 $ModBar = [];
323
 $ModBar = [];
327
 
324
 
328
 // Staff blog
325
 // Staff blog
329
 if (check_perms('users_mod')) {
326
 if (check_perms('users_mod')) {
330
-  global $SBlogReadTime, $LatestSBlogTime;
331
-  if (!$SBlogReadTime && ($SBlogReadTime = G::$Cache->get_value('staff_blog_read_'.G::$LoggedUser['ID'])) === false) {
332
-    G::$DB->query("
327
+    global $SBlogReadTime, $LatestSBlogTime;
328
+    if (!$SBlogReadTime && ($SBlogReadTime = G::$Cache->get_value('staff_blog_read_'.G::$LoggedUser['ID'])) === false) {
329
+        G::$DB->query("
333
       SELECT Time
330
       SELECT Time
334
       FROM staff_blog_visits
331
       FROM staff_blog_visits
335
       WHERE UserID = ".G::$LoggedUser['ID']);
332
       WHERE UserID = ".G::$LoggedUser['ID']);
336
-    if (list($SBlogReadTime) = G::$DB->next_record()) {
337
-      $SBlogReadTime = strtotime($SBlogReadTime);
338
-    } else {
339
-      $SBlogReadTime = 0;
333
+        if (list($SBlogReadTime) = G::$DB->next_record()) {
334
+            $SBlogReadTime = strtotime($SBlogReadTime);
335
+        } else {
336
+            $SBlogReadTime = 0;
337
+        }
338
+        G::$Cache->cache_value('staff_blog_read_'.G::$LoggedUser['ID'], $SBlogReadTime, 1209600);
340
     }
339
     }
341
-    G::$Cache->cache_value('staff_blog_read_'.G::$LoggedUser['ID'], $SBlogReadTime, 1209600);
342
-  }
343
-  if (!$LatestSBlogTime && ($LatestSBlogTime = G::$Cache->get_value('staff_blog_latest_time')) === false) {
344
-    G::$DB->query("
340
+    if (!$LatestSBlogTime && ($LatestSBlogTime = G::$Cache->get_value('staff_blog_latest_time')) === false) {
341
+        G::$DB->query("
345
       SELECT MAX(Time)
342
       SELECT MAX(Time)
346
       FROM staff_blog");
343
       FROM staff_blog");
347
-    list($LatestSBlogTime) = G::$DB->next_record();
348
-    if ($LatestSBlogTime) {
349
-      $LatestSBlogTime = strtotime($LatestSBlogTime);
350
-    } else {
351
-      $LatestSBlogTime = 0;
344
+        list($LatestSBlogTime) = G::$DB->next_record();
345
+        if ($LatestSBlogTime) {
346
+            $LatestSBlogTime = strtotime($LatestSBlogTime);
347
+        } else {
348
+            $LatestSBlogTime = 0;
349
+        }
350
+        G::$Cache->cache_value('staff_blog_latest_time', $LatestSBlogTime, 1209600);
351
+    }
352
+    if ($SBlogReadTime < $LatestSBlogTime) {
353
+        $Alerts[] = '<a href="staffblog.php">New staff blog post!</a>';
352
     }
354
     }
353
-    G::$Cache->cache_value('staff_blog_latest_time', $LatestSBlogTime, 1209600);
354
-  }
355
-  if ($SBlogReadTime < $LatestSBlogTime) {
356
-    $Alerts[] = '<a href="staffblog.php">New staff blog post!</a>';
357
-  }
358
 }
355
 }
359
 
356
 
360
 // Inbox
357
 // Inbox
361
 if ($NotificationsManager->is_traditional(NotificationsManager::INBOX)) {
358
 if ($NotificationsManager->is_traditional(NotificationsManager::INBOX)) {
362
-  $NotificationsManager->load_inbox();
363
-  $NewMessages = $NotificationsManager->get_notifications();
364
-  if (isset($NewMessages[NotificationsManager::INBOX])) {
365
-    $Alerts[] = NotificationsManagerView::format_traditional($NewMessages[NotificationsManager::INBOX]);
366
-  }
367
-  $NotificationsManager->clear_notifications_array();
359
+    $NotificationsManager->load_inbox();
360
+    $NewMessages = $NotificationsManager->get_notifications();
361
+    if (isset($NewMessages[NotificationsManager::INBOX])) {
362
+        $Alerts[] = NotificationsManagerView::format_traditional($NewMessages[NotificationsManager::INBOX]);
363
+    }
364
+    $NotificationsManager->clear_notifications_array();
368
 }
365
 }
369
 
366
 
370
 if (G::$LoggedUser['RatioWatch']) {
367
 if (G::$LoggedUser['RatioWatch']) {
371
-  $Alerts[] = '<a href="rules.php?p=ratio">Ratio Watch</a>: You have '.time_diff(G::$LoggedUser['RatioWatchEnds'], 3).' to get your ratio over your required ratio or your leeching abilities will be disabled.';
368
+    $Alerts[] = '<a href="rules.php?p=ratio">Ratio Watch</a>: You have '.time_diff(G::$LoggedUser['RatioWatchEnds'], 3).' to get your ratio over your required ratio or your leeching abilities will be disabled.';
372
 } elseif (G::$LoggedUser['CanLeech'] != 1) {
369
 } elseif (G::$LoggedUser['CanLeech'] != 1) {
373
-  $Alerts[] = '<a href="rules.php?p=ratio">Ratio Watch</a>: Your downloading privileges are disabled until you meet your required ratio.';
370
+    $Alerts[] = '<a href="rules.php?p=ratio">Ratio Watch</a>: Your downloading privileges are disabled until you meet your required ratio.';
374
 }
371
 }
375
 
372
 
376
 // Torrents
373
 // Torrents
377
 if ($NotificationsManager->is_traditional(NotificationsManager::TORRENTS)) {
374
 if ($NotificationsManager->is_traditional(NotificationsManager::TORRENTS)) {
378
-  $NotificationsManager->load_torrent_notifications();
379
-  $NewTorrents = $NotificationsManager->get_notifications();
380
-  if (isset($NewTorrents[NotificationsManager::TORRENTS])) {
381
-    $Alerts[] = NotificationsManagerView::format_traditional($NewTorrents[NotificationsManager::TORRENTS]);
382
-  }
383
-  $NotificationsManager->clear_notifications_array();
375
+    $NotificationsManager->load_torrent_notifications();
376
+    $NewTorrents = $NotificationsManager->get_notifications();
377
+    if (isset($NewTorrents[NotificationsManager::TORRENTS])) {
378
+        $Alerts[] = NotificationsManagerView::format_traditional($NewTorrents[NotificationsManager::TORRENTS]);
379
+    }
380
+    $NotificationsManager->clear_notifications_array();
384
 }
381
 }
385
 
382
 
386
 // Contests
383
 // Contests
387
 if ($ContestSettings = G::$Cache->get_value('contest_settings')) {
384
 if ($ContestSettings = G::$Cache->get_value('contest_settings')) {
388
-  if (time() > $ContestSettings['start'] && time() < $ContestSettings['end']) {
389
-    $Alerts[] = '<a href="/contest.php">A Contest is Underway!</a>';
390
-  }
385
+    if (time() > $ContestSettings['start'] && time() < $ContestSettings['end']) {
386
+        $Alerts[] = '<a href="/contest.php">A Contest is Underway!</a>';
387
+    }
391
 }
388
 }
392
 
389
 
393
 if (check_perms('users_mod')) {
390
 if (check_perms('users_mod')) {
394
-  $ModBar[] = '<a href="tools.php">Toolbox</a>';
391
+    $ModBar[] = '<a href="tools.php">Toolbox</a>';
395
 }
392
 }
396
 if (check_perms('users_mod')) {
393
 if (check_perms('users_mod')) {
397
-  $NumStaffPMs = G::$Cache->get_value('num_staff_pms_'.G::$LoggedUser['ID']);
398
-  if ($NumStaffPMs === false) {
399
-    if (check_perms('users_mod')) {
400
-
401
-      $LevelCap = 1000;
394
+    $NumStaffPMs = G::$Cache->get_value('num_staff_pms_'.G::$LoggedUser['ID']);
395
+    if ($NumStaffPMs === false) {
396
+        if (check_perms('users_mod')) {
397
+            $LevelCap = 1000;
402
 
398
 
403
-      G::$DB->query("
399
+            G::$DB->query("
404
         SELECT COUNT(ID)
400
         SELECT COUNT(ID)
405
         FROM staff_pm_conversations
401
         FROM staff_pm_conversations
406
         WHERE Status = 'Unanswered'
402
         WHERE Status = 'Unanswered'
407
           AND (AssignedToUser = ".G::$LoggedUser['ID']."
403
           AND (AssignedToUser = ".G::$LoggedUser['ID']."
408
             OR (LEAST('$LevelCap', Level) <= '".G::$LoggedUser['EffectiveClass']."'
404
             OR (LEAST('$LevelCap', Level) <= '".G::$LoggedUser['EffectiveClass']."'
409
               AND Level <= ".G::$LoggedUser['Class']."))");
405
               AND Level <= ".G::$LoggedUser['Class']."))");
410
-    }
411
-    if (G::$LoggedUser['PermissionID'] == FORUM_MOD) {
412
-      G::$DB->query("
406
+        }
407
+        if (G::$LoggedUser['PermissionID'] == FORUM_MOD) {
408
+            G::$DB->query("
413
         SELECT COUNT(ID)
409
         SELECT COUNT(ID)
414
         FROM staff_pm_conversations
410
         FROM staff_pm_conversations
415
         WHERE Status='Unanswered'
411
         WHERE Status='Unanswered'
416
           AND (AssignedToUser = ".G::$LoggedUser['ID']."
412
           AND (AssignedToUser = ".G::$LoggedUser['ID']."
417
             OR Level = '". $Classes[FORUM_MOD]['Level'] . "')");
413
             OR Level = '". $Classes[FORUM_MOD]['Level'] . "')");
414
+        }
415
+        list($NumStaffPMs) = G::$DB->next_record();
416
+        G::$Cache->cache_value('num_staff_pms_'.G::$LoggedUser['ID'], $NumStaffPMs, 1000);
418
     }
417
     }
419
-    list($NumStaffPMs) = G::$DB->next_record();
420
-    G::$Cache->cache_value('num_staff_pms_'.G::$LoggedUser['ID'], $NumStaffPMs , 1000);
421
-  }
422
 
418
 
423
-  if ($NumStaffPMs > 0) {
424
-    $ModBar[] = '<a href="staffpm.php">'.$NumStaffPMs.' Staff PMs</a>';
425
-  }
419
+    if ($NumStaffPMs > 0) {
420
+        $ModBar[] = '<a href="staffpm.php">'.$NumStaffPMs.' Staff PMs</a>';
421
+    }
426
 }
422
 }
427
 if (check_perms('admin_reports')) {
423
 if (check_perms('admin_reports')) {
428
-// Torrent reports code
429
-  $NumTorrentReports = G::$Cache->get_value('num_torrent_reportsv2');
430
-  if ($NumTorrentReports === false) {
431
-    G::$DB->query("
424
+    // Torrent reports code
425
+    $NumTorrentReports = G::$Cache->get_value('num_torrent_reportsv2');
426
+    if ($NumTorrentReports === false) {
427
+        G::$DB->query("
432
       SELECT COUNT(ID)
428
       SELECT COUNT(ID)
433
       FROM reportsv2
429
       FROM reportsv2
434
       WHERE Status = 'New'");
430
       WHERE Status = 'New'");
435
-    list($NumTorrentReports) = G::$DB->next_record();
436
-    G::$Cache->cache_value('num_torrent_reportsv2', $NumTorrentReports, 0);
437
-  }
431
+        list($NumTorrentReports) = G::$DB->next_record();
432
+        G::$Cache->cache_value('num_torrent_reportsv2', $NumTorrentReports, 0);
433
+    }
438
 
434
 
439
-  $ModBar[] = '<a href="reportsv2.php">'.$NumTorrentReports.(($NumTorrentReports == 1) ? ' Report' : ' Reports').'</a>';
435
+    $ModBar[] = '<a href="reportsv2.php">'.$NumTorrentReports.(($NumTorrentReports == 1) ? ' Report' : ' Reports').'</a>';
440
 
436
 
441
-// Other reports code
442
-  $NumOtherReports = G::$Cache->get_value('num_other_reports');
443
-  if ($NumOtherReports === false) {
444
-    G::$DB->query("
437
+    // Other reports code
438
+    $NumOtherReports = G::$Cache->get_value('num_other_reports');
439
+    if ($NumOtherReports === false) {
440
+        G::$DB->query("
445
       SELECT COUNT(ID)
441
       SELECT COUNT(ID)
446
       FROM reports
442
       FROM reports
447
       WHERE Status = 'New'");
443
       WHERE Status = 'New'");
448
-    list($NumOtherReports) = G::$DB->next_record();
449
-    G::$Cache->cache_value('num_other_reports', $NumOtherReports, 0);
450
-  }
444
+        list($NumOtherReports) = G::$DB->next_record();
445
+        G::$Cache->cache_value('num_other_reports', $NumOtherReports, 0);
446
+    }
451
 
447
 
452
-  if ($NumOtherReports > 0) {
453
-    $ModBar[] = '<a href="reports.php">'.$NumOtherReports.(($NumTorrentReports == 1) ? ' Other report' : ' Other reports').'</a>';
454
-  }
448
+    if ($NumOtherReports > 0) {
449
+        $ModBar[] = '<a href="reports.php">'.$NumOtherReports.(($NumTorrentReports == 1) ? ' Other report' : ' Other reports').'</a>';
450
+    }
455
 } elseif (check_perms('project_team')) {
451
 } elseif (check_perms('project_team')) {
456
-  $NumUpdateReports = G::$Cache->get_value('num_update_reports');
457
-  if ($NumUpdateReports === false) {
458
-    G::$DB->query("
452
+    $NumUpdateReports = G::$Cache->get_value('num_update_reports');
453
+    if ($NumUpdateReports === false) {
454
+        G::$DB->query("
459
       SELECT COUNT(ID)
455
       SELECT COUNT(ID)
460
       FROM reports
456
       FROM reports
461
       WHERE Status = 'New'
457
       WHERE Status = 'New'
462
         AND Type = 'request_update'");
458
         AND Type = 'request_update'");
463
-    list($NumUpdateReports) = G::$DB->next_record();
464
-    G::$Cache->cache_value('num_update_reports', $NumUpdateReports, 0);
465
-  }
459
+        list($NumUpdateReports) = G::$DB->next_record();
460
+        G::$Cache->cache_value('num_update_reports', $NumUpdateReports, 0);
461
+    }
466
 
462
 
467
-  if ($NumUpdateReports > 0) {
468
-    $ModBar[] = '<a href="reports.php">Request update reports</a>';
469
-  }
463
+    if ($NumUpdateReports > 0) {
464
+        $ModBar[] = '<a href="reports.php">Request update reports</a>';
465
+    }
470
 } elseif (check_perms('site_moderate_forums')) {
466
 } elseif (check_perms('site_moderate_forums')) {
471
-  $NumForumReports = G::$Cache->get_value('num_forum_reports');
472
-  if ($NumForumReports === false) {
473
-    G::$DB->query("
467
+    $NumForumReports = G::$Cache->get_value('num_forum_reports');
468
+    if ($NumForumReports === false) {
469
+        G::$DB->query("
474
       SELECT COUNT(ID)
470
       SELECT COUNT(ID)
475
       FROM reports
471
       FROM reports
476
       WHERE Status = 'New'
472
       WHERE Status = 'New'
477
         AND Type IN('artist_comment', 'collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment')");
473
         AND Type IN('artist_comment', 'collages_comment', 'post', 'requests_comment', 'thread', 'torrents_comment')");
478
-    list($NumForumReports) = G::$DB->next_record();
479
-    G::$Cache->cache_value('num_forum_reports', $NumForumReports, 0);
480
-  }
474
+        list($NumForumReports) = G::$DB->next_record();
475
+        G::$Cache->cache_value('num_forum_reports', $NumForumReports, 0);
476
+    }
481
 
477
 
482
-  if ($NumForumReports > 0) {
483
-    $ModBar[] = '<a href="reports.php">'.$NumForumReports.(($NumForumReports == 1) ? ' Forum report' : ' Forum reports').'</a>';
484
-  }
478
+    if ($NumForumReports > 0) {
479
+        $ModBar[] = '<a href="reports.php">'.$NumForumReports.(($NumForumReports == 1) ? ' Forum report' : ' Forum reports').'</a>';
480
+    }
485
 }
481
 }
486
 
482
 
487
 if (check_perms('users_mod')) {
483
 if (check_perms('users_mod')) {
488
-  $NumDeleteRequests = G::$Cache->get_value('num_deletion_requests');
489
-  if ($NumDeleteRequests === false) {
490
-    G::$DB->query("SELECT COUNT(*) FROM deletion_requests");
491
-    list($NumDeleteRequests) = G::$DB->next_record();
492
-    G::$Cache->cache_value('num_deletion_requests', $NumDeleteRequests);
493
-  }
494
-  if ($NumDeleteRequests > 0) {
495
-    $ModBar[] = '<a href="tools.php?action=expunge_requests">' . $NumDeleteRequests . " Expunge request".($NumDeleteRequests > 1 ? 's' : '')."</a>";
496
-  }
484
+    $NumDeleteRequests = G::$Cache->get_value('num_deletion_requests');
485
+    if ($NumDeleteRequests === false) {
486
+        G::$DB->query("SELECT COUNT(*) FROM deletion_requests");
487
+        list($NumDeleteRequests) = G::$DB->next_record();
488
+        G::$Cache->cache_value('num_deletion_requests', $NumDeleteRequests);
489
+    }
490
+    if ($NumDeleteRequests > 0) {
491
+        $ModBar[] = '<a href="tools.php?action=expunge_requests">' . $NumDeleteRequests . " Expunge request".($NumDeleteRequests > 1 ? 's' : '')."</a>";
492
+    }
497
 }
493
 }
498
 
494
 
499
 if (check_perms('users_mod') && FEATURE_EMAIL_REENABLE) {
495
 if (check_perms('users_mod') && FEATURE_EMAIL_REENABLE) {
500
-  $NumEnableRequests = G::$Cache->get_value(AutoEnable::CACHE_KEY_NAME);
501
-  if ($NumEnableRequests === false) {
502
-    G::$DB->query("SELECT COUNT(1) FROM users_enable_requests WHERE Outcome IS NULL");
503
-    list($NumEnableRequests) = G::$DB->next_record();
504
-    G::$Cache->cache_value(AutoEnable::CACHE_KEY_NAME, $NumEnableRequests);
505
-  }
496
+    $NumEnableRequests = G::$Cache->get_value(AutoEnable::CACHE_KEY_NAME);
497
+    if ($NumEnableRequests === false) {
498
+        G::$DB->query("SELECT COUNT(1) FROM users_enable_requests WHERE Outcome IS NULL");
499
+        list($NumEnableRequests) = G::$DB->next_record();
500
+        G::$Cache->cache_value(AutoEnable::CACHE_KEY_NAME, $NumEnableRequests);
501
+    }
506
 
502
 
507
-  if ($NumEnableRequests > 0) {
508
-    $ModBar[] = '<a href="tools.php?action=enable_requests">' . $NumEnableRequests . " Enable requests</a>";
509
-  }
503
+    if ($NumEnableRequests > 0) {
504
+        $ModBar[] = '<a href="tools.php?action=enable_requests">' . $NumEnableRequests . " Enable requests</a>";
505
+    }
510
 }
506
 }
511
 
507
 
512
 if (!empty($Alerts) || !empty($ModBar)) { ?>
508
 if (!empty($Alerts) || !empty($ModBar)) { ?>
513
       <div id="alerts">
509
       <div id="alerts">
514
-<?  foreach ($Alerts as $Alert) { ?>
510
+<?php  foreach ($Alerts as $Alert) { ?>
515
         <div class="alertbar"><?=$Alert?></div>
511
         <div class="alertbar"><?=$Alert?></div>
516
-<?
512
+<?php
517
   }
513
   }
518
   if (!empty($ModBar)) { ?>
514
   if (!empty($ModBar)) { ?>
519
         <div class="alertbar modbar">
515
         <div class="alertbar modbar">
520
           <?=implode(' ', $ModBar); echo "\n"?>
516
           <?=implode(' ', $ModBar); echo "\n"?>
521
         </div>
517
         </div>
522
-<?  }
518
+<?php  }
523
 if (check_perms('site_debug') && !apcu_exists('DBKEY')) { ?>
519
 if (check_perms('site_debug') && !apcu_exists('DBKEY')) { ?>
524
         <div class="alertbar error">
520
         <div class="alertbar error">
525
           Warning: <a href="tools.php?action=database_key">no DB key</a>
521
           Warning: <a href="tools.php?action=database_key">no DB key</a>
526
         </div>
522
         </div>
527
-<?  } ?>
523
+<?php  } ?>
528
       </div>
524
       </div>
529
-<?
525
+<?php
530
 }
526
 }
531
-//Done handling alertbars
527
+// Done handling alertbars
532
 ?>
528
 ?>
533
 
529
 
534
     <div id="content">
530
     <div id="content">

+ 7
- 7
sections/donate/donate.php View File

47
     If you prefer to make a tax-deductible donation to an organization beyond my financial grasp, donations to the
47
     If you prefer to make a tax-deductible donation to an organization beyond my financial grasp, donations to the
48
     <a href="https://www.boslab.org/donate" target="_blank">Boston Open Science Laboratory (BosLab)</a>
48
     <a href="https://www.boslab.org/donate" target="_blank">Boston Open Science Laboratory (BosLab)</a>
49
     are honored the same as direct donations.
49
     are honored the same as direct donations.
50
-    Please note in the comment field that your donation is on behalf of <?= SITE_NAME ?> from your username.
50
+    Please note in the comment field that your donation is on <?= SITE_NAME ?>'s behalf and to credit your username.
51
     </p>
51
     </p>
52
   </div>
52
   </div>
53
 
53
 
57
       Please see <a href="https://www.patreon.com/biotorrents" target="_blank"><?= SITE_NAME ?>'s Patreon</a> for a detailed overview of funding
57
       Please see <a href="https://www.patreon.com/biotorrents" target="_blank"><?= SITE_NAME ?>'s Patreon</a> for a detailed overview of funding
58
       goals.
58
       goals.
59
       There are some benefits to donating that culmulate at each tier pledged.
59
       There are some benefits to donating that culmulate at each tier pledged.
60
-      Each tier's awards include those already listed.
60
+      Each tier's awards include those already listed, and the tier system only applies to recurring donations.
61
       Bitcoin donations are privately negotiable.
61
       Bitcoin donations are privately negotiable.
62
 
62
 
63
       <ul>
63
       <ul>
64
-        <li><strong>Bronze:</strong> A donor badge and forum access for your user account on the BioTorrents.de website
64
+        <li><strong>Bronze.</strong> A donor badge and forum access for your user account on the BioTorrents.de website
65
         </li>
65
         </li>
66
-        <li><strong>Silver:</strong> Unlimited API calls to the BioTorrents.de database</li>
67
-        <li><strong>Gold:</strong> Monthly Skype calls to discuss wetlab and software ideas.
68
-          My expertise includes fungal biotechnology, nonprofit administration, and LEMP development</li>
69
-        <li><strong>Sponsor a Seedbox:</strong> Shell access to, and share ratio credit from, a seedbox that I manage on
66
+        <li><strong>Silver.</strong> Unlimited API calls to the BioTorrents.de database</li>
67
+        <li><strong>Gold.</strong> Monthly Skype calls to discuss wetlab and software ideas.
68
+          My expertise includes fungal biotechnology, nonprofit administration, and LEMP+ development</li>
69
+        <li><strong>Sponsor a Seedbox.</strong> Shell access to, and share ratio credit from, a seedbox that I manage on
70
           your behalf.
70
           your behalf.
71
           Please understand that network services beyond the scope of seedbox administration should be negotiated
71
           Please understand that network services beyond the scope of seedbox administration should be negotiated
72
           separately</li>
72
           separately</li>

+ 1
- 1
sections/torrents/browse.php View File

266
 
266
 
267
               <select id=" container" name="container" class="ft_container fti_advanced">
267
               <select id=" container" name="container" class="ft_container fti_advanced">
268
                 <option value="">Prot Format</option>
268
                 <option value="">Prot Format</option>
269
-                <?php  foreach ($Containers as $Key => $Container) { ?>
269
+                <?php  foreach ($ContainersProt as $Key => $Container) { ?>
270
                 <option value="<?=display_str($Key);?>" <?Format::selected('container', $Key)?>><?=display_str($Key);?>
270
                 <option value="<?=display_str($Key);?>" <?Format::selected('container', $Key)?>><?=display_str($Key);?>
271
                 </option>
271
                 </option>
272
                 <?php  } ?>
272
                 <?php  } ?>

+ 3
- 3
sections/torrents/takeedit.php View File

336
 
336
 
337
 print_r('<pre>');
337
 print_r('<pre>');
338
 var_dump($T['FileList']);
338
 var_dump($T['FileList']);
339
-var_dump($T['CategoryName'],);
340
-var_dump($T['FileTypes'],);
341
-var_dump($T['ArchiveTypes'],);
339
+var_dump($T['CategoryName'], );
340
+var_dump($T['FileTypes'], );
341
+var_dump($T['ArchiveTypes'], );
342
 
342
 
343
 //******************************************************************************//
343
 //******************************************************************************//
344
 //--------------- Start database stuff -----------------------------------------//
344
 //--------------- Start database stuff -----------------------------------------//

+ 1
- 1
static/styles/oppai/style.css View File

254
   padding: 4px 0px;
254
   padding: 4px 0px;
255
   width: 100%;
255
   width: 100%;
256
   text-align: center;
256
   text-align: center;
257
-  font-size: 8pt;
257
+  /* font-size: 8pt; */
258
 }
258
 }
259
 
259
 
260
 #userinfo img {
260
 #userinfo img {

Loading…
Cancel
Save