Empty commit

This commit is contained in:
Git 2013-05-23 08:01:12 +00:00
parent b4fe1d35f1
commit 4433edd805
7 changed files with 227 additions and 120 deletions

View File

@ -126,6 +126,16 @@
$Subject = "Collage Comment Report: ID #".display_str($ThingID);
}
break;
case 'rippy':
$DB->query('SELECT Message FROM rippies WHERE ID = ' . $ThingID);
if ($DB->record_count() < 1) {
$Error = "No rippy message with the reported ID found";
} else {
list($Message) = $DB->next_record();
$TypeLink = 'the rippy message "' . display_str($Message) . '"';
$Subject = 'Rippy message report: '.display_str($Message);
}
break;
default:
error("Incorrect type");
break;

View File

@ -35,9 +35,9 @@
$TypeID = $_POST['type'] + 1;
$Properties['CategoryName'] = $Type;
$Properties['Title'] = $_POST['title'];
$Properties['Remastered'] = (isset($_POST['remaster'])) ? 1 : 0;
$Properties['Remastered'] = ((isset($_POST['remaster'])) ? 1 : 0);
if ($Properties['Remastered'] || isset($_POST['unknown'])) {
$Properties['UnknownRelease'] = (isset($_POST['unknown'])) ? 1 : 0;
$Properties['UnknownRelease'] = ((isset($_POST['unknown'])) ? 1 : 0);
$Properties['RemasterYear'] = $_POST['remaster_year'];
$Properties['RemasterTitle'] = $_POST['remaster_title'];
$Properties['RemasterRecordLabel'] = $_POST['remaster_record_label'];
@ -54,7 +54,7 @@
$Properties['RecordLabel'] = $_POST['record_label'];
$Properties['CatalogueNumber'] = $_POST['catalogue_number'];
$Properties['ReleaseType'] = $_POST['releasetype'];
$Properties['Scene'] = (isset($_POST['scene'])) ? 1 : 0;
$Properties['Scene'] = ((isset($_POST['scene'])) ? 1 : 0);
$Properties['Format'] = $_POST['format'];
$Properties['Media'] = $_POST['media'];
$Properties['Bitrate'] = $_POST['bitrate'];
@ -153,7 +153,9 @@
$Validate->SetFields('other_bitrate',
'1','string','You must enter the other bitrate (max length: 9 characters).', array('maxlength'=>9));
$enc = trim($_POST['other_bitrate']);
if (isset($_POST['vbr'])) { $enc.=' (VBR)'; }
if (isset($_POST['vbr'])) {
$enc.= ' (VBR)';
}
$Properties['Encoding'] = $enc;
$Properties['Bitrate'] = $enc;
@ -190,7 +192,9 @@
$Validate->SetFields('other_bitrate',
'1','string','You must enter the other bitrate (max length: 9 characters).', array('maxlength'=>9));
$enc = trim($_POST['other_bitrate']);
if (isset($_POST['vbr'])) { $enc.=' (VBR)'; }
if (isset($_POST['vbr'])) {
$enc.= ' (VBR)';
}
$Properties['Encoding'] = $enc;
$Properties['Bitrate'] = $enc;
@ -273,7 +277,7 @@
//Multiple artists!
$LogName = '';
if (empty($Properties['GroupID']) && empty($ArtistForm) && $Type == "Music") {
if (empty($Properties['GroupID']) && empty($ArtistForm) && $Type == 'Music') {
$MainArtistCount = 0;
$ArtistNames = array();
$ArtistForm = array(
@ -301,7 +305,12 @@
}
$LogName .= Artists::display_artists($ArtistForm, false, true, false);
} elseif ($Type == 'Music' && empty($ArtistForm)) {
$DB->query("SELECT ta.ArtistID,aa.Name,ta.Importance FROM torrents_artists AS ta JOIN artists_alias AS aa ON ta.AliasID = aa.AliasID WHERE ta.GroupID = ".$Properties['GroupID']." ORDER BY ta.Importance ASC, aa.Name ASC;");
$DB->query("
SELECT ta.ArtistID, aa.Name, ta.Importance
FROM torrents_artists AS ta
JOIN artists_alias AS aa ON ta.AliasID = aa.AliasID
WHERE ta.GroupID = ".$Properties['GroupID']."
ORDER BY ta.Importance ASC, aa.Name ASC;");
while (list($ArtistID,$ArtistName,$ArtistImportance) = $DB->next_record(MYSQLI_BOTH, false)) {
$ArtistForm[$ArtistImportance][] = array('id' => $ArtistID, 'name' => display_str($ArtistName));
$ArtistsUnescaped[$ArtistImportance][] = array('name' => $ArtistName);
@ -347,21 +356,29 @@
$TorEnc = db_string($Tor->encode());
$InfoHash = pack('H*', $Tor->info_hash());
$DB->query("SELECT ID FROM torrents WHERE info_hash='".db_string($InfoHash)."'");
$DB->query("
SELECT ID
FROM torrents
WHERE info_hash='".db_string($InfoHash)."'");
if ($DB->record_count() > 0) {
list($ID) = $DB->next_record();
$DB->query("SELECT TorrentID FROM torrents_files WHERE TorrentID = ".$ID);
$DB->query("
SELECT TorrentID
FROM torrents_files
WHERE TorrentID = ".$ID);
if ($DB->record_count() > 0) {
$Err = '<a href="torrents.php?torrentid='.$ID.'">The exact same torrent file already exists on the site!</a>';
} else {
// A lost torrent
$DB->query("INSERT INTO torrents_files (TorrentID, File) VALUES ($ID, '$TorEnc')");
$DB->query("
INSERT INTO torrents_files (TorrentID, File)
VALUES ($ID, '$TorEnc')");
$Err = '<a href="torrents.php?torrentid='.$ID.'">Thank you for fixing this torrent</a>';
}
}
if (isset($Tor->Dec['encrypted_files'])) {
$Err = "This torrent contains an encrypted file list which is not supported here";
$Err = 'This torrent contains an encrypted file list which is not supported here';
}
// File list and size
@ -371,7 +388,7 @@
$HasCue = 0;
$TmpFileList = array();
$TooLongPaths = array();
$DirName = isset($Tor->Dec['info']['files']) ? Format::make_utf8($Tor->get_name()) : "";
$DirName = (isset($Tor->Dec['info']['files']) ? Format::make_utf8($Tor->get_name()) : '');
foreach ($FileList as $File) {
list($Size, $Name) = $File;
// add +log to encoding
@ -435,7 +452,7 @@
if ($DB->record_count() > 0) {
// Don't escape tg.Name. It's written directly to the log table
list($GroupID, $WikiImage, $WikiBody, $RevisionID, $Properties['Title'], $Properties['Year'], $Properties['ReleaseType'], $Properties['TagList']) = $DB->next_record(MYSQLI_NUM, array(4));
$Properties['TagList'] = str_replace(array(" ",".","_"), array(", ",".","."), $Properties['TagList']);
$Properties['TagList'] = str_replace(array(' ', '.', '_'), array(', ', '.', '.'), $Properties['TagList']);
if (!$Properties['Image'] && $WikiImage) {
$Properties['Image'] = $WikiImage;
$T['Image'] = "'".db_string($WikiImage)."'";
@ -483,7 +500,7 @@
break;
} else {
// The album hasn't been uploaded. Try to get the artist ids
// The album hasn't been uploaded. Try to get the artist IDs
$DB->query("
SELECT
aa.ArtistID,
@ -526,12 +543,16 @@
$ArtistForm[$Importance][$Num] = $ArtistsAdded[strtolower($Artist['name'])];
} else {
// Create artist
$DB->query("INSERT INTO artists_group (Name) VALUES ('".db_string($Artist['name'])."')");
$DB->query("
INSERT INTO artists_group (Name)
VALUES ('".db_string($Artist['name'])."')");
$ArtistID = $DB->inserted_id();
$Cache->increment('stats_artist_count');
$DB->query("INSERT INTO artists_alias (ArtistID, Name) VALUES (".$ArtistID.", '".db_string($Artist['name'])."')");
$DB->query("
INSERT INTO artists_alias (ArtistID, Name)
VALUES ($ArtistID, '".db_string($Artist['name'])."')");
$AliasID = $DB->inserted_id();
$ArtistForm[$Importance][$Num] = array('id' => $ArtistID, 'aliasid' => $AliasID, 'name' => $Artist['name']);
@ -547,13 +568,16 @@
// Create torrent group
$DB->query("
INSERT INTO torrents_group
(ArtistID, CategoryID, Name, Year, RecordLabel, CatalogueNumber, Time, WikiBody, WikiImage, SearchText, ReleaseType, VanityHouse) VALUES
(0, ".$TypeID.", ".$T['Title'].", $T[Year], $T[RecordLabel], $T[CatalogueNumber], '".sqltime()."', '".db_string($Body)."', $T[Image], '$SearchText', $T[ReleaseType], $T[VanityHouse])");
(ArtistID, CategoryID, Name, Year, RecordLabel, CatalogueNumber, Time, WikiBody, WikiImage, SearchText, ReleaseType, VanityHouse)
VALUES
(0, $TypeID, ".$T['Title'].", $T[Year], $T[RecordLabel], $T[CatalogueNumber], '".sqltime()."', '".db_string($Body)."', $T[Image], '$SearchText', $T[ReleaseType], $T[VanityHouse])");
$GroupID = $DB->inserted_id();
if ($Type == 'Music') {
foreach ($ArtistForm as $Importance => $Artists) {
foreach ($Artists as $Num => $Artist) {
$DB->query("INSERT IGNORE INTO torrents_artists (GroupID, ArtistID, AliasID, UserID, Importance) VALUES (".$GroupID.", ".$Artist['id'].", ".$Artist['aliasid'].", ".$LoggedUser['ID'].", '".$Importance."')");
$DB->query("
INSERT IGNORE INTO torrents_artists (GroupID, ArtistID, AliasID, UserID, Importance)
VALUES ($GroupID, ".$Artist['id'].", ".$Artist['aliasid'].", ".$LoggedUser['ID'].", '$Importance')");
$Cache->increment('stats_album_count');
}
}
@ -561,8 +585,9 @@
$Cache->increment('stats_group_count');
} else {
$DB->query("UPDATE torrents_group SET
Time='".sqltime()."'
$DB->query("
UPDATE torrents_group
SET Time='".sqltime()."'
WHERE ID=$GroupID");
$Cache->delete_value('torrent_group_'.$GroupID);
$Cache->delete_value('torrents_details_'.$GroupID);
@ -577,13 +602,16 @@
if (!$NoRevision) {
$DB->query("
INSERT INTO wiki_torrents
(PageID, Body, UserID, Summary, Time, Image) VALUES
($GroupID, $T[GroupDescription], $LoggedUser[ID], 'Uploaded new torrent', '".sqltime()."', $T[Image])
");
(PageID, Body, UserID, Summary, Time, Image)
VALUES
($GroupID, $T[GroupDescription], $LoggedUser[ID], 'Uploaded new torrent', '".sqltime()."', $T[Image])");
$RevisionID = $DB->inserted_id();
// Revision ID
$DB->query("UPDATE torrents_group SET RevisionID='$RevisionID' WHERE ID=$GroupID");
$DB->query("
UPDATE torrents_group
SET RevisionID='$RevisionID'
WHERE ID=$GroupID");
}
// Tags
@ -593,15 +621,19 @@
$Tag = Misc::sanitize_tag($Tag);
if (!empty($Tag)) {
$Tag = Misc::get_alias_tag($Tag);
$DB->query("INSERT INTO tags
(Name, UserID) VALUES
('".$Tag."', $LoggedUser[ID])
$DB->query("
INSERT INTO tags
(Name, UserID)
VALUES
('$Tag', $LoggedUser[ID])
ON DUPLICATE KEY UPDATE Uses=Uses+1;
");
$TagID = $DB->inserted_id();
$DB->query("INSERT INTO torrents_tags
(TagID, GroupID, UserID, PositiveVotes) VALUES
$DB->query("
INSERT INTO torrents_tags
(TagID, GroupID, UserID, PositiveVotes)
VALUES
($TagID, $GroupID, $LoggedUser[ID], 10)
ON DUPLICATE KEY UPDATE PositiveVotes=PositiveVotes+1;
");
@ -635,9 +667,11 @@
//******************************************************************************//
//--------------- Write torrent file -------------------------------------------//
$DB->query("INSERT INTO torrents_files (TorrentID, File) VALUES ($TorrentID, '$TorEnc')");
$DB->query("
INSERT INTO torrents_files (TorrentID, File)
VALUES ($TorrentID, '$TorEnc')");
Misc::write_log("Torrent $TorrentID ($LogName) (".number_format($TotalSize / (1024 * 1024), 2)." MB) was uploaded by " . $LoggedUser['Username']);
Torrents::write_group_log($GroupID, $TorrentID, $LoggedUser['ID'], "uploaded (".number_format($TotalSize/(1024*1024), 2)." MB)", 0);
Torrents::write_group_log($GroupID, $TorrentID, $LoggedUser['ID'], 'uploaded ('.number_format($TotalSize / (1024 * 1024), 2).' MB)', 0);
Torrents::update_hash($GroupID);
$Debug->set_flag('upload: sphinx updated');
@ -648,13 +682,13 @@
//******************************************************************************//
//--------------- Add the log scores to the DB ---------------------------------//
if (!empty($LogScores) && $HasLog) {
$LogQuery = 'INSERT INTO torrents_logs_new (TorrentID,Log,Details,NotEnglish,Score,Revision,Adjusted,AdjustedBy,AdjustmentReason) VALUES (';
$LogQuery = '
INSERT INTO torrents_logs_new (TorrentID, Log, Details, NotEnglish, Score, Revision, Adjusted, AdjustedBy, AdjustmentReason)
VALUES (';
foreach ($LogScores as $LogKey => $LogScore) {
$LogScores[$LogKey] = "$TorrentID, $LogScore, 1, 0, 0, NULL";
}
@ -689,8 +723,9 @@
//******************************************************************************//
//--------------- Contest ------------------------------------------------------//
if ($Properties['LibraryImage'] != '') {
$DB->query("INSERT INTO reportsv2 (ReporterID, TorrentID, Type, UserComment, Status, ReportedTime, Track, Image, ExtraID, Link)
VALUES (0, ".$TorrentID.", 'library', '".db_string(($Properties['MultiDisc'] ? 'Multi-disc' : ''))."', 'New', '".sqltime()."', '', '".db_string($Properties['LibraryImage'])."', '', '')");
$DB->query("
INSERT INTO reportsv2 (ReporterID, TorrentID, Type, UserComment, Status, ReportedTime, Track, Image, ExtraID, Link)
VALUES (0, $TorrentID, 'library', '".db_string(($Properties['MultiDisc'] ? 'Multi-disc' : ''))."', 'New', '".sqltime()."', '', '".db_string($Properties['LibraryImage'])."', '', '')");
}
//******************************************************************************//
@ -701,14 +736,14 @@
*/
if ($PublicTorrent) {
View::show_header("Warning");
View::show_header('Warning');
?>
<h1>Warning</h1>
<p><strong>Your torrent has been uploaded; however, you must download your torrent from <a href="torrents.php?id=<?=$GroupID?>">here</a> because you didn't make your torrent using the "private" option.</strong></p>
<?
View::show_footer();
} elseif ($RequestID) {
header("Location: requests.php?action=takefill&requestid=".$RequestID."&torrentid=".$TorrentID."&auth=".$LoggedUser['AuthKey']);
header("Location: requests.php?action=takefill&requestid=$RequestID&torrentid=$TorrentID&auth=".$LoggedUser['AuthKey']);
} else {
header("Location: torrents.php?id=$GroupID");
}
@ -728,7 +763,7 @@
if ($Type == 'Music') {
$Announce .= Artists::display_artists($ArtistForm, false);
}
$Announce .= trim($Properties['Title'])." ";
$Announce .= trim($Properties['Title']).' ';
if ($Type == 'Music') {
$Announce .= '['.trim($Properties['Year']).']';
if (($Type == 'Music') && ($Properties['ReleaseType'] > 0)) {
@ -758,8 +793,8 @@
$AnnounceSSL = $Announce . " - https://".SSL_SITE_URL."/torrents.php?id=$GroupID / https://".SSL_SITE_URL."/torrents.php?action=download&id=$TorrentID";
$Announce .= " - https://".SSL_SITE_URL."/torrents.php?id=$GroupID / https://".SSL_SITE_URL."/torrents.php?action=download&id=$TorrentID";
$AnnounceSSL .= " - ".trim($Properties['TagList']);
$Announce .= " - ".trim($Properties['TagList']);
$AnnounceSSL .= ' - '.trim($Properties['TagList']);
$Announce .= ' - '.trim($Properties['TagList']);
// ENT_QUOTES is needed to decode single quotes/apostrophes
send_irc('PRIVMSG #'.NONSSL_SITE_URL.'-announce :'.html_entity_decode($Announce, ENT_QUOTES));
@ -798,7 +833,8 @@
//Notifications
$SQL = "SELECT unf.ID, unf.UserID, torrent_pass
$SQL = "
SELECT unf.ID, unf.UserID, torrent_pass
FROM users_notify_filters AS unf
JOIN users_main AS um ON um.ID=unf.UserID
WHERE um.Enabled='1'";
@ -886,7 +922,8 @@
$SQL .= "AND ((NewGroupsOnly = '0' ";
// Or this is the first torrent in the group to match the formatbitrate filter
$SQL .= ") OR ( NewGroupsOnly = '1' ";
// Investigate the following line...
$SQL .= ") OR ( NewGroupsOnly = '' ";
// Test the filter doesn't match any previous formatbitrate in the group
foreach ($UsedFormatBitrates as $UsedFormatBitrate) {
$FormatReq = "(Formats LIKE '%|".db_string($UsedFormatBitrate['format'])."|%' OR Formats = '') ";
@ -909,6 +946,17 @@
}
$SQL.=" AND UserID != '".$LoggedUser['ID']."' ";
$DB->query("SELECT Paranoia FROM users_main WHERE ID = $LoggedUser[ID]");
list($Paranoia) = $DB->next_record();
$Paranoia = unserialize($Paranoia);
if (!is_array($Paranoia)) {
$Paranoia = array();
}
if(!in_array('notifications', $Paranoia)) {
$SQL.=" AND (Users LIKE '%|".$LoggedUser['ID']."|%' OR Users = '') ";
}
$SQL.=" AND UserID != '".$LoggedUser['ID']."' ";
$DB->query($SQL);
$Debug->set_flag('upload: notification query finished');
@ -916,7 +964,9 @@
$UserArray = $DB->to_array('UserID');
$FilterArray = $DB->to_array('ID');
$InsertSQL = 'INSERT IGNORE INTO users_notify_torrents (UserID, GroupID, TorrentID, FilterID) VALUES ';
$InsertSQL = '
INSERT IGNORE INTO users_notify_torrents (UserID, GroupID, TorrentID, FilterID)
VALUES ';
$Rows = array();
foreach ($UserArray as $User) {
list($FilterID, $UserID, $Passkey) = $User;
@ -935,7 +985,8 @@
}
// RSS for bookmarks
$DB->query("SELECT u.ID, u.torrent_pass
$DB->query("
SELECT u.ID, u.torrent_pass
FROM users_main AS u
JOIN bookmarks_torrents AS b ON b.UserID = u.ID
WHERE b.GroupID = $GroupID");

View File

@ -468,6 +468,7 @@ function checked($Checked) {
list($ArtistsAdded) = $DB->next_record();
?>
<br /><label><input type="checkbox" name="p_artistsadded" <?=checked(!in_array('artistsadded', $Paranoia))?>/> Number of artists added</label>
<br /><label><input type="checkbox" name="p_notifications" <?=checked(!in_array('notifications', $Paranoia))?>/> Allow users to subscribe to my uploads</label>
</td>
</tr>
<tr>

View File

@ -13,7 +13,22 @@
</div>
<?
$DB->query("
SELECT ID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear, RecordLabels
SELECT
ID,
Label,
Artists,
ExcludeVA,
NewGroupsOnly,
Tags,
NotTags,
ReleaseTypes,
Categories,
Formats,
Encodings,
Media,
FromYear,
ToYear,
Users
FROM users_notify_filters
WHERE UserID='$LoggedUser[ID]'
UNION ALL
@ -32,7 +47,15 @@
$N['Formats'] = explode('|', substr($N['Formats'], 1, -1));
$N['Encodings'] = explode('|', substr($N['Encodings'], 1, -1));
$N['Media'] = explode('|', substr($N['Media'], 1, -1));
$N['RecordLabels'] = implode(', ', explode('|', substr($N['RecordLabels'], 1, -1)));
$N['Users'] = explode('|', substr($N['Users'], 1, -1));
$Usernames = '';
foreach($N['Users'] as $UserID) {
$UserInfo = Users::user_info($UserID);
$Usernames .= $UserInfo['Username'] . ', ';
}
$Usernames = rtrim($Usernames, ', ');
if ($N['FromYear'] == 0) {
$N['FromYear'] = '';
}
@ -79,7 +102,15 @@
<input type="checkbox" name="excludeva<?=$i?>" id="excludeva_<?=$N['ID']?>"<? if ($N['ExcludeVA'] == '1') { echo ' checked="checked"';} ?> />
<label for="excludeva_<?=$N['ID']?>">Exclude Various Artists releases</label>
</td>
</tr> <tr>
</tr>
<tr>
<td class="label"><strong>One of these users</strong></td>
<td>
<textarea name="users<?=$i?>" style="width:100%" rows="5"><?=display_str($Usernames)?></textarea>
<p class="min_padding">Comma-separated list of usernames</em></p>
</td>
</tr>
<tr>
<td class="label"><strong>At least one of these tags</strong></td>
<td>
<textarea name="tags<?=$i?>" style="width: 100%;" rows="2"><?=display_str($N['Tags'])?></textarea>
@ -155,7 +186,7 @@
</tr>
<tr>
<td colspan="2" class="center">
<input type="submit" value="<?=($i>$NumFilters)?'Create filter':'Update filter'?>" />
<input type="submit" value="<?=(($i > $NumFilters) ? 'Create filter' : 'Update filter')?>" />
</td>
</tr>
</table>

View File

@ -15,7 +15,7 @@
$MediaList = '';
$FromYear = 0;
$ToYear = 0;
$RecordLabels = '';
$Users = '';
$HasFilter = false;
if ($_POST['formid'] && is_number($_POST['formid'])) {
@ -119,19 +119,27 @@
}
}
if ($_POST['record_labels'.$FormID]) {
$RLs = explode(',', $_POST['record_labels'.$FormID]);
$ParsedRLs = array();
foreach ($RLs as $RL) {
if (trim($RL) != '') {
$ParsedRLs[] = db_string(trim($RL));
if ($_POST['users'.$FormID]) {
$Usernames = explode(',', $_POST['users'.$FormID]);
$EscapedUsernames = array();
foreach($Usernames as $Username) {
$EscapedUsernames[] = db_string(trim($Username));;
}
}
if (count($ParsedRLs) > 0) {
$RecordLabels = '|'.implode('|', $ParsedRLs).'|';
$DB->query("
SELECT m.ID, m.Paranoia
FROM users_main AS m
WHERE m.Username IN ('" . implode("', '", $EscapedUsernames) . "')
AND m.ID != $LoggedUser[ID]");
while (list($UserID, $Paranoia) = $DB->next_record()) {
$Paranoia = unserialize($Paranoia);
if (!in_array('notifications', $Paranoia)) {
$Users .= '|' . $UserID . '|';
$HasFilter = true;
}
}
}
if (!$HasFilter) {
$Err = 'You must add at least one criterion to filter by';
@ -148,6 +156,7 @@
$ArtistList = str_replace('||', '|', $ArtistList);
$TagList = str_replace('||', '|', $TagList);
$NotTagList = str_replace('||', '|', $NotTagList);
$Users = str_replace('||', '|', $Users);
if ($_POST['id'.$FormID] && is_number($_POST['id'.$FormID])) {
$DB->query("
@ -155,7 +164,7 @@
SET
Artists='$ArtistList',
ExcludeVA='$ExcludeVA',
NewGroupsOnly='$NewGroupsOnly',
NewGroupsOnly='$NewGrsoupsOnly',
Tags='$TagList',
NotTags='$NotTagList',
ReleaseTypes='$ReleaseTypeList',
@ -165,15 +174,15 @@
Media='$MediaList',
FromYear='$FromYear',
ToYear='$ToYear',
RecordLabels='$RecordLabels'
Users ='$Users'
WHERE ID='".$_POST['id'.$FormID]."'
AND UserID='$LoggedUser[ID]'");
} else {
$DB->query("
INSERT INTO users_notify_filters
(UserID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear, RecordLabels)
(UserID, Label, Artists, ExcludeVA, NewGroupsOnly, Tags, NotTags, ReleaseTypes, Categories, Formats, Encodings, Media, FromYear, ToYear, Users)
VALUES
('$LoggedUser[ID]','".db_string($_POST['label'.$FormID])."','$ArtistList','$ExcludeVA','$NewGroupsOnly','$TagList', '$NotTagList', '$ReleaseTypeList','$CategoryList','$FormatList','$EncodingList','$MediaList', '$FromYear', '$ToYear', '$RecordLabels')");
('$LoggedUser[ID]','".db_string($_POST['label'.$FormID])."','$ArtistList','$ExcludeVA','$NewGroupsOnly','$TagList', '$NotTagList', '$ReleaseTypeList','$CategoryList','$FormatList','$EncodingList','$MediaList', '$FromYear', '$ToYear', '$Users')");
}
$Cache->delete_value('notify_filters_'.$LoggedUser['ID']);

View File

@ -85,7 +85,7 @@
}
$Paranoia = array();
$Checkboxes = array('downloaded', 'uploaded', 'ratio', 'lastseen', 'requiredratio', 'invitedcount', 'artistsadded');
$Checkboxes = array('downloaded', 'uploaded', 'ratio', 'lastseen', 'requiredratio', 'invitedcount', 'artistsadded', 'notifications');
foreach ($Checkboxes as $C) {
if (!isset($_POST['p_'.$C])) {
$Paranoia[] = $C;

View File

@ -523,7 +523,7 @@ ul#userinfo_username {
}
#content .header h2,
#content > .thin > h2:first-of-type,
#content > .thin > h2:first-child,
#content > .thin > .header:first-of-type > h3:first-of-type {
background-color: #f0f0f0;
margin: 20px -20px -1px -20px !important;
@ -540,7 +540,7 @@ ul#userinfo_username {
}
#content .header:first-child h2,
#content > .thin > h2:first-of-type,
#content > .thin > h2:first-child,
#content > .thin > .header:first-of-type > h3:first-of-type {
margin-top: -20px !important;
}
@ -759,6 +759,7 @@ table {
-moz-box-shadow: -4px 1px 8px rgba(187, 215, 235, 0.8);
box-shadow: -4px 1px 8px rgba(187, 215, 235, 0.8);
background-color: #F5F5F5;
word-break: break-word;
}
.forum_post .body div {
@ -1627,6 +1628,10 @@ ul.collage_images {
min-width: 60px;
}
#requests .scale_image {
max-width: 440px;
}
#quickreplybuttons {
margin-top: 5px;
}