hello, Salut
Test like its I add the 3x function
Teste comme sa j'ai ajouter la fonction 3x
if ($site_config['MEMBERSONLY'] || $CURUSER) {
begin_frame(T_("TEST"));
// TORRENT XXX MONTRER-CACHER BY GOLLUM
if( $CURUSER['xxx_filter'] == 'yes'){
$ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
while($datas = mysqli_fetch_array($ressa)){
$wherex .= "AND categories.id != '".$datas["cat"]."' ";
}
}
// END TORRENT XXX MONTRER-CACHER BY GOLLUM
$news = mysql_query("SELECT id, name, added, image1, image2, sticky, seeders, leechers FROM torrents WHERE sticky = 'yes' AND visible='yes' ORDER BY torrents.id DESC LIMIT 10"); ///limi$
if (mysqli_num_rows($news) > 0) {
print("<table class=table_table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");
while ($row2 = mysqli_fetch_array($news, MYSQLI_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.seeders, torrents.leechers, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $wherex $orderby $limit");
$row = mysqli_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<div class=ttable_header><a class='hovertexty' title='Sticky' href=".$site_config['SITEURL']."/file.php?id=$row[id]'><img border='0' src='uploads/images/".$row['image1']."' title=\"Last Sticky: $altname | $cat\" height=140 width=100></a></div>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."<div style='margin-top:10px; font-size:13px;'>
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div></td><td> </td>");
}
}
print("</tr></table>");
}
end_frame();
}