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
014cd85f9c
commit
5c7a82260d
@ -1693,7 +1693,7 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
|
|||||||
$link .= 'Various Artists';
|
$link .= 'Various Artists';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($Guests) && (count($MainArtists) + count($Composers) > 0) && (count($MainArtists) + count($Composers) + count($Conductors) < 3)) {
|
/*if(!empty($Guests) && (count($MainArtists) + count($Composers) > 0) && (count($MainArtists) + count($Composers) + count($Conductors) < 3)) {
|
||||||
switch(count($Guests)) {
|
switch(count($Guests)) {
|
||||||
case 1:
|
case 1:
|
||||||
$link .= ' with '.display_artist($Guests[0], $MakeLink, $Escape);
|
$link .= ' with '.display_artist($Guests[0], $MakeLink, $Escape);
|
||||||
@ -1702,7 +1702,7 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
|
|||||||
$link .= ' with '.display_artist($Guests[0], $MakeLink, $Escape).$ampersand.display_artist($Guests[1], $MakeLink, $Escape);
|
$link .= ' with '.display_artist($Guests[0], $MakeLink, $Escape).$ampersand.display_artist($Guests[1], $MakeLink, $Escape);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if ((count($Conductors) > 0) && (count($MainArtists) + count($Composers) > 0) && (count($Composers) < 3 || count($MainArtists) > 0)) {
|
if ((count($Conductors) > 0) && (count($MainArtists) + count($Composers) > 0) && (count($Composers) < 3 || count($MainArtists) > 0)) {
|
||||||
$link .= ' under ';
|
$link .= ' under ';
|
||||||
|
@ -219,6 +219,39 @@ function compare($X, $Y){
|
|||||||
$NumLeechers = 0;
|
$NumLeechers = 0;
|
||||||
$NumSnatches = 0;
|
$NumSnatches = 0;
|
||||||
|
|
||||||
|
foreach ($TorrentList as $GroupID => $Group) {
|
||||||
|
$TagList = explode(' ',str_replace('_','.',$Group['TagList']));
|
||||||
|
|
||||||
|
$TorrentTags = array();
|
||||||
|
|
||||||
|
// $Tags array is for the sidebar on the right. Skip compilations and soundtracks.
|
||||||
|
if (!in_array($ReleaseType, array(7, 3))) {
|
||||||
|
foreach($TagList as $Tag) {
|
||||||
|
if(!isset($Tags[$Tag])) {
|
||||||
|
$Tags[$Tag] = array('name'=>$Tag, 'count'=>1);
|
||||||
|
} else {
|
||||||
|
$Tags[$Tag]['count']++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$TorrentTags = implode(', ', $TorrentTags);
|
||||||
|
$TorrentTags = '<br /><div class="tags">'.$TorrentTags.'</div>';
|
||||||
|
|
||||||
|
foreach ($Group['Torrents'] as $TorrentID => $Torrent) {
|
||||||
|
$NumTorrents++;
|
||||||
|
|
||||||
|
$Torrent['Seeders'] = (int)$Torrent['Seeders'];
|
||||||
|
$Torrent['Leechers'] = (int)$Torrent['Leechers'];
|
||||||
|
$Torrent['Snatched'] = (int)$Torrent['Snatched'];
|
||||||
|
|
||||||
|
$NumSeeders+=$Torrent['Seeders'];
|
||||||
|
$NumLeechers+=$Torrent['Leechers'];
|
||||||
|
$NumSnatches+=$Torrent['Snatched'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$OpenTable = false;
|
$OpenTable = false;
|
||||||
$ShowGroups = !isset($LoggedUser['TorrentGrouping']) || $LoggedUser['TorrentGrouping'] == 0;
|
$ShowGroups = !isset($LoggedUser['TorrentGrouping']) || $LoggedUser['TorrentGrouping'] == 0;
|
||||||
$HideTorrents = ($ShowGroups ? '' : ' hidden');
|
$HideTorrents = ($ShowGroups ? '' : ' hidden');
|
||||||
@ -236,24 +269,6 @@ function compare($X, $Y){
|
|||||||
$OldGroupID = $GroupID;
|
$OldGroupID = $GroupID;
|
||||||
$OldReleaseType = $ReleaseType;
|
$OldReleaseType = $ReleaseType;
|
||||||
}
|
}
|
||||||
|
|
||||||
$TagList = explode(' ',str_replace('_','.',$TagList));
|
|
||||||
|
|
||||||
$TorrentTags = array();
|
|
||||||
|
|
||||||
// $Tags array is for the sidebar on the right. Skip compilations and soundtracks.
|
|
||||||
if (!in_array($ReleaseType, array(7, 3))) {
|
|
||||||
foreach($TagList as $Tag) {
|
|
||||||
if(!isset($Tags[$Tag])) {
|
|
||||||
$Tags[$Tag] = array('name'=>$Tag, 'count'=>1);
|
|
||||||
} else {
|
|
||||||
$Tags[$Tag]['count']++;
|
|
||||||
}
|
|
||||||
$TorrentTags[] = '<a href="torrents.php?taglist='.$Tag.'">'.$Tag.'</a>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$TorrentTags = implode(', ', $TorrentTags);
|
|
||||||
$TorrentTags = '<br /><div class="tags">'.$TorrentTags.'</div>';
|
|
||||||
|
|
||||||
if (!empty($LoggedUser['DiscogView']) || (isset($LoggedUser['HideTypes']) && in_array($ReleaseType, $LoggedUser['HideTypes']))) {
|
if (!empty($LoggedUser['DiscogView']) || (isset($LoggedUser['HideTypes']) && in_array($ReleaseType, $LoggedUser['HideTypes']))) {
|
||||||
$HideDiscog = ' hidden';
|
$HideDiscog = ' hidden';
|
||||||
@ -261,6 +276,16 @@ function compare($X, $Y){
|
|||||||
$HideDiscog = '';
|
$HideDiscog = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$TagList = explode(' ',str_replace('_','.',$TagList));
|
||||||
|
|
||||||
|
$TorrentTags = array();
|
||||||
|
|
||||||
|
// $Tags array is for the sidebar on the right. Skip compilations and soundtracks.
|
||||||
|
foreach($TagList as $Tag) {
|
||||||
|
$TorrentTags[] = '<a href="torrents.php?taglist='.$Tag.'">'.$Tag.'</a>';
|
||||||
|
}
|
||||||
|
$TorrentTags = implode(', ', $TorrentTags);
|
||||||
|
$TorrentTags = '<br /><div class="tags">'.$TorrentTags.'</div>';
|
||||||
|
|
||||||
if($ReleaseType!=$LastReleaseType) {
|
if($ReleaseType!=$LastReleaseType) {
|
||||||
switch($ReleaseTypes[$ReleaseType]) {
|
switch($ReleaseTypes[$ReleaseType]) {
|
||||||
@ -358,32 +383,20 @@ function compare($X, $Y){
|
|||||||
unset($FirstUnknown);
|
unset($FirstUnknown);
|
||||||
|
|
||||||
foreach ($Torrents as $TorrentID => $Torrent) {
|
foreach ($Torrents as $TorrentID => $Torrent) {
|
||||||
$NumTorrents++;
|
|
||||||
|
|
||||||
if ($Torrent['Remastered'] && !$Torrent['RemasterYear']) {
|
if ($Torrent['Remastered'] && !$Torrent['RemasterYear']) {
|
||||||
$FirstUnknown = !isset($FirstUnknown);
|
$FirstUnknown = !isset($FirstUnknown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (in_array($TorrentID, $TokenTorrents) && empty($Torrent['FreeTorrent'])) {
|
if (in_array($TorrentID, $TokenTorrents) && empty($Torrent['FreeTorrent'])) {
|
||||||
$Torrent['PersonalFL'] = 1;
|
$Torrent['PersonalFL'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$Torrent['Seeders'] = (int)$Torrent['Seeders'];
|
|
||||||
$Torrent['Leechers'] = (int)$Torrent['Leechers'];
|
|
||||||
$Torrent['Snatched'] = (int)$Torrent['Snatched'];
|
|
||||||
|
|
||||||
$NumSeeders+=$Torrent['Seeders'];
|
|
||||||
$NumLeechers+=$Torrent['Leechers'];
|
|
||||||
$NumSnatches+=$Torrent['Snatched'];
|
|
||||||
|
|
||||||
if($Torrent['RemasterTitle'] != $LastRemasterTitle || $Torrent['RemasterYear'] != $LastRemasterYear ||
|
if($Torrent['RemasterTitle'] != $LastRemasterTitle || $Torrent['RemasterYear'] != $LastRemasterYear ||
|
||||||
$Torrent['RemasterRecordLabel'] != $LastRemasterRecordLabel || $Torrent['RemasterCatalogueNumber'] != $LastRemasterCatalogueNumber || $FirstUnknown || $Torrent['Media'] != $LastMedia) {
|
$Torrent['RemasterRecordLabel'] != $LastRemasterRecordLabel || $Torrent['RemasterCatalogueNumber'] != $LastRemasterCatalogueNumber || $FirstUnknown || $Torrent['Media'] != $LastMedia) {
|
||||||
|
|
||||||
$EditionID++;
|
$EditionID++;
|
||||||
|
|
||||||
if($Torrent['Remastered'] && $Torrent['RemasterYear'] != 0) {
|
if($Torrent['Remastered'] && $Torrent['RemasterYear'] != 0) {
|
||||||
|
|
||||||
$RemasterName = $Torrent['RemasterYear'];
|
$RemasterName = $Torrent['RemasterYear'];
|
||||||
$AddExtra = " - ";
|
$AddExtra = " - ";
|
||||||
if($Torrent['RemasterRecordLabel']) { $RemasterName .= $AddExtra.display_str($Torrent['RemasterRecordLabel']); $AddExtra=' / '; }
|
if($Torrent['RemasterRecordLabel']) { $RemasterName .= $AddExtra.display_str($Torrent['RemasterRecordLabel']); $AddExtra=' / '; }
|
||||||
|
@ -1,26 +1,27 @@
|
|||||||
<?
|
<?
|
||||||
if ($ID = (int)($_GET['id'])) {
|
if ($ID = (int)($_GET['id'])) {
|
||||||
// Check if conversation belongs to user
|
// Check if conversation belongs to user
|
||||||
$DB->query("SELECT UserID, Level, AssignedToUser FROM staff_pm_conversations WHERE ID=$ID");
|
$DB->query("SELECT UserID, Level, AssignedToUser FROM staff_pm_conversations WHERE ID=$ID");
|
||||||
list($UserID, $Level, $AssignedToUser) = $DB->next_record();
|
list($UserID, $Level, $AssignedToUser) = $DB->next_record();
|
||||||
|
|
||||||
if ($UserID == $LoggedUser['ID'] || $IsFLS || $AssignedToUser == $LoggedUser['ID']) {
|
if ($UserID == $LoggedUser['ID'] || ($IsFLS && $Level == 0) ||
|
||||||
if($Level != 0 && $IsStaff == false) {
|
$AssignedToUser == $LoggedUser['ID'] || ($IsStaff && $Level <= $LoggedUser['Class'])) {
|
||||||
error(403);
|
/*if($Level != 0 && $IsStaff == false) {
|
||||||
}
|
error(403);
|
||||||
|
}*/
|
||||||
// Conversation belongs to user or user is staff, unresolve it
|
|
||||||
$DB->query("UPDATE staff_pm_conversations SET Status='Unanswered' WHERE ID=$ID");
|
// Conversation belongs to user or user is staff, unresolve it
|
||||||
// Clear cache for user
|
$DB->query("UPDATE staff_pm_conversations SET Status='Unanswered' WHERE ID=$ID");
|
||||||
$Cache->delete_value('num_staff_pms_'.$LoggedUser['ID']);
|
// Clear cache for user
|
||||||
|
$Cache->delete_value('num_staff_pms_'.$LoggedUser['ID']);
|
||||||
header('Location: staffpm.php');
|
|
||||||
} else {
|
header('Location: staffpm.php');
|
||||||
// Conversation does not belong to user
|
} else {
|
||||||
error(403);
|
// Conversation does not belong to user
|
||||||
}
|
error(403);
|
||||||
} else {
|
}
|
||||||
// No id
|
} else {
|
||||||
header('Location: staffpm.php');
|
// No id
|
||||||
}
|
header('Location: staffpm.php');
|
||||||
?>
|
}
|
||||||
|
?>
|
||||||
|
@ -188,8 +188,7 @@
|
|||||||
req.FillerID,
|
req.FillerID,
|
||||||
um.Username,
|
um.Username,
|
||||||
req.TimeFilled
|
req.TimeFilled
|
||||||
FROM requests AS req
|
FROM requests AS req
|
||||||
LEFT JOIN torrents AS t ON t.GroupID=req.TorrentID
|
|
||||||
JOIN users_main AS um ON um.ID=req.FillerID
|
JOIN users_main AS um ON um.ID=req.FillerID
|
||||||
AND req.TorrentID=$TorrentID");
|
AND req.TorrentID=$TorrentID");
|
||||||
$Requests = ($DB->record_count());
|
$Requests = ($DB->record_count());
|
||||||
@ -197,7 +196,7 @@
|
|||||||
while(list($RequestID, $FillerID, $FillerName, $FilledTime) = $DB->next_record()) {
|
while(list($RequestID, $FillerID, $FillerName, $FilledTime) = $DB->next_record()) {
|
||||||
?>
|
?>
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a href="user.php?id=<?=$FillerID?>"><?=$FillerName?></a> used a torrent from this group to fill <a href="requests.php?action=viewrequest&id=<?=$RequestID?>">this request</a> <?=time_diff($FilledTime)?>
|
<a href="user.php?id=<?=$FillerID?>"><?=$FillerName?></a> used this torrent to fill <a href="requests.php?action=viewrequest&id=<?=$RequestID?>">this request</a> <?=time_diff($FilledTime)?>
|
||||||
</div>
|
</div>
|
||||||
<? }
|
<? }
|
||||||
}
|
}
|
||||||
|
@ -258,7 +258,7 @@ function compare($X, $Y){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($Artists[7]) && count($Artists[7]) > 0) {
|
if (!empty($Artists[7]) && count($Artists[7]) > 0) {
|
||||||
print ' <li class="artists_procuder"><strong>Produced By:</strong></li>';
|
print ' <li class="artists_producer"><strong>Produced By:</strong></li>';
|
||||||
foreach($Artists[7] as $Artist) {
|
foreach($Artists[7] as $Artist) {
|
||||||
?>
|
?>
|
||||||
<li class="artists_producer">
|
<li class="artists_producer">
|
||||||
@ -467,7 +467,7 @@ function filelist($Str) {
|
|||||||
if(!empty($BadTags)) { $ExtraInfo.=$AddExtra.'<strong>Bad Tags</strong>'; $AddExtra=' / '; }
|
if(!empty($BadTags)) { $ExtraInfo.=$AddExtra.'<strong>Bad Tags</strong>'; $AddExtra=' / '; }
|
||||||
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($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
|
||||||
|
@ -3,10 +3,18 @@
|
|||||||
if (!is_number($GroupID)) { error(404); }
|
if (!is_number($GroupID)) { error(404); }
|
||||||
|
|
||||||
show_header("History for Group $GroupID");
|
show_header("History for Group $GroupID");
|
||||||
|
|
||||||
|
$Groups = get_groups(array($GroupID), true, true, false);
|
||||||
|
if (!empty($Groups['matches'][$GroupID])) {
|
||||||
|
$Group = $Groups['matches'][$GroupID];
|
||||||
|
$Title = display_artists($Group['ExtendedArtists']).'<a href="torrents.php?id='.$GroupID.'">'.$Group['Name'].'</a>';
|
||||||
|
} else {
|
||||||
|
$Title = "Group $GroupID";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="thin">
|
<div class="thin">
|
||||||
<h2>History for Group <?=$GroupID?></h2>
|
<h2>History for <?=$Title?></h2>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr class="colhead">
|
<tr class="colhead">
|
||||||
|
@ -143,6 +143,16 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
|
} elseif (!empty($LoggedUser['DisableInvites'])) {?>
|
||||||
|
<div class="box pad" style="text-align: center">
|
||||||
|
<strong class="important_text">Your invites have been disabled. Please read <a href="wiki.php?action=article&id=310">this article</a> for more information.</strong>
|
||||||
|
</div>
|
||||||
|
<?
|
||||||
|
} elseif ($LoggedUser['RatioWatch'] || !$CanLeech) { ?>
|
||||||
|
<div class="box pad" style="text-align:center">
|
||||||
|
<strong class="important_text">You may not send invites while on Ratio Watch or while your leeching privileges are disabled. Please read <a href="wiki.php?action=article&id=310">this article</a> for more information.</strong>
|
||||||
|
</div>
|
||||||
|
<?
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($Pending)) {
|
if (!empty($Pending)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user