BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

private.php 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. <?php
  2. #declare(strict_types=1);
  3. $ENV = ENV::go();
  4. Text::$TOC = true;
  5. $NewsCount = 2;
  6. if (!$News = $Cache->get_value('news')) {
  7. $DB->query("
  8. SELECT
  9. `ID`,
  10. `Title`,
  11. `Body`,
  12. `Time`
  13. FROM `news`
  14. ORDER BY `Time` DESC
  15. LIMIT $NewsCount
  16. ");
  17. $News = $DB->to_array(false, MYSQLI_NUM, false);
  18. $Cache->cache_value('news', $News, 3600 * 24 * 30);
  19. $Cache->cache_value('news_latest_id', $News[0][0], 0);
  20. $Cache->cache_value('news_latest_title', $News[0][1], 0);
  21. }
  22. if ($LoggedUser['LastReadNews'] !== $News[0][0] && count($News) > 0) {
  23. $Cache->begin_transaction("user_info_heavy_$UserID");
  24. $Cache->update_row(false, array('LastReadNews' => $News[0][0]));
  25. $Cache->commit_transaction(0);
  26. $DB->query("
  27. UPDATE users_info
  28. SET LastReadNews = '".$News[0][0]."'
  29. WHERE UserID = $UserID");
  30. $LoggedUser['LastReadNews'] = $News[0][0];
  31. }
  32. View::show_header('News', 'news_ajax');
  33. ?>
  34. <div class="sidebar">
  35. <?php #include 'connect.php';?>
  36. <ul class="stats nobullet">
  37. <?php
  38. $End = min(count($Blog), 5);
  39. for ($i = 0; $i < $End; $i++) {
  40. list($BlogID, $Author, $Title, $Body, $BlogTime) = $Blog[$i];
  41. $BlogTime = strtotime($BlogTime); ?>
  42. <?php
  43. } ?>
  44. </ul>
  45. <div class="box">
  46. <div class="head colhead_dark"><strong><a href="blog.php">Latest blog posts</a></strong></div>
  47. <?php
  48. if (($Blog = $Cache->get_value('blog')) === false) {
  49. $DB->query("
  50. SELECT
  51. b.ID,
  52. um.Username,
  53. b.UserID,
  54. b.Title,
  55. b.Body,
  56. b.Time,
  57. b.ThreadID
  58. FROM blog AS b
  59. LEFT JOIN users_main AS um ON b.UserID = um.ID
  60. ORDER BY Time DESC
  61. LIMIT 20");
  62. $Blog = $DB->to_array();
  63. $Cache->cache_value('blog', $Blog, 1209600);
  64. }
  65. ?>
  66. <ul class="stats nobullet">
  67. <?php
  68. if (count($Blog) < 5) {
  69. $Limit = count($Blog);
  70. } else {
  71. $Limit = 5;
  72. }
  73. for ($i = 0; $i < $Limit; $i++) {
  74. list($BlogID, $Author, $AuthorID, $Title, $Body, $BlogTime, $ThreadID) = $Blog[$i]; ?>
  75. <li>
  76. <?=($i + 1)?>. <a
  77. href="blog.php#blog<?=$BlogID?>"><?=$Title?></a>
  78. </li>
  79. <?php
  80. }
  81. ?>
  82. </ul>
  83. </div>
  84. <?php
  85. if (($Freeleeches = $Cache->get_value('shop_freeleech_list')) === false) {
  86. $DB->query("
  87. SELECT
  88. TorrentID,
  89. UNIX_TIMESTAMP(ExpiryTime),
  90. COALESCE(NULLIF(Name,''), NULLIF(Title2,''), NameJP) AS Name,
  91. WikiImage
  92. FROM shop_freeleeches AS sf
  93. LEFT JOIN torrents AS t on sf.TorrentID=t.ID
  94. LEFT JOIN torrents_group AS tg ON tg.ID=t.GroupID
  95. ORDER BY ExpiryTime ASC
  96. LIMIT 10");
  97. $Freeleeches = $DB->to_array();
  98. $Cache->cache_value('shop_freeleech_list', $Freeleeches, 1209600);
  99. }
  100. if (count($Freeleeches)) {
  101. ?>
  102. <div class="box">
  103. <div class="head colhead_dark"><strong><a
  104. href="torrents.php?freetorrent=1&order_by=seeders&order_way=asc">Freeleeches</a></strong></div>
  105. <ul class="stats nobullet">
  106. <?php
  107. for ($i = 0; $i < count($Freeleeches); $i++) {
  108. list($ID, $ExpiryTime, $Name, $Image) = $Freeleeches[$i];
  109. if ($ExpiryTime < time()) {
  110. continue;
  111. }
  112. $DisplayTime = '('.str_replace(['year','month','week','day','hour','min','Just now','s',' '], ['y','M','w','d','h','m','0m'], time_diff($ExpiryTime, 1, false)).') ';
  113. $DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
  114. if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
  115. $DisplayName .= ' data-cover="'.ImageTools::process($Image, 'thumb').'"';
  116. }
  117. $DisplayName .= '>'.$Name.'</a>'; ?>
  118. <li>
  119. <strong class="fl_time"><?=$DisplayTime?></strong>
  120. <?=$DisplayName?>
  121. </li>
  122. <?php
  123. } ?>
  124. </ul>
  125. </div>
  126. <?php
  127. }
  128. ?>
  129. <!-- Stats -->
  130. <div class="box">
  131. <div class="head colhead_dark"><strong>Stats</strong></div>
  132. <ul class="stats nobullet">
  133. <?php if (USER_LIMIT > 0) { ?>
  134. <li>Maximum users: <?=number_format(USER_LIMIT) ?>
  135. </li>
  136. <?php
  137. }
  138. if (($UserCount = $Cache->get_value('stats_user_count')) === false) {
  139. $DB->query("
  140. SELECT COUNT(ID)
  141. FROM users_main
  142. WHERE Enabled = '1'");
  143. list($UserCount) = $DB->next_record();
  144. $Cache->cache_value('stats_user_count', $UserCount, 86400);
  145. }
  146. $UserCount = (int)$UserCount;
  147. ?>
  148. <li>
  149. Enabled users: <?=number_format($UserCount)?>
  150. <a href="stats.php?action=users" class="brackets">Details</a>
  151. </li>
  152. <?php
  153. if (($UserStats = $Cache->get_value('stats_users')) === false) {
  154. $DB->query("
  155. SELECT COUNT(ID)
  156. FROM users_main
  157. WHERE Enabled = '1'
  158. AND LastAccess > '".time_minus(3600 * 24)."'");
  159. list($UserStats['Day']) = $DB->next_record();
  160. $DB->query("
  161. SELECT COUNT(ID)
  162. FROM users_main
  163. WHERE Enabled = '1'
  164. AND LastAccess > '".time_minus(3600 * 24 * 7)."'");
  165. list($UserStats['Week']) = $DB->next_record();
  166. $DB->query("
  167. SELECT COUNT(ID)
  168. FROM users_main
  169. WHERE Enabled = '1'
  170. AND LastAccess > '".time_minus(3600 * 24 * 30)."'");
  171. list($UserStats['Month']) = $DB->next_record();
  172. $Cache->cache_value('stats_users', $UserStats, 0);
  173. }
  174. ?>
  175. <li>Users active today: <?=number_format($UserStats['Day'])?> (<?=number_format($UserStats['Day'] / $UserCount * 100, 2)?>%)
  176. </li>
  177. <li>Users active this week: <?=number_format($UserStats['Week'])?>
  178. (<?=number_format($UserStats['Week'] / $UserCount * 100, 2)?>%)
  179. </li>
  180. <li>Users active this month: <?=number_format($UserStats['Month'])?>
  181. (<?=number_format($UserStats['Month'] / $UserCount * 100, 2)?>%)
  182. </li>
  183. <?php
  184. if (($TorrentCount = $Cache->get_value('stats_torrent_count')) === false) {
  185. $DB->query("
  186. SELECT COUNT(ID)
  187. FROM torrents");
  188. list($TorrentCount) = $DB->next_record();
  189. $Cache->cache_value('stats_torrent_count', $TorrentCount, 86400); // 1 day cache
  190. }
  191. if (($GroupCount = $Cache->get_value('stats_group_count')) === false) {
  192. $DB->query("
  193. SELECT COUNT(ID)
  194. FROM torrents_group");
  195. list($GroupCount) = $DB->next_record();
  196. $Cache->cache_value('stats_group_count', $GroupCount, 86400); // 1 day cache
  197. }
  198. if (($TorrentSizeTotal = $Cache->get_value('stats_torrent_size_total')) === false) {
  199. $DB->query("
  200. SELECT SUM(Size)
  201. FROM torrents");
  202. list($TorrentSizeTotal) = $DB->next_record();
  203. $Cache->cache_value('stats_torrent_size_total', $TorrentSizeTotal, 86400); // 1 day cache
  204. }
  205. ?>
  206. <li>
  207. Total size of torrents:
  208. <?=Format::get_size($TorrentSizeTotal)?>
  209. </li>
  210. <?php
  211. if (($ArtistCount = $Cache->get_value('stats_artist_count')) === false) {
  212. $DB->query("
  213. SELECT COUNT(ArtistID)
  214. FROM artists_group");
  215. list($ArtistCount) = $DB->next_record();
  216. $Cache->cache_value('stats_artist_count', $ArtistCount, 86400); // 1 day cache
  217. }
  218. ?>
  219. <li>
  220. Torrents:
  221. <?=number_format($TorrentCount)?>
  222. <a href="stats.php?action=torrents" class="brackets">Details</a>
  223. </li>
  224. <li>Torrent Groups: <?=number_format($GroupCount)?>
  225. </li>
  226. <li>Artists: <?=number_format($ArtistCount)?>
  227. </li>
  228. <?php
  229. // End Torrent Stats
  230. if (($RequestStats = $Cache->get_value('stats_requests')) === false) {
  231. $DB->query("
  232. SELECT COUNT(ID)
  233. FROM requests");
  234. list($RequestCount) = $DB->next_record();
  235. $DB->query("
  236. SELECT COUNT(ID)
  237. FROM requests
  238. WHERE FillerID > 0");
  239. list($FilledCount) = $DB->next_record();
  240. $Cache->cache_value('stats_requests', array($RequestCount, $FilledCount), 11280);
  241. } else {
  242. list($RequestCount, $FilledCount) = $RequestStats;
  243. }
  244. // Do not divide by zero
  245. if ($RequestCount > 0) {
  246. $RequestsFilledPercent = $FilledCount / $RequestCount * 100;
  247. } else {
  248. $RequestsFilledPercent = 0;
  249. }
  250. ?>
  251. <li>Requests: <?=number_format($RequestCount)?> (<?=number_format($RequestsFilledPercent, 2)?>% filled)</li>
  252. <?php
  253. if ($SnatchStats = $Cache->get_value('stats_snatches')) {
  254. ?>
  255. <li>Snatches: <?=number_format($SnatchStats)?>
  256. </li>
  257. <?php
  258. }
  259. if (($PeerStats = $Cache->get_value('stats_peers')) === false) {
  260. // Cache lock!
  261. $PeerStatsLocked = $Cache->get_value('stats_peers_lock');
  262. if (!$PeerStatsLocked) {
  263. $Cache->cache_value('stats_peers_lock', 1, 30);
  264. $DB->query("
  265. SELECT IF(remaining=0,'Seeding','Leeching') AS Type, COUNT(uid)
  266. FROM xbt_files_users
  267. WHERE active = 1
  268. GROUP BY Type");
  269. $PeerCount = $DB->to_array(0, MYSQLI_NUM, false);
  270. $SeederCount = $PeerCount['Seeding'][1] ?: 0;
  271. $LeecherCount = $PeerCount['Leeching'][1] ?: 0;
  272. $Cache->cache_value('stats_peers', array($LeecherCount, $SeederCount), 604800); // 1 week cache
  273. $Cache->delete_value('stats_peers_lock');
  274. }
  275. } else {
  276. $PeerStatsLocked = false;
  277. list($LeecherCount, $SeederCount) = $PeerStats;
  278. }
  279. if (!$PeerStatsLocked) {
  280. $Ratio = Format::get_ratio_html($SeederCount, $LeecherCount);
  281. $PeerCount = number_format($SeederCount + $LeecherCount);
  282. $SeederCount = number_format($SeederCount);
  283. $LeecherCount = number_format($LeecherCount);
  284. } else {
  285. $PeerCount = $SeederCount = $LeecherCount = $Ratio = 'Server busy';
  286. }
  287. ?>
  288. <li>Peers: <?=$PeerCount?>
  289. </li>
  290. <li>Seeders: <?=$SeederCount?>
  291. </li>
  292. <li>Leechers: <?=$LeecherCount?>
  293. </li>
  294. <li>Seeder/leecher ratio: <?=$Ratio?>
  295. </li>
  296. </ul>
  297. </div>
  298. <!-- Polls -->
  299. <?php
  300. if (($TopicID = $Cache->get_value('polls_featured')) === false) {
  301. $DB->query("
  302. SELECT TopicID
  303. FROM forums_polls
  304. ORDER BY Featured DESC
  305. LIMIT 1");
  306. list($TopicID) = $DB->next_record();
  307. $Cache->cache_value('polls_featured', $TopicID, 0);
  308. }
  309. if ($TopicID) {
  310. if (($Poll = $Cache->get_value("polls_$TopicID")) === false) {
  311. $DB->query("
  312. SELECT Question, Answers, Featured, Closed
  313. FROM forums_polls
  314. WHERE TopicID = '$TopicID'");
  315. list($Question, $Answers, $Featured, $Closed) = $DB->next_record(MYSQLI_NUM, array(1));
  316. $Answers = unserialize($Answers);
  317. $DB->query("
  318. SELECT Vote, COUNT(UserID)
  319. FROM forums_polls_votes
  320. WHERE TopicID = '$TopicID'
  321. AND Vote != '0'
  322. GROUP BY Vote");
  323. $VoteArray = $DB->to_array(false, MYSQLI_NUM);
  324. $Votes = [];
  325. foreach ($VoteArray as $VoteSet) {
  326. list($Key, $Value) = $VoteSet;
  327. $Votes[$Key] = $Value;
  328. }
  329. for ($i = 1, $il = count($Answers); $i <= $il; ++$i) {
  330. if (!isset($Votes[$i])) {
  331. $Votes[$i] = 0;
  332. }
  333. }
  334. $Cache->cache_value("polls_$TopicID", array($Question, $Answers, $Votes, $Featured, $Closed), 0);
  335. } else {
  336. list($Question, $Answers, $Votes, $Featured, $Closed) = $Poll;
  337. }
  338. if (!empty($Votes)) {
  339. $TotalVotes = array_sum($Votes);
  340. $MaxVotes = max($Votes);
  341. } else {
  342. $TotalVotes = 0;
  343. $MaxVotes = 0;
  344. }
  345. $DB->query("
  346. SELECT Vote
  347. FROM forums_polls_votes
  348. WHERE UserID = '".$LoggedUser['ID']."'
  349. AND TopicID = '$TopicID'");
  350. list($UserResponse) = $DB->next_record(); ?>
  351. <div class="box">
  352. <div class="head colhead_dark"><strong>Poll<?php if ($Closed) {
  353. echo ' [Closed]';
  354. } ?>
  355. </strong>
  356. </div>
  357. <div class="pad">
  358. <p><strong><?=display_str($Question)?></strong></p>
  359. <?php if ($UserResponse !== null || $Closed) { ?>
  360. <ul class="poll nobullet">
  361. <?php foreach ($Answers as $i => $Answer) {
  362. if ($TotalVotes > 0) {
  363. $Ratio = $Votes[$i] / $MaxVotes;
  364. $Percent = $Votes[$i] / $TotalVotes;
  365. } else {
  366. $Ratio = 0;
  367. $Percent = 0;
  368. } ?>
  369. <li<?=((!empty($UserResponse) && ($UserResponse == $i))?' class="poll_your_answer"':'')?>><?=display_str($Answers[$i])?> (<?=number_format($Percent * 100, 2)?>%)</li>
  370. <li class="graph">
  371. <span class="center_poll"
  372. style="width: <?=round($Ratio * 140)?>px;"></span>
  373. <br />
  374. </li>
  375. <?php
  376. } ?>
  377. </ul>
  378. <strong>Votes:</strong> <?=number_format($TotalVotes)?><br />
  379. <?php } else { ?>
  380. <div id="poll_container">
  381. <form class="vote_form" name="poll" id="poll" action="">
  382. <input type="hidden" name="action" value="poll" />
  383. <input type="hidden" name="auth"
  384. value="<?=$LoggedUser['AuthKey']?>" />
  385. <input type="hidden" name="topicid"
  386. value="<?=$TopicID?>" />
  387. <?php foreach ($Answers as $i => $Answer) { ?>
  388. <input type="radio" name="vote" id="answer_<?=$i?>"
  389. value="<?=$i?>" />
  390. <label for="answer_<?=$i?>"><?=display_str($Answers[$i])?></label><br />
  391. <?php } ?>
  392. <br /><input type="radio" name="vote" id="answer_0" value="0" /> <label
  393. for="answer_0">Blank&#8202;&mdash;&#8202;Show the results!</label><br /><br />
  394. <input type="button"
  395. onclick="ajax.post('index.php', 'poll', function(response) { $('#poll_container').raw().innerHTML = response } );"
  396. value="Vote" />
  397. </form>
  398. </div>
  399. <?php } ?>
  400. <br /><strong>Topic:</strong> <a
  401. href="forums.php?action=viewthread&amp;threadid=<?=$TopicID?>">Visit</a>
  402. </div>
  403. </div>
  404. <?php
  405. }
  406. // polls();
  407. ?>
  408. </div>
  409. <div class="main_column">
  410. <?php
  411. $Recommend = $Cache->get_value('recommend');
  412. $Recommend_artists = $Cache->get_value('recommend_artists');
  413. if (!is_array($Recommend) || !is_array($Recommend_artists)) {
  414. $DB->query("
  415. SELECT
  416. tr.GroupID,
  417. tr.UserID,
  418. u.Username,
  419. tg.Name,
  420. tg.TagList
  421. FROM torrents_recommended AS tr
  422. JOIN torrents_group AS tg ON tg.ID = tr.GroupID
  423. LEFT JOIN users_main AS u ON u.ID = tr.UserID
  424. ORDER BY tr.Time DESC
  425. LIMIT 10");
  426. $Recommend = $DB->to_array();
  427. $Cache->cache_value('recommend', $Recommend, 1209600);
  428. $Recommend_artists = Artists::get_artists($DB->collect('GroupID'));
  429. $Cache->cache_value('recommend_artists', $Recommend_artists, 1209600);
  430. }
  431. if (count($Recommend) >= 4) {
  432. $Cache->increment('usage_index'); ?>
  433. <div class="box" id="recommended">
  434. <div class="head colhead_dark">
  435. <strong>Latest Vanity House additions</strong>
  436. <a data-toggle-target="#vanityhouse" , data-toggle-replace="Hide" class="brackets">Show</a>
  437. </div>
  438. <table class="torrent_table hidden" id="vanityhouse">
  439. <?php
  440. foreach ($Recommend as $Recommendations) {
  441. list($GroupID, $UserID, $Username, $GroupName, $TagList) = $Recommendations;
  442. $TagsStr = '';
  443. if ($TagList) {
  444. // No vanity.house tag.
  445. $Tags = explode(' ', str_replace('_', '.', $TagList));
  446. $TagLinks = [];
  447. foreach ($Tags as $Tag) {
  448. if ($Tag == 'vanity.house') {
  449. continue;
  450. }
  451. $TagLinks[] = "<a href=\"torrents.php?action=basic&amp;taglist=$Tag\">$Tag</a> ";
  452. }
  453. $TagStr = "<br />\n<div class=\"tags\">".implode(', ', $TagLinks).'</div>';
  454. } ?>
  455. <tr>
  456. <td>
  457. <?=Artists::display_artists($Recommend_artists[$GroupID]) ?>
  458. <a href="torrents.php?id=<?=$GroupID?>"><?=$GroupName?></a> (by <?=Users::format_username($UserID, false, false, false)?>)
  459. <?=$TagStr?>
  460. </td>
  461. </tr>
  462. <?php
  463. } ?>
  464. </table>
  465. </div>
  466. <!-- END recommendations section -->
  467. <?php
  468. }
  469. $Count = 0;
  470. foreach ($News as $NewsItem) {
  471. list($NewsID, $Title, $Body, $NewsTime) = $NewsItem;
  472. if (strtotime($NewsTime) > time()) {
  473. continue;
  474. } ?>
  475. <div id="news<?=$NewsID?>" class="box news_post">
  476. <div class="head">
  477. <strong>
  478. <?=$Title?>
  479. </strong>
  480. <?=time_diff($NewsTime)?>
  481. <?php if (check_perms('admin_manage_news')) { ?>
  482. &ndash;
  483. <a href="tools.php?action=editnews&amp;id=<?=$NewsID?>"
  484. class="brackets">Edit</a>
  485. <?php } ?>
  486. <span class="float_right">
  487. <a data-toggle-target="#newsbody<?=$NewsID?>"
  488. data-toggle-replace="Show" class="brackets">Hide</a>
  489. </span>
  490. </div>
  491. <div id="newsbody<?=$NewsID?>" class="pad">
  492. <?=Text::full_format($Body)?>
  493. </div>
  494. </div>
  495. <?php
  496. if (++$Count > ($NewsCount - 1)) {
  497. break;
  498. }
  499. }
  500. ?>
  501. <div id="more_news" class="box">
  502. <div class="head">
  503. <em><span><a href="#"
  504. onclick="news_ajax(event, 3, <?=$NewsCount?>, <?=check_perms('admin_manage_news') ? 1 : 0; ?>); return false;">Click
  505. to load more news</a>.</span> To browse old news posts, <a
  506. href="forums.php?action=viewforum&amp;forumid=<?=$ENV->ANNOUNCEMENT_FORUM?>">click
  507. here</a>.</em>
  508. </div>
  509. </div>
  510. </div>
  511. </div>
  512. <?php
  513. View::show_footer(array('disclaimer'=>true));
  514. function contest()
  515. {
  516. global $DB, $Cache, $LoggedUser;
  517. list($Contest, $TotalPoints) = $Cache->get_value('contest');
  518. if (!$Contest) {
  519. $DB->query("
  520. SELECT
  521. UserID,
  522. SUM(Points),
  523. Username
  524. FROM users_points AS up
  525. JOIN users_main AS um ON um.ID = up.UserID
  526. GROUP BY UserID
  527. ORDER BY SUM(Points) DESC
  528. LIMIT 20");
  529. $Contest = $DB->to_array();
  530. $DB->query("
  531. SELECT SUM(Points)
  532. FROM users_points");
  533. list($TotalPoints) = $DB->next_record();
  534. $Cache->cache_value('contest', array($Contest, $TotalPoints), 600);
  535. } ?>
  536. <!-- Contest Section -->
  537. <div class="box box_contest">
  538. <div class="head colhead_dark"><strong>Quality time scoreboard</strong></div>
  539. <div class="pad">
  540. <ol style="padding-left: 5px;">
  541. <?php
  542. foreach ($Contest as $User) {
  543. list($UserID, $Points, $Username) = $User; ?>
  544. <li><?=Users::format_username($UserID, false, false, false)?>
  545. (<?=number_format($Points)?>)</li>
  546. <?php
  547. } ?>
  548. </ol>
  549. Total uploads: <?=$TotalPoints?><br />
  550. <a href="index.php?action=scoreboard">Full scoreboard</a>
  551. </div>
  552. </div>
  553. <!-- END contest Section -->
  554. <?php
  555. } // contest()