Problem with seeders/leechers

Started by Ugjoka, February 11, 2013, 11:03:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

denede


Ugjoka

If someone have the same problem.

Delete:
Code (php) Select
if(isset($torrents[$id]))
From:
Code (php) Select
$fields = explode(":", "comments:leechers:seeders");
$res = @mysql_query("SELECT id, seeders, leechers, comments FROM torrents");
while ($row = mysql_fetch_assoc($res)) {
$id = $row["id"];
if(isset($torrents[$id]))
$torr = $torrents[$id];
foreach ($fields as $field) {
if (!isset($torr[$field]))
$torr[$field] = 0;
}
$update = array();
foreach ($fields as $field) {
if ($torr[$field] != $row[$field])
$update[] = "$field = " . $torr[$field];
}
if (count($update))
@mysql_query("UPDATE torrents SET " . implode(",", $update) . " WHERE id = $id");
}

Ugjoka

Hello guys, i have problem with seeder/leechers on torrents, on dead torrents show that torrent have fifteen and more seeders in database peers not shown any seeders. When i put on all dead torrents seeder and leechers on 0 and start manual cleanup and there is again fifteen seeders... if anybody have the same problem please help me! :-[ Thanks in advance!!