wierd.. i would check the snatched table in myphpadmin or what ever you use to edit the db and make sure its got data into it.
"XIII, post: 75804":i understand now ;)That is correct stop seeding and the datetime of u stoping should become active
<?php
require_once("backend/functions.php");
dbconn(false);
loggedinonly();
$id = 0 + $_GET["id"];
if (!is_valid_id($id))
show_error_msg (T_("ERROR"), ("No Torrent ID, Please dont direct link to this page without an torrent ID"),1);
stdhead("Snatch Details");
$res3 = SQL_Query_exec("select count(snatched.id) from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id]);
$row = mysql_fetch_array($res3);
$count = $row[0];
$perpage = 50;
$res6 = SQL_Query_exec("select name, category from torrents where id = $_GET[id]");
$arr6 = mysql_fetch_assoc($res6);
$dt = gmtime() - 180;
$dt = sqlesc(get_date_time($dt));
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER["PHP_SELF"] . "?id=" . $_GET[id] . "&" );
begin_frame("Snatch Details for <a href=torrents-details.php?id=$_GET[id]><b>" . $arr6["name"] . "</b></a>");
print("<p align=center>The users at the top finished the download most recently</p>");
print("<table width=80% border=1 cellspacing=0 cellpadding=5 align=center class=table_table>\n");
print("<tr><td class=table_table align=center colspan=11>Snatchdetails for: $arr6[name]</td></tr>");
print("<tr>");
print("<td class=table_head align=center><b>Username</b></td>");
print("<td class=table_head align=center><b>Uploaded</b></td>");
print("<td class=table_head align=center><b>Downloaded</b></td>");
print("<td class=table_head align=center><b>Ratio</b></td>");
if ($CURUSER["edit_torrents"] == "yes"){
print("<td class=table_head align=center><b>Connected</b></td>");
print("<td class=table_head align=center><b>Stats</b></td>");
}
print("<td class=table_head align=center><b>Startdate</b></td>");
print("<td class=table_head align=center><b>Enddate</b></td>");
print("<td class=table_head align=center><b>Last action</b></td>");
print("<td class=table_head align=center><b>Seed end</b></td>");
print("<td class=table_head align=center><b>Seedtime</b></td>");
print("<td class=table_head align=center><b>Finished</b></td>");
print("<td class=table_head align=center><b>Seeding</b></td>");
print("</tr>");
$res = SQL_Query_exec("select users.id, users.username, users.uploaded, users.downloaded, snatched.userid, UNIX_TIMESTAMP(snatched.start_date) AS st, UNIX_TIMESTAMP(snatched.last_action) AS lt, UNIX_TIMESTAMP(snatched.complete_date) AS ct, UNIX_TIMESTAMP(snatched.seed_end) AS se from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id] . " ORDER BY snatched.id desc $limit");
while ($arr = mysql_fetch_assoc($res)) {
$res2 = SQL_Query_exec("SELECT id,donated,title,enabled,warned,last_access FROM users WHERE id=$arr[userid]") or sqlerr(__FILE__, __LINE__);
$arr2 = mysql_fetch_assoc($res2);
$res3 = SQL_Query_exec("SELECT * FROM peers WHERE torrent=$_GET[id] AND userid=$arr[userid]");
$arr3 = mysql_fetch_assoc($res3);
if ($arr["downloaded"] > 0) {
$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);
$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";
} else if ($arr["uploaded"] > 0) $ratio = "Inf.";
else $ratio = "---";
$uploaded =mksize($arr["uploaded"]);
$downloaded = mksize($arr["downloaded"]);
$res5 = SQL_Query_exec("SELECT * FROM snatched WHERE torrentid = " . $_GET[id] . " AND userid = ". $arr[userid] ."");
while ($arr5 = mysql_fetch_assoc($res5)) {
if ($arr5["downloaded"] > 0) {
$ratio1 = number_format($arr5["uploaded"] / $arr5["downloaded"], 3);
$ratio1 = "<font color=" . get_ratio_color($ratio1) . ">$ratio1</font>";
} else if ($arr5["uploaded"] > 0) $ratio1 = "Inf.";
else $ratio1 = "---";
$stime = mkprettytime($arr[se] - $arr[ct]);
print("<tr>");
print("<td class=table_col1 align=center><a href=account-details.php?id=$arr[userid]><b>$arr[username]</b></a></td>");
print("<td class=table_col2 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$uploaded<br><font class=small><font color=green><u>Torrent:</u></font></font><br>". mksize($arr5[uploaded]) ."</td>");
print("<td class=table_col1 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$downloaded<br><font class=small><font color=green><u>Torrent:</u></font></font><br>". mksize($arr5[downloaded]) ."</td>");
print("<td class=table_col2 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$ratio<br><font class=small><font color=green><u>Torrent:</u></font></font><br>$ratio1</td>");
if ($CURUSER["edit_torrents"] == "yes"){
print("<td class=table_col1 align=center><font class=small><font color=green><u>Client:</u></font></font><br>". $arr5[agent] ."<br><font class=small><font color=green><u>Peer-ID:</u></font></font><br>". $arr5[peer_id] ."</td>");
print("<td class=table_col2 align=center><font class=small><font color=green><u>IP:</u></font></font><br>". $arr5[ip] ."<br><font class=small><font color=green><u>Port:</u></font></font><br>". $arr5[port] ."</td>");
}
print("<td class=table_col1 align=center>". $arr5[start_date] ."</td>");
print("<td class=table_col2 align=center>". $arr5[complete_date] ."</td>");
print("<td class=table_col1 align=center>". $arr5[last_action] ."</td>");
if ($arr3["seeder"] == "yes")
print("<td class=table_col2 align=center><font color=green>Waiting<br>for<br>stats</font></td>");
else
print("<td class=table_col1 align=center>". $arr5[seed_end] ."</td>");
if ($arr3["seeder"] == "yes")
print("<td class=table_col2 align=center><font color=green>Waiting<br>for<br>stats</font></td>");
else
print("<td class=table_col1 align=center>$stime</td>");
print("<td class=table_col2 align=center>" . ($arr5["finished"] == "yes" ? "<b><font color=green>Yes</font>" : "<font color=red>No</font></b>") . "</td>");
print("<td class=table_col1 align=center>" . ($arr3["seeder"] == "yes" ? "<b><font color=green>Yes</font>" : "<font color=red>No</font></b>") . "</td>");
print("</tr>\n");
print("</tr>");
}
}
print("</table>");
print("$pagerbottom");
end_frame();
stdfoot();
?> show_error_msg(T_("ERROR"),"No Torrent ID, Please dont direct link to this page without an torrent ID"),1);to show_error_msg(T_("ERROR"),"No Torrent ID, Please dont direct link to this page without an torrent ID",1);echo "[<a href='torrents-edit.php?id=$row[id]&returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "'><b>".T_("EDIT_TORRENT")."</b></a>]";
Replace by:
echo "[<a href='torrents-edit.php?id=$row[id]&returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "'><b>".T_("EDIT_TORRENT")."</b></a>]";
echo "[<a href='viewsnatches.php?id=".$row['id']."'><b>View Snatched List</b></a>]";
No users online
Torrents
Members
Online