|
@@ -535,7 +535,7 @@ if (!$Properties['GroupID']) {
|
535
|
535
|
|
536
|
536
|
// Use this section to control freeleeches
|
537
|
537
|
$DB->query("
|
538
|
|
- SELECT First, Second
|
|
538
|
+ SELECT Name, First, Second
|
539
|
539
|
FROM misc
|
540
|
540
|
WHERE Second = 'freeleech'");
|
541
|
541
|
if ($DB->has_results()) {
|
|
@@ -602,8 +602,8 @@ if ($T['FreeLeechType'] == 3) {
|
602
|
602
|
$Expiry = 0;
|
603
|
603
|
foreach ($FreeLeechTags as $Tag => $Exp) {
|
604
|
604
|
if ($Tag == 'global' || in_array($Tag, $Tags)) {
|
605
|
|
- if (((int) $FreeLeechTags[$Tag]['Value']) > $Expiry)
|
606
|
|
- $Expiry = (int) $FreeLeechTags[$Tag]['Value'];
|
|
605
|
+ if (((int) $FreeLeechTags[$Tag]['First']) > $Expiry)
|
|
606
|
+ $Expiry = (int) $FreeLeechTags[$Tag]['First'];
|
607
|
607
|
}
|
608
|
608
|
}
|
609
|
609
|
if ($Expiry > 0) {
|
|
@@ -660,16 +660,6 @@ if (trim($Properties['Image']) != '') {
|
660
|
660
|
}
|
661
|
661
|
}
|
662
|
662
|
|
663
|
|
-//******************************************************************************//
|
664
|
|
-//---------------------------------- Contest -----------------------------------//
|
665
|
|
-if ($Properties['LibraryImage'] != '') {
|
666
|
|
- $DB->query("
|
667
|
|
- INSERT INTO reportsv2
|
668
|
|
- (ReporterID, TorrentID, Type, UserComment, Status, ReportedTime, Track, Image, ExtraID, Link)
|
669
|
|
- VALUES
|
670
|
|
- (0, $TorrentID, 'library', '".db_string(($Properties['MultiDisc'] ? 'Multi-disc' : ''))."', 'New', '".sqltime()."', '', '".db_string($Properties['LibraryImage'])."', '', '')");
|
671
|
|
-}
|
672
|
|
-
|
673
|
663
|
//******************************************************************************//
|
674
|
664
|
//------------------------------- Post-processing ------------------------------//
|
675
|
665
|
/* Because tracker updates and notifications can be slow, we're
|