
Into every theme, in header.php after the logout or username line copy this code:
//----- active torrents & connectable -----//
$res = mysql_query("SELECT COUNT(*) FROM peers WHERE userid=" . $CURUSER["id"] . " AND seeder='yes'");
$row = mysql_fetch_row($res);
$activeseed = $row[0];
$res = mysql_query("SELECT COUNT(*) FROM peers WHERE userid=" . $CURUSER["id"] . " AND seeder='no'");
$row = mysql_fetch_row($res);
$activeleech = $row[0];
$res2 = mysql_query("SELECT connectable FROM peers WHERE userid=" . sqlesc($CURUSER["id"]) . " LIMIT 1");
if($row = mysql_fetch_row($res2)){
$connect = $row[0];
if($connect == "yes"){
$connectable = "<font color=lime>Connectable</font>";
}else{ $connectable = "<font color=red>Unconnectable</font>";}
}else{ $connectable = "No transfer";}
print("[Active Torrents: Up-<font color=lime><b>$activeseed</b></font> Down-<font color=red><b>$activeleech</b></font>] ");
print("[$connectable] ");
//--- end active torrents & connectable ---//For example, on my tracker i included the code after this line: echo " [<a href=\"account-logout.php\" >".T_("LOGOUT")."</a>] ";Do not forget to replace mysql_query with SQL_Query_exec if you are use it.
...