fix announce.php seeder&leecher count directly

This commit is contained in:
xiaomlove
2022-04-25 14:52:59 +08:00
parent da2f19b88f
commit e0d0d219b1
4 changed files with 35 additions and 15 deletions

View File

@@ -682,6 +682,13 @@ function get_hr_ratio($uped, $downed)
return $ratio;
}
function get_row_count($table, $suffix = "")
{
$r = sql_query("SELECT COUNT(*) FROM $table $suffix") or sqlerr(__FILE__, __LINE__);
$a = mysql_fetch_row($r);
return $a[0];
}
function nexus()
{
return \Nexus\Nexus::instance();