Empty commit

This commit is contained in:
Git 2016-10-28 08:00:28 +00:00
parent 2aa4553f7a
commit efbb7586c6
3 changed files with 34 additions and 7 deletions

View File

@ -1343,6 +1343,14 @@ CREATE TABLE `torrents_votes` (
CONSTRAINT `torrents_votes_ibfk_1` FOREIGN KEY (`GroupID`) REFERENCES `torrents_group` (`ID`) ON DELETE CASCADE
) ENGINE=InnoDB CHARSET utf8;
CREATE TABLE `upload_contest` (
`TorrentID` int(10) unsigned NOT NULL,
`UserID` int(10) unsigned NOT NULL,
PRIMARY KEY (`TorrentID`),
KEY `UserID` (`UserID`),
CONSTRAINT `upload_contest_ibfk_1` FOREIGN KEY (`UserID`) REFERENCES `users_main` (`ID`) ON DELETE CASCADE
) ENGINE=InnoDB CHARSET utf8;
CREATE TABLE `user_questions` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`Question` mediumtext NOT NULL,

View File

@ -623,6 +623,23 @@
'warn' => '0',
'delete' => '0'
)
),
'upload_contest' => array(
'priority' => '162',
'reason' => '-1',
'title' => 'Upload Contest Approval Request',
'report_messages' => array(
'Please include a photograph of the CD next to a piece of paper with your username written on it.',
'<strong class="important_text">Anything included in the proof images field will only be viewable by staff.</strong>'
),
'report_fields' => array(
'proofimages' => '2'
),
'resolve_options' => array(
'upload' => '0',
'warn' => '0',
'delete' => '0'
)
)
),
'2' => array( //Applications Rules Broken

View File

@ -151,14 +151,13 @@
$Cache->decrement('num_torrent_reportsv2');
}
if (isset($Escaped['upload'])) {
$Upload = true;
} else {
$Upload = false;
}
if ($_POST['resolve_type'] == 'tags_lots') {
if ($_POST['resolve_type'] === 'tags_lots') {
$DB->query("
INSERT IGNORE INTO torrents_bad_tags
(TorrentID, UserID, TimeAdded)
@ -172,8 +171,7 @@
$Cache->delete_value("torrents_details_$GroupID");
$SendPM = true;
}
if ($_POST['resolve_type'] == 'folders_bad') {
elseif ($_POST['resolve_type'] === 'folders_bad') {
$DB->query("
INSERT IGNORE INTO torrents_bad_folders
(TorrentID, UserID, TimeAdded)
@ -187,7 +185,7 @@
$Cache->delete_value("torrents_details_$GroupID");
$SendPM = true;
}
if ($_POST['resolve_type'] == 'filename') {
elseif ($_POST['resolve_type'] === 'filename') {
$DB->query("
INSERT IGNORE INTO torrents_bad_files
(TorrentID, UserID, TimeAdded)
@ -201,8 +199,7 @@
$Cache->delete_value("torrents_details_$GroupID");
$SendPM = true;
}
if ($_POST['resolve_type'] == 'lossyapproval') {
elseif ($_POST['resolve_type'] === 'lossyapproval') {
$DB->query("
INSERT INTO torrents_lossymaster_approved
VALUES ($TorrentID, ".$LoggedUser['ID'].", '".sqltime()."')");
@ -213,6 +210,11 @@
list($GroupID) = $DB->next_record();
$Cache->delete_value("torrents_details_$GroupID");
}
elseif ($_POST['resolve_type'] === 'upload_contest') {
$DB->query("
INSERT INTO upload_contest
VALUES ($TorrentID, $UploaderID)");
}
//Log and delete
if (isset($Escaped['delete']) && check_perms('users_mod')) {