bonjour et merci
comment eviter le hit and run pour les vip??
merci pour vos reponse
comment eviter le hit and run pour les vip??
merci pour vos reponse
if ($torrent["freeleech"] == 1){
replace
if ($user["class"] == "4" || $user["donated"] > "0" || $torrent["freeleech"] == 1){
le tracker envoie des donnees invalides <null>

#======================================================================#
# Start List of Hit and Run
#======================================================================#
if ($action=="hnr")
{
stdhead("List of Hit and Run");
navmenu();
if (get_user_class() < 6)
show_error_msg("Acces Denied", 1);
begin_frame("List of Hit and Run");
$ressy = SQL_Query_exec("SELECT COUNT(*) FROM snatched where hnr='yes' $limit");
$rowh = mysql_fetch_array($ressy);
$count = $rowh[0];
$hnrperpage = 50;
list($pagertop, $pagerbottom, $limit) = pager($hnrperpage, $count, "admincp.php?action=hnr&");
print("<div style='margin-top:10px; margin-bottom:10px' align='center'><font size=2>We have <font color=red><b>$count</b></font> User".($count > 1 ? "s" : "")." with Hit and Run</font></div>");
$sql = "SELECT *,s.tid FROM users u left join snatched s on s.uid=u.id where hnr='yes' ORDER BY s.uid DESC $limit";
$result = SQL_Query_exec($sql);
if( mysql_num_rows($result) != 0 )
{
print("$pagertop");
print'<table class=table_table border=0 cellspacing=0 cellpadding=4 align=center>';
print'<tr>';
print'<td class=table_head><b>User</b></td>';
print'<td class=table_head><b>Torrent</b></td>';
print'<td class=table_head><b>Uploaded</b></td>';
print'<td class=table_head><b>Downloaded</b></td>';
print'<td class=table_head><b>Seed Time</b></td>';
print'<td class=table_head align=center><b>Started</b></td>';
print'<td class=table_head align=center><b>Last Action</b></td>';
print'</tr>';
while($row = mysql_fetch_assoc($result))
{
if ($site_config['MEMBERSONLY'])
{
$sql1 = "SELECT id, username FROM users WHERE id = $row[uid]";
$result1 = SQL_Query_exec($sql1);
$row1 = mysql_fetch_assoc($result1);
}
if ($row1['username'])
print'<tr><td class=table_col1><a href="account-details.php?id=' . $row['uid'] . '"><b>'.class_user($row1['username']).'</b></a></td>';
else
print'<tr><td class=table_col1>'.$row[ip].'</td>';
$sql2 = "SELECT name FROM torrents WHERE id = $row[tid]";
$result2 = SQL_Query_exec($sql2);
while ($row2 = mysql_fetch_assoc($result2))
{
$smallname =substr(htmlspecialchars($row2["name"]) , 0, 35);
if ($smallname != htmlspecialchars($row2["name"])) { $smallname .= '...'; }
$stime = mkprettytime($row[ltime]);
$startdate = utc_to_tz(get_date_time($row['stime']));
$lastaction = utc_to_tz(get_date_time($row['utime']));
print'<td class=table_col2><a href="torrents-details.php?id=' . $row['tid'] . '">' . $smallname . '</td>';
print'<td class=table_col1><font color=limegreen>' . mksize($row['uload']) . '</font></td>';
print'<td class=table_col2><font color=red>' . mksize($row['dload']) . '</font></td>';
print'<td class=table_col1>'.(is_null($stime)?'0':$stime).'</td>';
print'<td align=center class=table_col2>'.date('d.M.Y H:i', sql_timestamp_to_unix_timestamp($startdate)).'</td>';
print'<td align=center class=table_col1>'.date('d.M.Y H:i', sql_timestamp_to_unix_timestamp($lastaction)).'</td>';
print'</tr>';
}
}
print'</table>';
print("$pagerbottom");
}
else
{
print'<b><center>No recordings of Hit and Run</center></b><br />';
}
end_frame();
stdfoot();
}
#======================================================================#
# End List of Hit and Run
#======================================================================#
And in command section:
<td align="center"><a href=admincp.php?action=hnr><img src="images/admin/hitnrun_list.png" border=0 width=32 height=32><br />List of Hit and Run</a><br /></td>
Database Error in backend/cleanup.php on line 332: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 're warned because you have accumulated 3 HnR','2013-03-15 11:53:23','22-Mar-2013' at line 1. Query was: INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES (439,'You're warned because you have accumulated 3 HnR','2013-03-15 11:53:23','22-Mar-2013 09:53:23','0','HnR').
code on line 332 for me is
SQL_Query_exec("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ($user,'".$reason."','".get_date_time()."','".$expiretime."','0','HnR')");
SQL_Query_exec("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ($user,'".$reason."','".get_date_time()."','".$expiretime."','0','HnR')");
to
SQL_Query_exec("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ($user,".sqlesc($reason).",".sqlesc(get_date_time()).",".sqlesc($expiretime).",'0','HnR')");
No users online
Torrents
Members
Online