Empty commit

This commit is contained in:
Git 2012-05-31 08:00:14 +00:00
parent 6a2b5cb774
commit 78393da97b
10 changed files with 361 additions and 331 deletions

View File

@ -190,6 +190,7 @@ function music_form($GenreTags) {
$BadFiles = $Torrent['BadFiles']; $BadFiles = $Torrent['BadFiles'];
$CassetteApproved = $Torrent['CassetteApproved']; $CassetteApproved = $Torrent['CassetteApproved'];
$LossymasterApproved = $Torrent['LossymasterApproved']; $LossymasterApproved = $Torrent['LossymasterApproved'];
$LossywebApproved = $Torrent['LossywebApproved'];
global $ReleaseTypes; global $ReleaseTypes;
?> ?>
<table cellpadding="3" cellspacing="1" border="0" class="border<? if($this->NewTorrent) { echo ' slice'; }?>" width="100%"> <table cellpadding="3" cellspacing="1" border="0" class="border<? if($this->NewTorrent) { echo ' slice'; }?>" width="100%">
@ -559,11 +560,17 @@ function show() {
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="label">Lossy master Approved</td> <td class="label">Lossy Master Approved</td>
<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. <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> </td>
</tr> </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) { ?> <? if($this->NewTorrent) { ?>
<tr> <tr>

View File

@ -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_bad_files WHERE TorrentID = ".$ID);
$DB->query("DELETE FROM torrents_cassette_approved 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_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_download_'.$ID);
$Cache->delete_value('torrent_group_'.$GroupID); $Cache->delete_value('torrent_group_'.$GroupID);
$Cache->delete_value('torrents_details_'.$GroupID); $Cache->delete_value('torrents_details_'.$GroupID);

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,7 @@
$Types = array( $Types = array(
'master' => array( 'master' => array(
'dupe' => array( 'dupe' => array(
'priority' => '1', 'priority' => '10',
'title' => 'Dupe', 'title' => 'Dupe',
'report_messages' => array( 'report_messages' => array(
'Please specify a link to the original torrent.' 'Please specify a link to the original torrent.'
@ -35,7 +35,7 @@
) )
), ),
'banned' => array( 'banned' => array(
'priority' => '23', 'priority' => '230',
'title' => 'Specifically Banned', 'title' => 'Specifically Banned',
'report_messages' => array( 'report_messages' => array(
'Please specify exactly which entry on the Do Not Upload list this is violating.' 'Please specify exactly which entry on the Do Not Upload list this is violating.'
@ -51,7 +51,7 @@
) )
), ),
'urgent' => array( 'urgent' => array(
'priority' => '28', 'priority' => '280',
'title' => 'Urgent', 'title' => 'Urgent',
'report_messages' => array( 'report_messages' => array(
'This report type is only for the very urgent reports, usually for personal information being found within a torrent.', '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( 'other' => array(
'priority' => '20', 'priority' => '200',
'title' => 'Other', 'title' => 'Other',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report' 'Please include as much information as possible to verify the report'
@ -87,7 +87,7 @@
) )
), ),
'trump' => array( 'trump' => array(
'priority' => '2', 'priority' => '20',
'title' => 'Trump', 'title' => 'Trump',
'report_messages' => array( 'report_messages' => array(
'Please list the specific reason(s) the newer torrent trumps the older one.', 'Please list the specific reason(s) the newer torrent trumps the older one.',
@ -107,7 +107,7 @@
), ),
'1' => array( //Music Resolves '1' => array( //Music Resolves
'tag_trump' => array ( 'tag_trump' => array (
'priority' => '5', 'priority' => '50',
'title' => 'Tag Trump', 'title' => 'Tag Trump',
'report_messages' => array( 'report_messages' => array(
'Please list the specific tag(s) the newer torrent trumps the older one.', 'Please list the specific tag(s) the newer torrent trumps the older one.',
@ -125,7 +125,7 @@
) )
), ),
'vinyl_trump' => array( 'vinyl_trump' => array(
'priority' => '6', 'priority' => '60',
'title' => 'Vinyl Trump', 'title' => 'Vinyl Trump',
'report_messages' => array( 'report_messages' => array(
'Please list the specific reason(s) the newer torrent trumps the older one.', 'Please list the specific reason(s) the newer torrent trumps the older one.',
@ -144,7 +144,7 @@
) )
), ),
'folder_trump' => array ( 'folder_trump' => array (
'priority' => '4', 'priority' => '40',
'title' => 'Bad Folder Name Trump', 'title' => 'Bad Folder Name Trump',
'report_messages' => array( 'report_messages' => array(
'Please list the folder name and what is wrong with it', 'Please list the folder name and what is wrong with it',
@ -163,7 +163,7 @@
) )
), ),
'file_trump' => array ( 'file_trump' => array (
'priority' => '3', 'priority' => '30',
'title' => 'Bad File Names Trump', 'title' => 'Bad File Names Trump',
'report_messages' => array( 'report_messages' => array(
'Please describe what is wrong with the file names.', 'Please describe what is wrong with the file names.',
@ -181,7 +181,7 @@
) )
), ),
'tracks_missing' => array( 'tracks_missing' => array(
'priority' => '24', 'priority' => '240',
'title' => 'Track(s) Missing', 'title' => 'Track(s) Missing',
'report_messages' => array( 'report_messages' => array(
'Please list the track number and title of the missing track', 'Please list the track number and title of the missing track',
@ -201,7 +201,7 @@
) )
), ),
'discs_missing' => array( 'discs_missing' => array(
'priority' => '12', 'priority' => '120',
'title' => 'Disc(s) Missing', 'title' => 'Disc(s) Missing',
'report_messages' => array( 'report_messages' => array(
'If possible, please provide a link to Amazon.com or another source showing the proper track listing.' 'If possible, please provide a link to Amazon.com or another source showing the proper track listing.'
@ -220,7 +220,7 @@
) )
), ),
'bonus_tracks' => array( 'bonus_tracks' => array(
'priority' => '9', 'priority' => '90',
'title' => 'Bonus Tracks Only', 'title' => 'Bonus Tracks Only',
'report_messages' => array( 'report_messages' => array(
'If possible, please provide a link to Amazon.com or another source showing the proper track listing.' 'If possible, please provide a link to Amazon.com or another source showing the proper track listing.'
@ -238,7 +238,7 @@
) )
), ),
'transcode' => array( 'transcode' => array(
'priority' => '25', 'priority' => '250',
'title' => 'Transcode', 'title' => 'Transcode',
'report_messages' => array( 'report_messages' => array(
"Please list the tracks you checked, and the method used to determine the transcode.", "Please list the tracks you checked, and the method used to determine the transcode.",
@ -257,7 +257,7 @@
) )
), ),
'low' => array( 'low' => array(
'priority' => '17', 'priority' => '170',
'title' => 'Low Bitrate', 'title' => 'Low Bitrate',
'report_messages' => array( 'report_messages' => array(
"Please tell us the actual bitrate, and the software used to check." "Please tell us the actual bitrate, and the software used to check."
@ -274,7 +274,7 @@
) )
), ),
'mutt' => array( 'mutt' => array(
'priority' => '18', 'priority' => '180',
'title' => 'Mutt Rip', 'title' => 'Mutt Rip',
'report_messages' => array( 'report_messages' => array(
"Please list at least two (2) tracks which have different bitrates and/or encoders." "Please list at least two (2) tracks which have different bitrates and/or encoders."
@ -291,7 +291,7 @@
) )
), ),
'single_track' => array( 'single_track' => array(
'priority' => '27', 'priority' => '270',
'title' => 'Unsplit Album Rip', 'title' => 'Unsplit Album Rip',
'report_messages' => array( 'report_messages' => array(
"If possible, please provide a link to Amazon.com or another source showing the proper track listing.", "If possible, please provide a link to Amazon.com or another source showing the proper track listing.",
@ -311,7 +311,7 @@
) )
), ),
'tags_lots' => array( 'tags_lots' => array(
'priority' => '31', 'priority' => '82',
'title' => 'Bad Tags / No Tags at All', 'title' => 'Bad Tags / No Tags at All',
'report_messages' => array( 'report_messages' => array(
"Please specify which tags are missing, and whether they're missing from all tracks.", "Please specify which tags are missing, and whether they're missing from all tracks.",
@ -330,7 +330,7 @@
) )
), ),
'folders_bad' => array( 'folders_bad' => array(
'priority' => '30', 'priority' => '81',
'title' => 'Bad Folder Names', 'title' => 'Bad Folder Names',
'report_messages' => array( 'report_messages' => array(
"Please specify the issue with the folder names.", "Please specify the issue with the folder names.",
@ -347,7 +347,7 @@
) )
), ),
'wrong_format' => array( 'wrong_format' => array(
'priority' => '32', 'priority' => '320',
'title' => 'Wrong Specified Format', 'title' => 'Wrong Specified Format',
'report_messages' => array( 'report_messages' => array(
"Please specify the correct format." "Please specify the correct format."
@ -363,7 +363,7 @@
) )
), ),
'wrong_media' => array( 'wrong_media' => array(
'priority' => '33', 'priority' => '330',
'title' => 'Wrong Specified Media', 'title' => 'Wrong Specified Media',
'report_messages' => array( 'report_messages' => array(
"Please specify the correct media." "Please specify the correct media."
@ -378,7 +378,7 @@
) )
), ),
'format' => array( 'format' => array(
'priority' => '10', 'priority' => '100',
'title' => 'Disallowed Format', 'title' => 'Disallowed Format',
'report_messages' => array( 'report_messages' => array(
"If applicable, list the relevant tracks" "If applicable, list the relevant tracks"
@ -397,7 +397,7 @@
) )
), ),
'bitrate' => array( 'bitrate' => array(
'priority' => '15', 'priority' => '150',
'title' => 'Inaccurate Bitrate', 'title' => 'Inaccurate Bitrate',
'report_messages' => array( 'report_messages' => array(
"Please tell us the actual bitrate, and the software used to check.", "Please tell us the actual bitrate, and the software used to check.",
@ -416,7 +416,7 @@
) )
), ),
'source' => array( 'source' => array(
'priority' => '21', 'priority' => '210',
'title' => 'Radio/TV/FM/WEB Rip', 'title' => 'Radio/TV/FM/WEB Rip',
'report_messages' => array( 'report_messages' => array(
"Please include as much information as possible to verify the report" "Please include as much information as possible to verify the report"
@ -434,7 +434,7 @@
) )
), ),
'discog' => array( 'discog' => array(
'priority' => '13', 'priority' => '130',
'title' => 'Discography', 'title' => 'Discography',
'report_messages' => array( 'report_messages' => array(
"Please include as much information as possible to verify the report" "Please include as much information as possible to verify the report"
@ -451,7 +451,7 @@
) )
), ),
'user_discog' => array( 'user_discog' => array(
'priority' => '29', 'priority' => '290',
'title' => 'User Compilation', 'title' => 'User Compilation',
'report_messages' => array( 'report_messages' => array(
"Please include as much information as possible to verify the report" "Please include as much information as possible to verify the report"
@ -469,7 +469,7 @@
) )
), ),
'lineage' => array( 'lineage' => array(
'priority' => '19', 'priority' => '190',
'title' => 'No Lineage Info', 'title' => 'No Lineage Info',
'report_messages' => array( 'report_messages' => array(
"Please list the specific information missing from the torrent (hardware, software, etc.)" "Please list the specific information missing from the torrent (hardware, software, etc.)"
@ -485,7 +485,7 @@
) )
), ),
'edited' => array( 'edited' => array(
'priority' => '14', 'priority' => '140',
'title' => 'Edited Log', 'title' => 'Edited Log',
'report_messages' => array( 'report_messages' => array(
"Please explain exactly where you believe the log was edited.", "Please explain exactly where you believe the log was edited.",
@ -503,7 +503,7 @@
) )
), ),
'audience' => array( 'audience' => array(
'priority' => '7', 'priority' => '70',
'title' => 'Audience Recording', 'title' => 'Audience Recording',
'report_messages' => array( 'report_messages' => array(
"Please include as much information as possible to verify the report" "Please include as much information as possible to verify the report"
@ -520,7 +520,7 @@
) )
), ),
'filename' => array( 'filename' => array(
'priority' => '8', 'priority' => '80',
'title' => 'Bad File Names', 'title' => 'Bad File Names',
'report_messages' => array( 'report_messages' => array(
), ),
@ -538,7 +538,7 @@
) )
), ),
'cassette' => array( 'cassette' => array(
'priority' => '26', 'priority' => '260',
'title' => 'Unapproved Cassette', 'title' => 'Unapproved Cassette',
'report_messages' => array( 'report_messages' => array(
"If the album was never released other than on cassette, please include a source." "If the album was never released other than on cassette, please include a source."
@ -557,7 +557,7 @@
) )
), ),
'skips' => array( 'skips' => array(
'priority' => '22', 'priority' => '220',
'title' => 'Skips / Encode Errors', 'title' => 'Skips / Encode Errors',
'report_messages' => array( 'report_messages' => array(
"Please tell us which track(s) we should check.", "Please tell us which track(s) we should check.",
@ -575,7 +575,7 @@
) )
), ),
'rescore' => array( 'rescore' => array(
'priority' => '16', 'priority' => '160',
'title' => 'Log Rescore Request', 'title' => 'Log Rescore Request',
'report_messages' => array( 'report_messages' => array(
"It could help us if you say exactly why you believe this log requires rescoring.", "It could help us if you say exactly why you believe this log requires rescoring.",
@ -597,7 +597,7 @@
), ),
'2' => array( //Applications Rules Broken '2' => array( //Applications Rules Broken
'missing_crack' => array( 'missing_crack' => array(
'priority' => '7', 'priority' => '70',
'title' => 'No Crack/Keygen/Patch', 'title' => 'No Crack/Keygen/Patch',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report', 'Please include as much information as possible to verify the report',
@ -614,7 +614,7 @@
) )
), ),
'game' => array( 'game' => array(
'priority' => '5', 'priority' => '50',
'title' => 'Game', 'title' => 'Game',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report', 'Please include as much information as possible to verify the report',
@ -632,7 +632,7 @@
) )
), ),
'free' => array( 'free' => array(
'priority' => '4', 'priority' => '40',
'title' => 'Freely Available', 'title' => 'Freely Available',
'report_messages' => array( 'report_messages' => array(
'Please include a link to a source of information or to the freely available app itself.', 'Please include a link to a source of information or to the freely available app itself.',
@ -649,7 +649,7 @@
) )
), ),
'description' => array( 'description' => array(
'priority' => '8', 'priority' => '80',
'title' => 'No Description', 'title' => 'No Description',
'report_messages' => array( 'report_messages' => array(
'If possible, please provide a link to an accurate description', 'If possible, please provide a link to an accurate description',
@ -666,7 +666,7 @@
) )
), ),
'pack' => array( 'pack' => array(
'priority' => '2', 'priority' => '20',
'title' => 'Archived Pack', 'title' => 'Archived Pack',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report' 'Please include as much information as possible to verify the report'
@ -684,7 +684,7 @@
) )
), ),
'collection' => array( 'collection' => array(
'priority' => '3', 'priority' => '30',
'title' => 'Collection of Cracks', 'title' => 'Collection of Cracks',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report' 'Please include as much information as possible to verify the report'
@ -701,7 +701,7 @@
) )
), ),
'hack' => array( 'hack' => array(
'priority' => '6', 'priority' => '60',
'title' => 'Hacking Tool', 'title' => 'Hacking Tool',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report', 'Please include as much information as possible to verify the report',
@ -718,7 +718,7 @@
) )
), ),
'virus' => array( 'virus' => array(
'priority' => '6', 'priority' => '60',
'title' => 'Contains Virus', 'title' => 'Contains Virus',
'report_messages' => array( '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.', '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( 'notwork' => array(
'priority' => '6', 'priority' => '60',
'title' => 'Not Working', 'title' => 'Not Working',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report.', 'Please include as much information as possible to verify the report.',
@ -756,7 +756,7 @@
), ),
'3' => array( //Ebook Rules Broken '3' => array( //Ebook Rules Broken
'unrelated' => array( 'unrelated' => array(
'priority' => '27', 'priority' => '270',
'title' => 'Unrelated Ebooks', 'title' => 'Unrelated Ebooks',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report' 'Please include as much information as possible to verify the report'
@ -774,7 +774,7 @@
), ),
'4' => array( //Audiobook Rules Broken '4' => array( //Audiobook Rules Broken
'skips' => array( 'skips' => array(
'priority' => '21', 'priority' => '210',
'title' => 'Skips / Encode Errors', 'title' => 'Skips / Encode Errors',
'report_messages' => array( 'report_messages' => array(
"Please tell us which track(s) we should check.", "Please tell us which track(s) we should check.",
@ -794,7 +794,7 @@
), ),
'5' => array( //E-Learning vidoes Rules Broken '5' => array( //E-Learning vidoes Rules Broken
'dissallowed' => array( 'dissallowed' => array(
'priority' => '2', 'priority' => '20',
'title' => 'Disallowed Topic', 'title' => 'Disallowed Topic',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report' 'Please include as much information as possible to verify the report'
@ -813,7 +813,7 @@
), ),
'6' => array( //Comedy Rules Broken '6' => array( //Comedy Rules Broken
'talkshow' => array( 'talkshow' => array(
'priority' => '27', 'priority' => '270',
'title' => 'Talkshow/Podcast', 'title' => 'Talkshow/Podcast',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report' 'Please include as much information as possible to verify the report'
@ -832,7 +832,7 @@
), ),
'7' => array( //Comics Rules Broken '7' => array( //Comics Rules Broken
'titles' => array( 'titles' => array(
'priority' => '18', 'priority' => '180',
'title' => 'Multiple Comic Titles', 'title' => 'Multiple Comic Titles',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report' 'Please include as much information as possible to verify the report'
@ -849,7 +849,7 @@
) )
), ),
'volumes' => array( 'volumes' => array(
'priority' => '19', 'priority' => '190',
'title' => 'Multiple Volumes', 'title' => 'Multiple Volumes',
'report_messages' => array( 'report_messages' => array(
'Please include as much information as possible to verify the report' 'Please include as much information as possible to verify the report'

View File

@ -526,7 +526,7 @@ function next_hour() {
sleep(5); sleep(5);
// Send email // Send email
$DB->query("SELECT um.Username, um.Email FROM users_info AS ui JOIN users_main AS um ON um.ID=ui.UserID $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 ."') WHERE um.PermissionID IN ('".USER."', '".MEMBER ."')
AND um.LastAccess<'".time_minus(3600*24*110, true)."' AND um.LastAccess<'".time_minus(3600*24*110, true)."'
AND um.LastAccess>'".time_minus(3600*24*111, 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); 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 $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 ."') WHERE um.PermissionID IN ('".USER."', '".MEMBER ."')
AND um.LastAccess<'".time_minus(3600*24*30*4)."' AND um.LastAccess<'".time_minus(3600*24*30*4)."'
AND um.LastAccess!='0000-00-00 00:00:00' AND um.LastAccess!='0000-00-00 00:00:00'

View File

@ -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.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.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, //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, list($TorrentID, $Media, $Format, $Encoding, $Remastered, $RemasterYear, $RemasterTitle, $RemasterRecordLabel, $RemasterCatalogueNumber,
$Scene, $HasLog, $HasCue, $LogScore, $FileCount, $Size, $Seeders, $Leechers, $Snatched, $FreeTorrent, $TorrentTime, $Description, $Scene, $HasLog, $HasCue, $LogScore, $FileCount, $Size, $Seeders, $Leechers, $Snatched, $FreeTorrent, $TorrentTime, $Description,
$FileList, $FilePath, $UserID, $LastActive, $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) { if($Remastered && !$RemasterYear) {
$FirstUnknown = !isset($FirstUnknown); $FirstUnknown = !isset($FirstUnknown);
@ -468,6 +468,7 @@ function filelist($Str) {
if(!empty($BadFolders)) { $ExtraInfo.=$AddExtra.'<strong>Bad Folders</strong>'; $AddExtra=' / '; } if(!empty($BadFolders)) { $ExtraInfo.=$AddExtra.'<strong>Bad Folders</strong>'; $AddExtra=' / '; }
if(!empty($CassetteApproved)) { $ExtraInfo.=$AddExtra.'<strong>Cassette Approved</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($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(!empty($BadFiles)) { $ExtraInfo.=$AddExtra.'<strong>Bad File Names</strong>'; $AddExtra=' / '; }
if($GroupCategoryID == 1 if($GroupCategoryID == 1

View File

@ -44,7 +44,8 @@
bf.TorrentID AS BadFolders, bf.TorrentID AS BadFolders,
bfi.TorrentID AS BadFiles, bfi.TorrentID AS BadFiles,
ca.TorrentID AS CassetteApproved, ca.TorrentID AS CassetteApproved,
lma.TorrentID AS LossymasterApproved lma.TorrentID AS LossymasterApproved,
lwa.TorrentID AS LossywebApproved
FROM torrents AS t FROM torrents AS t
LEFT JOIN torrents_group AS tg ON tg.ID=t.GroupID LEFT JOIN torrents_group AS tg ON tg.ID=t.GroupID
LEFT JOIN artists_group AS ag ON ag.ArtistID=tg.ArtistID 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_bad_files AS bfi ON bfi.TorrentID=t.ID
LEFT JOIN torrents_cassette_approved AS ca ON ca.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_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'"); WHERE t.ID='$TorrentID'");
list($Properties) = $DB->to_array(false,MYSQLI_BOTH); list($Properties) = $DB->to_array(false,MYSQLI_BOTH);

View File

@ -88,6 +88,7 @@ function get_group_info($GroupID, $Return = true, $RevisionID = 0) {
tfi.TorrentID, tfi.TorrentID,
ca.TorrentID, ca.TorrentID,
lma.TorrentID, lma.TorrentID,
lwa.TorrentID,
t.LastReseedRequest, t.LastReseedRequest,
tln.TorrentID AS LogInDB, tln.TorrentID AS LogInDB,
t.ID AS HasFile 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_bad_files AS tfi on tfi.TorrentID=t.ID
LEFT JOIN torrents_cassette_approved AS ca on ca.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_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 LEFT JOIN torrents_logs_new AS tln ON tln.TorrentID=t.ID
WHERE t.GroupID='".db_string($GroupID)."' WHERE t.GroupID='".db_string($GroupID)."'
GROUP BY t.ID GROUP BY t.ID
@ -159,4 +161,4 @@ function get_group_requests($GroupID) {
} }
$Requests = get_requests($Requests); $Requests = get_requests($Requests);
return $Requests['matches']; return $Requests['matches'];
} }

View File

@ -46,6 +46,7 @@
$Properties['BadFiles'] = (isset($_POST['bad_files'])) ? 1 : 0; $Properties['BadFiles'] = (isset($_POST['bad_files'])) ? 1 : 0;
$Properties['CassetteApproved'] = (isset($_POST['cassette_approved']))? 1 : 0; $Properties['CassetteApproved'] = (isset($_POST['cassette_approved']))? 1 : 0;
$Properties['LossymasterApproved'] = (isset($_POST['lossymaster_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['LibraryUpload'] = (isset($_POST['library_upload']))? 1 : 0;
$Properties['LibraryPoints'] = (isset($_POST['library_points']))? $_POST['library_points'] : 0; $Properties['LibraryPoints'] = (isset($_POST['library_points']))? $_POST['library_points'] : 0;
$Properties['Format'] = $_POST['format']; $Properties['Format'] = $_POST['format'];
@ -364,6 +365,15 @@
if ($lmaID && !$Properties['LossymasterApproved']) { if ($lmaID && !$Properties['LossymasterApproved']) {
$DB->query("DELETE FROM torrents_lossymaster_approved WHERE TorrentID='$TorrentID'"); $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 .= " $SQL .= "

View File

@ -105,7 +105,7 @@
<p><?=$NewDNU?'<strong class="important_text">':''?>Last Updated: <?=time_diff($Updated)?><?=$NewDNU?'</strong>':''?></p> <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. <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) { ?> <? 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> </p>
<table id="dnulist" class="<?=($HideDNU?'hidden':'')?>" style=""> <table id="dnulist" class="<?=($HideDNU?'hidden':'')?>" style="">