mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
92 changes from Sun Aug 21 14:42:15 2011 -0400 to Tue Sep 6 03:27:54 2011 +0000
Fix collector for multi-artist albums Sanitize tags in top10 filter Sanitize query Fixes a bug showing the Disable Avatars box for users with the "Can disable users' posting rights" permission Revert "#trying to fix mono" fix unknown release (try 1) trying to roll this out with dirty cache support Go back to memcached's internal incr/decr functions fixed nextElementSibling() patappatch g [patapper]
This commit is contained in:
parent
1a22e4247c
commit
31439ec5ec
@ -66,6 +66,9 @@
|
||||
$DB->query("SELECT Name FROM artists_group WHERE ArtistID='$ArtistID'");
|
||||
list($ArtistName) = $DB->next_record(MYSQLI_NUM,false);
|
||||
|
||||
$DB->query("SELECT GroupID FROM torrents_artists WHERE ArtistID='$ArtistID'");
|
||||
$GroupIDs = $DB->collect(0,false);
|
||||
|
||||
$SQL = "SELECT CASE ";
|
||||
|
||||
foreach ($_REQUEST['list'] as $Priority => $Selection) {
|
||||
@ -112,7 +115,7 @@
|
||||
t.Size,
|
||||
f.File
|
||||
FROM torrents AS t
|
||||
JOIN torrents_group AS tg ON tg.ID=t.GroupID AND tg.CategoryID='1' AND tg.ArtistID='$ArtistID'
|
||||
JOIN torrents_group AS tg ON tg.ID=t.GroupID AND tg.CategoryID='1' AND tg.ID IN (".implode(',',$GroupIDs).")
|
||||
LEFT JOIN torrents_files AS f ON t.ID=f.TorrentID
|
||||
ORDER BY t.GroupID ASC, Rank DESC, t.$Preference";
|
||||
|
||||
|
@ -63,7 +63,7 @@
|
||||
|
||||
if(!empty($_POST['user']) && check_perms('site_moderate_requests')) {
|
||||
$FillerUsername = $_POST['user'];
|
||||
$DB->query("SELECT ID FROM users_main WHERE Username LIKE '".$FillerUsername."'");
|
||||
$DB->query("SELECT ID FROM users_main WHERE Username LIKE '".db_string($FillerUsername)."'");
|
||||
if($DB->record_count() < 1) {
|
||||
$Err = "No such user to fill for!";
|
||||
} else {
|
||||
|
@ -7,7 +7,7 @@
|
||||
if($_GET['tags']) {
|
||||
$Tags = explode(',', str_replace(".","_",trim($_GET['tags'])));
|
||||
foreach ($Tags as $Tag) {
|
||||
$Tag = trim($Tag);
|
||||
$Tag = preg_replace('/[^a-z0-9_]/', '', $Tag);
|
||||
if($Tag != '') {
|
||||
$Where[]="g.TagList REGEXP '[[:<:]]".db_string($Tag)."[[:>:]]'";
|
||||
}
|
||||
|
@ -837,7 +837,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
$Data['RemasterRecordLabel'] != $LastRemasterRecordLabel || $Data['RemasterCatalogueNumber'] != $LastRemasterCatalogueNumber) || $FirstUnknown || $Data['Media'] != $LastMedia) {
|
||||
$EditionID++;
|
||||
|
||||
if($Data['Remastered'] && $Data['RemastedYear'] != 0) {
|
||||
if($Data['Remastered'] && $Data['RemasterYear'] != 0) {
|
||||
|
||||
$RemasterName = $Data['RemasterYear'];
|
||||
$AddExtra = " - ";
|
||||
|
@ -40,7 +40,9 @@
|
||||
<tr class="colhead_dark" style="font-weight: bold;">
|
||||
<td>User</td>
|
||||
<td>Active</td>
|
||||
|
||||
<td>Connectable</td>
|
||||
|
||||
<td>Up</td>
|
||||
<td>%</td>
|
||||
<td>Client</td>
|
||||
@ -51,7 +53,9 @@
|
||||
<tr>
|
||||
<td><?=format_username($PeerUserID, $Username)?></td>
|
||||
<td><?= ($Active) ? '<span style="color:green">Yes</span>' : '<span style="color:red">No</span>' ?></td>
|
||||
|
||||
<td><?= ($Connectable) ? '<span style="color:green">Yes</span>' : '<span style="color:red">No</span>' ?></td>
|
||||
|
||||
<td><?=get_size($Uploaded) ?></td>
|
||||
<td><?=number_format(($Size-$Remaining)/$Size*100, 2)?></td>
|
||||
<td><?=display_str($UserAgent)?></td>
|
||||
|
Loading…
Reference in New Issue
Block a user