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.

clients.php 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. declare(strict_types=1);
  3. View::show_header('Client rules');
  4. if (!$WhitelistedClients = $Cache->get_value('whitelisted_clients')) {
  5. $DB->query("
  6. SELECT
  7. `vstring`
  8. FROM
  9. `xbt_client_whitelist`
  10. WHERE
  11. `vstring` NOT LIKE '//%'
  12. ORDER BY
  13. `vstring` ASC
  14. ");
  15. $WhitelistedClients = $DB->to_array(false, MYSQLI_NUM, false);
  16. $Cache->cache_value('whitelisted_clients', $WhitelistedClients, 604800);
  17. }
  18. ?>
  19. <div class="header">
  20. <h2>
  21. Client rules
  22. </h2>
  23. </div>
  24. <div class="box pad">
  25. <p>
  26. Client rules are how we maintain the integrity of our swarms.
  27. This allows us to filter out disruptive and dishonest clients that may hurt the performance of either the tracker
  28. or individual peers.
  29. </p>
  30. <br />
  31. <table>
  32. <tr class="colhead">
  33. <td>
  34. <strong>Allowed Clients</strong>
  35. </td>
  36. </tr>
  37. <?php
  38. foreach ($WhitelistedClients as $Client) {
  39. list($ClientName) = $Client; ?>
  40. <tr class="row">
  41. <td>
  42. <?=$ClientName?>
  43. </td>
  44. </tr>
  45. <?php
  46. } ?>
  47. </table>
  48. </div>
  49. <h3>
  50. Further rules
  51. </h3>
  52. <div class="box pad rule_summary">
  53. <p>
  54. The modification of clients to bypass our client requirements (spoofing) is explicitly forbidden.
  55. People caught doing this will be instantly and permanently banned.
  56. When you leak peers, everyone loses.
  57. This is your only warning.
  58. </p>
  59. <p>
  60. The use of clients or proxies which have been modified to report incorrect stats to our tracker (cheating) is not
  61. allowed, and will result in a permanent ban.
  62. </p>
  63. <p>
  64. The testing of unstable clients by developers must first be approved by staff.
  65. </p>
  66. </div>
  67. <?php include('jump.php'); ?>
  68. </div>
  69. <?php View::show_footer();