Gazelle/sections/rules/clients.php

41 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2011-03-28 14:21:28 +00:00
<?
2012-10-11 08:00:15 +00:00
View::show_header('Client Rules');
2011-03-28 14:21:28 +00:00
if (!$WhitelistedClients = $Cache->get_value('whitelisted_clients')) {
2013-07-10 00:08:53 +00:00
$DB->query('
SELECT vstring
FROM xbt_client_whitelist
WHERE vstring NOT LIKE \'//%\'
ORDER BY vstring ASC');
$WhitelistedClients = $DB->to_array(false, MYSQLI_NUM, false);
$Cache->cache_value('whitelisted_clients', $WhitelistedClients, 604800);
2011-03-28 14:21:28 +00:00
}
?>
<div class="thin">
2012-08-19 08:00:19 +00:00
<div class="header">
<h2 class="center">Client Whitelist</h2>
</div>
<div class="box pad">
<p>Client rules are how we maintain the integrity of our swarms. This allows us to filter out disruptive and dishonest clients that may hurt the performance of either the tracker or individual peers.</p>
<table cellpadding="5" cellspacing="1" border="0" class="border" width="100%">
<tr class="colhead">
2013-04-30 18:18:07 +00:00
<td style="width: 150px;"><strong>Allowed Client</strong></td>
<!-- td style="width: 400px;"><strong>Additional Notes</strong></td> -->
2012-08-19 08:00:19 +00:00
</tr>
2011-03-28 14:21:28 +00:00
<?
$Row = 'a';
2013-04-30 18:18:07 +00:00
foreach ($WhitelistedClients as $Client) {
2013-07-10 00:08:53 +00:00
//list($ClientName, $Notes) = $Client;
2011-03-28 14:21:28 +00:00
list($ClientName) = $Client;
2013-10-25 08:00:59 +00:00
$Row = $Row === 'a' ? 'b' : 'a';
2011-03-28 14:21:28 +00:00
?>
<tr class="row<?=$Row?>">
<td><?=$ClientName?></td>
</tr>
2013-10-25 08:00:59 +00:00
<? } ?>
2011-03-28 14:21:28 +00:00
</table>
</div>
<? include('jump.php'); ?>
</div>
2012-10-11 08:00:15 +00:00
<? View::show_footer(); ?>