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 $Error = false;
|
||||||
var $TorrentID = false;
|
var $TorrentID = false;
|
||||||
var $Disabled = '';
|
var $Disabled = '';
|
||||||
|
var $DisabledFlag = false;
|
||||||
|
|
||||||
function TORRENT_FORM($Torrent = false, $Error = false, $NewTorrent = true) {
|
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']) {
|
if($this->Torrent && $this->Torrent['GroupID']) {
|
||||||
$this->Disabled = ' disabled="disabled"';
|
$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="6"<?=($Importance == '6' ? ' selected="selected"' : '')?>>DJ / Compiler</option>
|
||||||
<option value="3"<?=($Importance == '3' ? ' selected="selected"' : '')?>>Remixer</option>
|
<option value="3"<?=($Importance == '3' ? ' selected="selected"' : '')?>>Remixer</option>
|
||||||
</select>
|
</select>
|
||||||
<? if ($FirstArtist) { ?>
|
<? if ($FirstArtist) {
|
||||||
|
if (!$this->DisabledFlag) { ?>
|
||||||
[<a href="javascript:AddArtistField()">+</a>] [<a href="javascript:RemoveArtistField()">-</a>]
|
[<a href="javascript:AddArtistField()">+</a>] [<a href="javascript:RemoveArtistField()">-</a>]
|
||||||
<? $FirstArtist = false;
|
<? }
|
||||||
|
$FirstArtist = false;
|
||||||
} ?>
|
} ?>
|
||||||
<br />
|
<br />
|
||||||
<? }
|
<? }
|
||||||
@ -236,8 +240,8 @@ function music_form($GenreTags) {
|
|||||||
<option value="3">Remixer</option>
|
<option value="3">Remixer</option>
|
||||||
<option value="7">Producer</option>
|
<option value="7">Producer</option>
|
||||||
</select>
|
</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>
|
</td>
|
||||||
|
@ -131,19 +131,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$DB->query("SELECT ID FROM torrents WHERE GroupID = ".$GroupID);
|
$DB->query("SELECT ID FROM torrents WHERE GroupID = ".$GroupID);
|
||||||
$TorrentIDs = implode(",", $DB->collect('ID'));
|
if($DB->record_count()) {
|
||||||
$DB->query("SELECT DISTINCT uid FROM xbt_snatched WHERE fid IN (".$TorrentIDs.")");
|
$TorrentIDs = implode(",", $DB->collect('ID'));
|
||||||
$Snatchers = $DB->collect('uid');
|
$DB->query("SELECT DISTINCT uid FROM xbt_snatched WHERE fid IN (".$TorrentIDs.")");
|
||||||
foreach($Snatchers as $UserID) {
|
$Snatchers = $DB->collect('uid');
|
||||||
$RecentSnatches = $Cache->get_value('recent_snatches_'.$UserID);
|
foreach($Snatchers as $UserID) {
|
||||||
if(is_array($RecentSnatches)) {
|
$RecentSnatches = $Cache->get_value('recent_snatches_'.$UserID);
|
||||||
foreach($RecentSnatches as $Key => $Recent) {
|
if(is_array($RecentSnatches)) {
|
||||||
if($Recent['ID'] == $GroupID) {
|
foreach($RecentSnatches as $Key => $Recent) {
|
||||||
if($Recent['WikiImage'] != $Image) {
|
if($Recent['ID'] == $GroupID) {
|
||||||
$Recent['WikiImage'] = $Image;
|
if($Recent['WikiImage'] != $Image) {
|
||||||
$Cache->begin_transaction('recent_snatches_'.$UserID);
|
$Recent['WikiImage'] = $Image;
|
||||||
$Cache->update_row($Key, $Recent);
|
$Cache->begin_transaction('recent_snatches_'.$UserID);
|
||||||
$Cache->commit_transaction(0);
|
$Cache->update_row($Key, $Recent);
|
||||||
|
$Cache->commit_transaction(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user