Empty commit

This commit is contained in:
Git 2012-03-19 08:00:24 +00:00
parent fd62c25012
commit 81150db049
2 changed files with 23 additions and 17 deletions

View File

@ -22,6 +22,7 @@ class TORRENT_FORM {
var $Error = false;
var $TorrentID = false;
var $Disabled = '';
var $DisabledFlag = false;
function TORRENT_FORM($Torrent = false, $Error = false, $NewTorrent = true) {
@ -39,6 +40,7 @@ function TORRENT_FORM($Torrent = false, $Error = false, $NewTorrent = true) {
if($this->Torrent && $this->Torrent['GroupID']) {
$this->Disabled = ' disabled="disabled"';
$this->DisabledFlag = true;
}
}
@ -217,9 +219,11 @@ function music_form($GenreTags) {
<option value="6"<?=($Importance == '6' ? ' selected="selected"' : '')?>>DJ / Compiler</option>
<option value="3"<?=($Importance == '3' ? ' selected="selected"' : '')?>>Remixer</option>
</select>
<? if ($FirstArtist) { ?>
<? if ($FirstArtist) {
if (!$this->DisabledFlag) { ?>
[<a href="javascript:AddArtistField()">+</a>] [<a href="javascript:RemoveArtistField()">-</a>]
<? $FirstArtist = false;
<? }
$FirstArtist = false;
} ?>
<br />
<? }

View File

@ -131,10 +131,11 @@
}
$DB->query("SELECT ID FROM torrents WHERE GroupID = ".$GroupID);
$TorrentIDs = implode(",", $DB->collect('ID'));
$DB->query("SELECT DISTINCT uid FROM xbt_snatched WHERE fid IN (".$TorrentIDs.")");
$Snatchers = $DB->collect('uid');
foreach($Snatchers as $UserID) {
if($DB->record_count()) {
$TorrentIDs = implode(",", $DB->collect('ID'));
$DB->query("SELECT DISTINCT uid FROM xbt_snatched WHERE fid IN (".$TorrentIDs.")");
$Snatchers = $DB->collect('uid');
foreach($Snatchers as $UserID) {
$RecentSnatches = $Cache->get_value('recent_snatches_'.$UserID);
if(is_array($RecentSnatches)) {
foreach($RecentSnatches as $Key => $Recent) {
@ -148,6 +149,7 @@
}
}
}
}
}
header("Location: torrents.php?id=".$GroupID);