Создаём файл block-static.php в папке blocks вашего трекера
Code
<?php
if (!defined('BLOCK_FILE')) {
Header("Location: ../index.php");
exit;
}
global $tracker_lang, $ss_uri, $maxusers;
$registered = number_format(get_row_count("users"));
$male = number_format(get_row_count("users", "WHERE gender='1'"));
$female = number_format(get_row_count("users", "WHERE gender='2'"));
$torrents = number_format(get_row_count("torrents"));
$dead = number_format(get_row_count("torrents", "WHERE visible='no'"));
$seeders = get_row_count("peers", "WHERE seeder='yes'");
$leechers = get_row_count("peers", "WHERE seeder='no'");
$uploaders = number_format(get_row_count("users", "WHERE class = ".UC_UPLOADER));
$vip = number_format(get_row_count("users", "WHERE class = ".UC_VIP));
$peers = number_format($seeders + $leechers);
$seeders = number_format($seeders);
$leechers = number_format($leechers);
$content .= "<table width=\"100%\" class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><td align=\"center\">
<table class=\"main\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">
<table width=\"120px\" class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"50%\" align=\"center\" style=\"border: none;\"><table class=\"main\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">
<tr><td class=\"rowhead\">Юзеров</td><td align=right><img src=\"pic/male.gif\" alt=\"Парни\">$male<img src=\"pic/female.gif\" alt=\"Девушки\">$female<br />".$tracker_lang['total'].": $registered</td></tr>
<tr><td colspan=\"2\" class=\"rowhead\"><table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\"><tr><td style=\"text-align: right; font-weight: bold; vertical-align: top;\">Мест</td><td align=\"right\">$maxusers</td></tr></table></td></tr>
<tr><td class=\"rowhead\"><font color=\"orange\">Аплоадер</font></td><td align=right>$uploaders шт.</td></tr>
<tr><td class=\"rowhead\"><font color=\"#9C2FE0\">".$tracker_lang['users_vips']."</font></td><td align=right>$vip шт.</td></tr>
<tr><td class=\"rowhead\">Торентов</td><td align=right>$torrents</td></tr>
<tr><td class=\"rowhead\">Мёртвых</td><td align=right>$dead</td></tr>";
if (isset($peers)) {
$content .= "<tr><td class=\"rowhead\">Раздают</td><td align=right>$seeders</td></tr>
<tr><td class=\"rowhead\">Качают</td><td align=right>$leechers</td></tr>
</table></td>
";
}
$content .= "</table></td>
</table>
</td></tr></table>";
?>