From 14ba5bd400a3e279eb9432cfde0b1d5062ddc8c9 Mon Sep 17 00:00:00 2001
From: Git
Date: Wed, 22 Aug 2012 08:00:18 +0000
Subject: [PATCH] Empty commit
---
sections/rules/ratio.php | 2 +-
sections/tools/data/common_snatches.php | 70 +++++++++++++++++++++++++
2 files changed, 71 insertions(+), 1 deletion(-)
create mode 100644 sections/tools/data/common_snatches.php
diff --git a/sections/rules/ratio.php b/sections/rules/ratio.php
index caaefeb1..7462d43c 100644
--- a/sections/rules/ratio.php
+++ b/sections/rules/ratio.php
@@ -123,7 +123,7 @@
- If you download over 10GB while you're on ratio watch, you will be instantly disabled.
+ If you download over 10GB while you're on ratio watch, your downloading privileges will be disabled.
diff --git a/sections/tools/data/common_snatches.php b/sections/tools/data/common_snatches.php
new file mode 100644
index 00000000..00175bda
--- /dev/null
+++ b/sections/tools/data/common_snatches.php
@@ -0,0 +1,70 @@
+
+
+
+
+ User A |
+ User B |
+ Limit |
+
+
+
+
+
+
+
+
+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();
+?>