mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-21 20:59:02 +00:00
Empty commit
This commit is contained in:
parent
6a2b5cb774
commit
78393da97b
@ -190,6 +190,7 @@ function music_form($GenreTags) {
|
||||
$BadFiles = $Torrent['BadFiles'];
|
||||
$CassetteApproved = $Torrent['CassetteApproved'];
|
||||
$LossymasterApproved = $Torrent['LossymasterApproved'];
|
||||
$LossywebApproved = $Torrent['LossywebApproved'];
|
||||
global $ReleaseTypes;
|
||||
?>
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="border<? if($this->NewTorrent) { echo ' slice'; }?>" width="100%">
|
||||
@ -559,11 +560,17 @@ function show() {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Lossy master Approved</td>
|
||||
<td class="label">Lossy Master Approved</td>
|
||||
<td>
|
||||
<input type="checkbox" id="lossymaster_approved" name="lossymaster_approved"<? if ($LossymasterApproved) {echo " checked='checked'";}?>/> Check this box if the torrent is an approved lossy master.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Lossy Web Approved</td>
|
||||
<td>
|
||||
<input type="checkbox" id="lossyweb_approved" name="lossyweb_approved"<? if ($LossywebApproved) { echo " checked='checked'";}?>/> Check this box if the torrent is an approved lossy WEB release.
|
||||
</td>
|
||||
</tr>
|
||||
<? }?>
|
||||
<? if($this->NewTorrent) { ?>
|
||||
<tr>
|
||||
|
@ -1314,6 +1314,7 @@ function delete_torrent($ID, $GroupID=0) {
|
||||
$DB->query("DELETE FROM torrents_bad_files WHERE TorrentID = ".$ID);
|
||||
$DB->query("DELETE FROM torrents_cassette_approved WHERE TorrentID = ".$ID);
|
||||
$DB->query("DELETE FROM torrents_lossymaster_approved WHERE TorrentID = ".$ID);
|
||||
$DB->query("DELETE FROM torrents_lossyweb_approved WHERE TorrentID = ".$ID);
|
||||
$Cache->delete_value('torrent_download_'.$ID);
|
||||
$Cache->delete_value('torrent_group_'.$GroupID);
|
||||
$Cache->delete_value('torrents_details_'.$GroupID);
|
||||
|
559
gazelle.sql
559
gazelle.sql
File diff suppressed because one or more lines are too long
@ -19,7 +19,7 @@
|
||||
$Types = array(
|
||||
'master' => array(
|
||||
'dupe' => array(
|
||||
'priority' => '1',
|
||||
'priority' => '10',
|
||||
'title' => 'Dupe',
|
||||
'report_messages' => array(
|
||||
'Please specify a link to the original torrent.'
|
||||
@ -35,7 +35,7 @@
|
||||
)
|
||||
),
|
||||
'banned' => array(
|
||||
'priority' => '23',
|
||||
'priority' => '230',
|
||||
'title' => 'Specifically Banned',
|
||||
'report_messages' => array(
|
||||
'Please specify exactly which entry on the Do Not Upload list this is violating.'
|
||||
@ -51,7 +51,7 @@
|
||||
)
|
||||
),
|
||||
'urgent' => array(
|
||||
'priority' => '28',
|
||||
'priority' => '280',
|
||||
'title' => 'Urgent',
|
||||
'report_messages' => array(
|
||||
'This report type is only for the very urgent reports, usually for personal information being found within a torrent.',
|
||||
@ -72,7 +72,7 @@
|
||||
)
|
||||
),
|
||||
'other' => array(
|
||||
'priority' => '20',
|
||||
'priority' => '200',
|
||||
'title' => 'Other',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report'
|
||||
@ -87,7 +87,7 @@
|
||||
)
|
||||
),
|
||||
'trump' => array(
|
||||
'priority' => '2',
|
||||
'priority' => '20',
|
||||
'title' => 'Trump',
|
||||
'report_messages' => array(
|
||||
'Please list the specific reason(s) the newer torrent trumps the older one.',
|
||||
@ -107,7 +107,7 @@
|
||||
),
|
||||
'1' => array( //Music Resolves
|
||||
'tag_trump' => array (
|
||||
'priority' => '5',
|
||||
'priority' => '50',
|
||||
'title' => 'Tag Trump',
|
||||
'report_messages' => array(
|
||||
'Please list the specific tag(s) the newer torrent trumps the older one.',
|
||||
@ -125,7 +125,7 @@
|
||||
)
|
||||
),
|
||||
'vinyl_trump' => array(
|
||||
'priority' => '6',
|
||||
'priority' => '60',
|
||||
'title' => 'Vinyl Trump',
|
||||
'report_messages' => array(
|
||||
'Please list the specific reason(s) the newer torrent trumps the older one.',
|
||||
@ -144,7 +144,7 @@
|
||||
)
|
||||
),
|
||||
'folder_trump' => array (
|
||||
'priority' => '4',
|
||||
'priority' => '40',
|
||||
'title' => 'Bad Folder Name Trump',
|
||||
'report_messages' => array(
|
||||
'Please list the folder name and what is wrong with it',
|
||||
@ -163,7 +163,7 @@
|
||||
)
|
||||
),
|
||||
'file_trump' => array (
|
||||
'priority' => '3',
|
||||
'priority' => '30',
|
||||
'title' => 'Bad File Names Trump',
|
||||
'report_messages' => array(
|
||||
'Please describe what is wrong with the file names.',
|
||||
@ -181,7 +181,7 @@
|
||||
)
|
||||
),
|
||||
'tracks_missing' => array(
|
||||
'priority' => '24',
|
||||
'priority' => '240',
|
||||
'title' => 'Track(s) Missing',
|
||||
'report_messages' => array(
|
||||
'Please list the track number and title of the missing track',
|
||||
@ -201,7 +201,7 @@
|
||||
)
|
||||
),
|
||||
'discs_missing' => array(
|
||||
'priority' => '12',
|
||||
'priority' => '120',
|
||||
'title' => 'Disc(s) Missing',
|
||||
'report_messages' => array(
|
||||
'If possible, please provide a link to Amazon.com or another source showing the proper track listing.'
|
||||
@ -220,7 +220,7 @@
|
||||
)
|
||||
),
|
||||
'bonus_tracks' => array(
|
||||
'priority' => '9',
|
||||
'priority' => '90',
|
||||
'title' => 'Bonus Tracks Only',
|
||||
'report_messages' => array(
|
||||
'If possible, please provide a link to Amazon.com or another source showing the proper track listing.'
|
||||
@ -238,7 +238,7 @@
|
||||
)
|
||||
),
|
||||
'transcode' => array(
|
||||
'priority' => '25',
|
||||
'priority' => '250',
|
||||
'title' => 'Transcode',
|
||||
'report_messages' => array(
|
||||
"Please list the tracks you checked, and the method used to determine the transcode.",
|
||||
@ -257,7 +257,7 @@
|
||||
)
|
||||
),
|
||||
'low' => array(
|
||||
'priority' => '17',
|
||||
'priority' => '170',
|
||||
'title' => 'Low Bitrate',
|
||||
'report_messages' => array(
|
||||
"Please tell us the actual bitrate, and the software used to check."
|
||||
@ -274,7 +274,7 @@
|
||||
)
|
||||
),
|
||||
'mutt' => array(
|
||||
'priority' => '18',
|
||||
'priority' => '180',
|
||||
'title' => 'Mutt Rip',
|
||||
'report_messages' => array(
|
||||
"Please list at least two (2) tracks which have different bitrates and/or encoders."
|
||||
@ -291,7 +291,7 @@
|
||||
)
|
||||
),
|
||||
'single_track' => array(
|
||||
'priority' => '27',
|
||||
'priority' => '270',
|
||||
'title' => 'Unsplit Album Rip',
|
||||
'report_messages' => array(
|
||||
"If possible, please provide a link to Amazon.com or another source showing the proper track listing.",
|
||||
@ -311,7 +311,7 @@
|
||||
)
|
||||
),
|
||||
'tags_lots' => array(
|
||||
'priority' => '31',
|
||||
'priority' => '82',
|
||||
'title' => 'Bad Tags / No Tags at All',
|
||||
'report_messages' => array(
|
||||
"Please specify which tags are missing, and whether they're missing from all tracks.",
|
||||
@ -330,7 +330,7 @@
|
||||
)
|
||||
),
|
||||
'folders_bad' => array(
|
||||
'priority' => '30',
|
||||
'priority' => '81',
|
||||
'title' => 'Bad Folder Names',
|
||||
'report_messages' => array(
|
||||
"Please specify the issue with the folder names.",
|
||||
@ -347,7 +347,7 @@
|
||||
)
|
||||
),
|
||||
'wrong_format' => array(
|
||||
'priority' => '32',
|
||||
'priority' => '320',
|
||||
'title' => 'Wrong Specified Format',
|
||||
'report_messages' => array(
|
||||
"Please specify the correct format."
|
||||
@ -363,7 +363,7 @@
|
||||
)
|
||||
),
|
||||
'wrong_media' => array(
|
||||
'priority' => '33',
|
||||
'priority' => '330',
|
||||
'title' => 'Wrong Specified Media',
|
||||
'report_messages' => array(
|
||||
"Please specify the correct media."
|
||||
@ -378,7 +378,7 @@
|
||||
)
|
||||
),
|
||||
'format' => array(
|
||||
'priority' => '10',
|
||||
'priority' => '100',
|
||||
'title' => 'Disallowed Format',
|
||||
'report_messages' => array(
|
||||
"If applicable, list the relevant tracks"
|
||||
@ -397,7 +397,7 @@
|
||||
)
|
||||
),
|
||||
'bitrate' => array(
|
||||
'priority' => '15',
|
||||
'priority' => '150',
|
||||
'title' => 'Inaccurate Bitrate',
|
||||
'report_messages' => array(
|
||||
"Please tell us the actual bitrate, and the software used to check.",
|
||||
@ -416,7 +416,7 @@
|
||||
)
|
||||
),
|
||||
'source' => array(
|
||||
'priority' => '21',
|
||||
'priority' => '210',
|
||||
'title' => 'Radio/TV/FM/WEB Rip',
|
||||
'report_messages' => array(
|
||||
"Please include as much information as possible to verify the report"
|
||||
@ -434,7 +434,7 @@
|
||||
)
|
||||
),
|
||||
'discog' => array(
|
||||
'priority' => '13',
|
||||
'priority' => '130',
|
||||
'title' => 'Discography',
|
||||
'report_messages' => array(
|
||||
"Please include as much information as possible to verify the report"
|
||||
@ -451,7 +451,7 @@
|
||||
)
|
||||
),
|
||||
'user_discog' => array(
|
||||
'priority' => '29',
|
||||
'priority' => '290',
|
||||
'title' => 'User Compilation',
|
||||
'report_messages' => array(
|
||||
"Please include as much information as possible to verify the report"
|
||||
@ -469,7 +469,7 @@
|
||||
)
|
||||
),
|
||||
'lineage' => array(
|
||||
'priority' => '19',
|
||||
'priority' => '190',
|
||||
'title' => 'No Lineage Info',
|
||||
'report_messages' => array(
|
||||
"Please list the specific information missing from the torrent (hardware, software, etc.)"
|
||||
@ -485,7 +485,7 @@
|
||||
)
|
||||
),
|
||||
'edited' => array(
|
||||
'priority' => '14',
|
||||
'priority' => '140',
|
||||
'title' => 'Edited Log',
|
||||
'report_messages' => array(
|
||||
"Please explain exactly where you believe the log was edited.",
|
||||
@ -503,7 +503,7 @@
|
||||
)
|
||||
),
|
||||
'audience' => array(
|
||||
'priority' => '7',
|
||||
'priority' => '70',
|
||||
'title' => 'Audience Recording',
|
||||
'report_messages' => array(
|
||||
"Please include as much information as possible to verify the report"
|
||||
@ -520,7 +520,7 @@
|
||||
)
|
||||
),
|
||||
'filename' => array(
|
||||
'priority' => '8',
|
||||
'priority' => '80',
|
||||
'title' => 'Bad File Names',
|
||||
'report_messages' => array(
|
||||
),
|
||||
@ -538,7 +538,7 @@
|
||||
)
|
||||
),
|
||||
'cassette' => array(
|
||||
'priority' => '26',
|
||||
'priority' => '260',
|
||||
'title' => 'Unapproved Cassette',
|
||||
'report_messages' => array(
|
||||
"If the album was never released other than on cassette, please include a source."
|
||||
@ -557,7 +557,7 @@
|
||||
)
|
||||
),
|
||||
'skips' => array(
|
||||
'priority' => '22',
|
||||
'priority' => '220',
|
||||
'title' => 'Skips / Encode Errors',
|
||||
'report_messages' => array(
|
||||
"Please tell us which track(s) we should check.",
|
||||
@ -575,7 +575,7 @@
|
||||
)
|
||||
),
|
||||
'rescore' => array(
|
||||
'priority' => '16',
|
||||
'priority' => '160',
|
||||
'title' => 'Log Rescore Request',
|
||||
'report_messages' => array(
|
||||
"It could help us if you say exactly why you believe this log requires rescoring.",
|
||||
@ -597,7 +597,7 @@
|
||||
),
|
||||
'2' => array( //Applications Rules Broken
|
||||
'missing_crack' => array(
|
||||
'priority' => '7',
|
||||
'priority' => '70',
|
||||
'title' => 'No Crack/Keygen/Patch',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report',
|
||||
@ -614,7 +614,7 @@
|
||||
)
|
||||
),
|
||||
'game' => array(
|
||||
'priority' => '5',
|
||||
'priority' => '50',
|
||||
'title' => 'Game',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report',
|
||||
@ -632,7 +632,7 @@
|
||||
)
|
||||
),
|
||||
'free' => array(
|
||||
'priority' => '4',
|
||||
'priority' => '40',
|
||||
'title' => 'Freely Available',
|
||||
'report_messages' => array(
|
||||
'Please include a link to a source of information or to the freely available app itself.',
|
||||
@ -649,7 +649,7 @@
|
||||
)
|
||||
),
|
||||
'description' => array(
|
||||
'priority' => '8',
|
||||
'priority' => '80',
|
||||
'title' => 'No Description',
|
||||
'report_messages' => array(
|
||||
'If possible, please provide a link to an accurate description',
|
||||
@ -666,7 +666,7 @@
|
||||
)
|
||||
),
|
||||
'pack' => array(
|
||||
'priority' => '2',
|
||||
'priority' => '20',
|
||||
'title' => 'Archived Pack',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report'
|
||||
@ -684,7 +684,7 @@
|
||||
)
|
||||
),
|
||||
'collection' => array(
|
||||
'priority' => '3',
|
||||
'priority' => '30',
|
||||
'title' => 'Collection of Cracks',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report'
|
||||
@ -701,7 +701,7 @@
|
||||
)
|
||||
),
|
||||
'hack' => array(
|
||||
'priority' => '6',
|
||||
'priority' => '60',
|
||||
'title' => 'Hacking Tool',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report',
|
||||
@ -718,7 +718,7 @@
|
||||
)
|
||||
),
|
||||
'virus' => array(
|
||||
'priority' => '6',
|
||||
'priority' => '60',
|
||||
'title' => 'Contains Virus',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report. Please also double check that your virus scanner is not incorrectly identifying a keygen or crack as a virus.',
|
||||
@ -736,7 +736,7 @@
|
||||
)
|
||||
),
|
||||
'notwork' => array(
|
||||
'priority' => '6',
|
||||
'priority' => '60',
|
||||
'title' => 'Not Working',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report.',
|
||||
@ -756,7 +756,7 @@
|
||||
),
|
||||
'3' => array( //Ebook Rules Broken
|
||||
'unrelated' => array(
|
||||
'priority' => '27',
|
||||
'priority' => '270',
|
||||
'title' => 'Unrelated Ebooks',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report'
|
||||
@ -774,7 +774,7 @@
|
||||
),
|
||||
'4' => array( //Audiobook Rules Broken
|
||||
'skips' => array(
|
||||
'priority' => '21',
|
||||
'priority' => '210',
|
||||
'title' => 'Skips / Encode Errors',
|
||||
'report_messages' => array(
|
||||
"Please tell us which track(s) we should check.",
|
||||
@ -794,7 +794,7 @@
|
||||
),
|
||||
'5' => array( //E-Learning vidoes Rules Broken
|
||||
'dissallowed' => array(
|
||||
'priority' => '2',
|
||||
'priority' => '20',
|
||||
'title' => 'Disallowed Topic',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report'
|
||||
@ -813,7 +813,7 @@
|
||||
),
|
||||
'6' => array( //Comedy Rules Broken
|
||||
'talkshow' => array(
|
||||
'priority' => '27',
|
||||
'priority' => '270',
|
||||
'title' => 'Talkshow/Podcast',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report'
|
||||
@ -832,7 +832,7 @@
|
||||
),
|
||||
'7' => array( //Comics Rules Broken
|
||||
'titles' => array(
|
||||
'priority' => '18',
|
||||
'priority' => '180',
|
||||
'title' => 'Multiple Comic Titles',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report'
|
||||
@ -849,7 +849,7 @@
|
||||
)
|
||||
),
|
||||
'volumes' => array(
|
||||
'priority' => '19',
|
||||
'priority' => '190',
|
||||
'title' => 'Multiple Volumes',
|
||||
'report_messages' => array(
|
||||
'Please include as much information as possible to verify the report'
|
||||
|
@ -526,7 +526,7 @@ function next_hour() {
|
||||
sleep(5);
|
||||
// Send email
|
||||
$DB->query("SELECT um.Username, um.Email FROM users_info AS ui JOIN users_main AS um ON um.ID=ui.UserID
|
||||
LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".TC."'
|
||||
LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".CELEB."'
|
||||
WHERE um.PermissionID IN ('".USER."', '".MEMBER ."')
|
||||
AND um.LastAccess<'".time_minus(3600*24*110, true)."'
|
||||
AND um.LastAccess>'".time_minus(3600*24*111, true)."'
|
||||
@ -540,7 +540,7 @@ function next_hour() {
|
||||
send_email($Email, 'Your '.SITE_NAME.' account is about to be disabled', $Body);
|
||||
}
|
||||
$DB->query("SELECT um.ID FROM users_info AS ui JOIN users_main AS um ON um.ID=ui.UserID
|
||||
LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".TC."'
|
||||
LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".CELEB."'
|
||||
WHERE um.PermissionID IN ('".USER."', '".MEMBER ."')
|
||||
AND um.LastAccess<'".time_minus(3600*24*30*4)."'
|
||||
AND um.LastAccess!='0000-00-00 00:00:00'
|
||||
|
@ -386,12 +386,12 @@ function filelist($Str) {
|
||||
//t.ID, t.Media, t.Format, t.Encoding, t.Remastered, t.RemasterYear, t.RemasterTitle, t.RemasterRecordLabel,t.RemasterCatalogueNumber,
|
||||
//t.Scene, t.HasLog, t.HasCue, t.LogScore, t.FileCount, t.Size, t.Seeders, t.Leechers, t.Snatched, t.FreeTorrent, t.Time, t.Description,
|
||||
//t.FileList, t.FilePath, t.UserID, t.last_action,
|
||||
//(bad tags), (bad folders), (bad filenames), (cassette approved), (lossy master approved), t.LastReseedRequest, LogInDB
|
||||
//(bad tags), (bad folders), (bad filenames), (cassette approved), (lossy master approved), (lossy web approved), t.LastReseedRequest, LogInDB
|
||||
|
||||
list($TorrentID, $Media, $Format, $Encoding, $Remastered, $RemasterYear, $RemasterTitle, $RemasterRecordLabel, $RemasterCatalogueNumber,
|
||||
$Scene, $HasLog, $HasCue, $LogScore, $FileCount, $Size, $Seeders, $Leechers, $Snatched, $FreeTorrent, $TorrentTime, $Description,
|
||||
$FileList, $FilePath, $UserID, $LastActive,
|
||||
$BadTags, $BadFolders, $BadFiles, $CassetteApproved, $LossymasterApproved, $LastReseedRequest, $LogInDB, $HasFile) = $Torrent;
|
||||
$BadTags, $BadFolders, $BadFiles, $CassetteApproved, $LossymasterApproved, $LossywebApproved, $LastReseedRequest, $LogInDB, $HasFile) = $Torrent;
|
||||
|
||||
if($Remastered && !$RemasterYear) {
|
||||
$FirstUnknown = !isset($FirstUnknown);
|
||||
@ -468,6 +468,7 @@ function filelist($Str) {
|
||||
if(!empty($BadFolders)) { $ExtraInfo.=$AddExtra.'<strong>Bad Folders</strong>'; $AddExtra=' / '; }
|
||||
if(!empty($CassetteApproved)) { $ExtraInfo.=$AddExtra.'<strong>Cassette Approved</strong>'; $AddExtra=' / '; }
|
||||
if(!empty($LossymasterApproved)) { $ExtraInfo.=$AddExtra.'<strong>Lossy Master Approved</strong>'; $AddExtra=' / '; }
|
||||
if(!empty($LossywebApproved)) { $ExtraInfo.=$AddExtra.'<strong>Lossy WEB Approved</strong>'; $AddExtra = ' / '; }
|
||||
if(!empty($BadFiles)) { $ExtraInfo.=$AddExtra.'<strong>Bad File Names</strong>'; $AddExtra=' / '; }
|
||||
|
||||
if($GroupCategoryID == 1
|
||||
|
@ -44,7 +44,8 @@
|
||||
bf.TorrentID AS BadFolders,
|
||||
bfi.TorrentID AS BadFiles,
|
||||
ca.TorrentID AS CassetteApproved,
|
||||
lma.TorrentID AS LossymasterApproved
|
||||
lma.TorrentID AS LossymasterApproved,
|
||||
lwa.TorrentID AS LossywebApproved
|
||||
FROM torrents AS t
|
||||
LEFT JOIN torrents_group AS tg ON tg.ID=t.GroupID
|
||||
LEFT JOIN artists_group AS ag ON ag.ArtistID=tg.ArtistID
|
||||
@ -53,6 +54,7 @@
|
||||
LEFT JOIN torrents_bad_files AS bfi ON bfi.TorrentID=t.ID
|
||||
LEFT JOIN torrents_cassette_approved AS ca ON ca.TorrentID=t.ID
|
||||
LEFT JOIN torrents_lossymaster_approved AS lma ON lma.TorrentID=t.ID
|
||||
LEFT JOIN torrents_lossyweb_approved AS lwa ON lwa.TorrentID=t.id
|
||||
WHERE t.ID='$TorrentID'");
|
||||
|
||||
list($Properties) = $DB->to_array(false,MYSQLI_BOTH);
|
||||
|
@ -88,6 +88,7 @@ function get_group_info($GroupID, $Return = true, $RevisionID = 0) {
|
||||
tfi.TorrentID,
|
||||
ca.TorrentID,
|
||||
lma.TorrentID,
|
||||
lwa.TorrentID,
|
||||
t.LastReseedRequest,
|
||||
tln.TorrentID AS LogInDB,
|
||||
t.ID AS HasFile
|
||||
@ -97,6 +98,7 @@ function get_group_info($GroupID, $Return = true, $RevisionID = 0) {
|
||||
LEFT JOIN torrents_bad_files AS tfi on tfi.TorrentID=t.ID
|
||||
LEFT JOIN torrents_cassette_approved AS ca on ca.TorrentID=t.ID
|
||||
LEFT JOIN torrents_lossymaster_approved AS lma on lma.TorrentID=t.ID
|
||||
LEFT JOIN torrents_lossyweb_approved AS lwa on lwa.TorrentID=t.ID
|
||||
LEFT JOIN torrents_logs_new AS tln ON tln.TorrentID=t.ID
|
||||
WHERE t.GroupID='".db_string($GroupID)."'
|
||||
GROUP BY t.ID
|
||||
@ -159,4 +161,4 @@ function get_group_requests($GroupID) {
|
||||
}
|
||||
$Requests = get_requests($Requests);
|
||||
return $Requests['matches'];
|
||||
}
|
||||
}
|
||||
|
@ -46,6 +46,7 @@
|
||||
$Properties['BadFiles'] = (isset($_POST['bad_files'])) ? 1 : 0;
|
||||
$Properties['CassetteApproved'] = (isset($_POST['cassette_approved']))? 1 : 0;
|
||||
$Properties['LossymasterApproved'] = (isset($_POST['lossymaster_approved']))? 1 : 0;
|
||||
$Properties['LossywebApproved'] = (isset($_POST['lossyweb_approved'])) ? 1 : 0;
|
||||
$Properties['LibraryUpload'] = (isset($_POST['library_upload']))? 1 : 0;
|
||||
$Properties['LibraryPoints'] = (isset($_POST['library_points']))? $_POST['library_points'] : 0;
|
||||
$Properties['Format'] = $_POST['format'];
|
||||
@ -364,6 +365,15 @@
|
||||
if ($lmaID && !$Properties['LossymasterApproved']) {
|
||||
$DB->query("DELETE FROM torrents_lossymaster_approved WHERE TorrentID='$TorrentID'");
|
||||
}
|
||||
|
||||
$DB->query("SELECT TorrentID FROM torrents_lossyweb_approved WHERE TorrentID='$TorrentID'");
|
||||
list($lwID) = $DB->next_record();
|
||||
if (!$lwID && $Properties['LossywebApproved']) {
|
||||
$DB->query("INSERT INTO torrents_lossyweb_approved VALUES($TorrentID, $LoggedUser[ID], '".sqltime()."')");
|
||||
}
|
||||
if ($lwID && !$Properties['LossywebApproved']) {
|
||||
$DB->query("DELETE FROM torrents_lossyweb_approved WHERE TorrentID='$TorrentID'");
|
||||
}
|
||||
}
|
||||
|
||||
$SQL .= "
|
||||
|
@ -105,7 +105,7 @@
|
||||
<p><?=$NewDNU?'<strong class="important_text">':''?>Last Updated: <?=time_diff($Updated)?><?=$NewDNU?'</strong>':''?></p>
|
||||
<p>The following releases are currently forbidden from being uploaded to the site. Do not upload them unless your torrent meets a condition specified in the comment.
|
||||
<? if ($HideDNU) { ?>
|
||||
<span id="showdnu"><a href="#" <a href="#" onclick="$('#dnulist').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;">(Show)</a></span>
|
||||
<span id="showdnu"><a href="#" onclick="$('#dnulist').toggle(); this.innerHTML=(this.innerHTML=='(Hide)'?'(Show)':'(Hide)'); return false;">(Show)</a></span>
|
||||
<? } ?>
|
||||
</p>
|
||||
<table id="dnulist" class="<?=($HideDNU?'hidden':'')?>" style="">
|
||||
|
Loading…
Reference in New Issue
Block a user