if(isset($_POST['compare'])) {
if (isset($_POST['userida']) && is_numeric($_POST['userida']) && isset($_POST['useridb']) && is_numeric($_POST['useridb'])) {
$UserIDA = (int) $_POST['userida'];
$UserIDB = (int) $_POST['useridb'];
if(isset($_POST['limit']) && is_numeric($_POST['limit'])) {
$Limit = 'LIMIT ' . $_POST['limit'];
}
$DB->query("SELECT g.ID, g.Name FROM torrents AS t INNER JOIN torrents_group AS g ON g.ID = t.GroupID JOIN xbt_snatched AS xs ON xs.fid=t.ID WHERE xs.uid IN ($UserIDA,$UserIDB) HAVING COUNT(xs.fid) > 1 ORDER BY xs.tstamp DESC $LIMIT");
?>
Torrent |
while(list($GroupID, $GroupName) = $DB->next_record()) {
?>
=$GroupName?>
|
}
?>
}
}
show_footer();
?>