mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
fd62c25012
commit
81150db049
@ -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 />
|
||||
<? }
|
||||
@ -236,8 +240,8 @@ function music_form($GenreTags) {
|
||||
<option value="3">Remixer</option>
|
||||
<option value="7">Producer</option>
|
||||
</select>
|
||||
[<a href="#" onclick="AddArtistField();return false;">+</a>] [<a href="#" onclick="RemoveArtistField();return false;">-</a>]
|
||||
<?
|
||||
[<a href="#" onclick="AddArtistField();return false;">+</a>] [<a href="#" onclick="RemoveArtistField();return false;">-</a>]
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
@ -131,19 +131,21 @@
|
||||
}
|
||||
|
||||
$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) {
|
||||
$RecentSnatches = $Cache->get_value('recent_snatches_'.$UserID);
|
||||
if(is_array($RecentSnatches)) {
|
||||
foreach($RecentSnatches as $Key => $Recent) {
|
||||
if($Recent['ID'] == $GroupID) {
|
||||
if($Recent['WikiImage'] != $Image) {
|
||||
$Recent['WikiImage'] = $Image;
|
||||
$Cache->begin_transaction('recent_snatches_'.$UserID);
|
||||
$Cache->update_row($Key, $Recent);
|
||||
$Cache->commit_transaction(0);
|
||||
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) {
|
||||
if($Recent['ID'] == $GroupID) {
|
||||
if($Recent['WikiImage'] != $Image) {
|
||||
$Recent['WikiImage'] = $Image;
|
||||
$Cache->begin_transaction('recent_snatches_'.$UserID);
|
||||
$Cache->update_row($Key, $Recent);
|
||||
$Cache->commit_transaction(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user