Empty commit

This commit is contained in:
Git 2013-05-26 08:00:59 +00:00
parent dc035fbc0d
commit 5669fbc5f9
18 changed files with 159 additions and 162 deletions

View File

@ -573,8 +573,8 @@ function show() {
<td class="label">Lossy web approved:</td>
<td><input type="checkbox" id="lossyweb_approved" name="lossyweb_approved"<? if ($LossywebApproved) { echo ' checked="checked"';} ?> /> <label for="lossyweb_approved">Check this box if the torrent is an approved lossy WEB release.</label></td>
</tr>
<? } ?>
<? if ($this->NewTorrent) { ?>
<? }
if ($this->NewTorrent) { ?>
<tr>
<td class="label">Tags:</td>
<td>
@ -588,19 +588,7 @@ function show() {
<? } ?>
<input type="text" id="tags" name="tags" size="40" value="<?=display_str($Torrent['TagList']) ?>"<?=$this->Disabled?> />
<br />
Tags should be comma-separated, and you should use a period (".") to separate words inside a tag &mdash; e.g. "<strong class="important_text_alt">hip.hop</strong>".
<br /><br />
There is a list of official tags to the left of the text box. Please use these tags instead of "unofficial" tags (e.g. use the official "<strong class="important_text_alt">drum.and.bass</strong>" tag, instead of an unofficial "<strong class="important_text">dnb</strong>" tag). <strong>Please note that the "<strong class="important_text_alt">2000s</strong>" tag refers to music produced between 2000 and 2009.</strong>
<br /><br />
Avoid abbreviations if at all possible. So instead of tagging an album as "<strong class="important_text">alt</strong>", tag it as "<strong class="important_text_alt">alternative</strong>". Make sure that you use correct spelling.
<br /><br />
Avoid using multiple synonymous tags. Using both "<strong class="important_text">prog.rock</strong>" and "<strong class="important_text_alt">progressive.rock</strong>" is redundant and annoying&mdash;just use the official "<strong class="important_text_alt">progressive.rock</strong>" tag.
<br /><br />
Do not add "useless" tags, such as "<strong class="important_text">seen.live</strong>", "<strong class="important_text">awesome</strong>", "<strong class="important_text">rap</strong>" (is encompassed by "<strong class="important_text_alt">hip.hop</strong>"), etc. If an album is live, you can tag it as "<strong class="important_text_alt">live</strong>".
<br /><br />
Only tag information on the album itself&mdash;NOT THE INDIVIDUAL RELEASE. Tags such as "<strong class="important_text">v0</strong>", "<strong class="important_text">eac</strong>", "<strong class="important_text">vinyl</strong>", "<strong class="important_text">from.oink</strong>", etc. are strictly forbidden. Remember that these tags will be used for other versions of the same album.
<br /><br />
<strong>You should be able to build up a list of tags using only the official tags to the left of the text box. If you are in any doubt about whether or not a tag is acceptable, do not add it.</strong>
<? Rules::display_site_tag_rules(true) // indent the opening PHP tag with 3 tabs for proper HTML generation ?>
</td>
</tr>
<tr>

53
classes/rules.class.php Normal file
View File

@ -0,0 +1,53 @@
<?php
class Rules {
/**
* Displays the site's rules for tags.
*
* @param boolean $OnUpload - whether it's being displayed on a torrent upload form
*/
public static function display_site_tag_rules($OnUpload = false) {
?>
<ul>
<li>Tags should be comma-separated, and you should use a period (".") to separate words inside a tag &mdash; e.g. "<strong class="important_text_alt">hip.hop</strong>".</li>
<li>There is a list of official tags <?=($OnUpload ? 'to the left of the text box' : 'on <a href="upload.php">the torrent upload page</a>')?>. Please use these tags instead of "unofficial" tags (e.g. use the official "<strong class="important_text_alt">drum.and.bass</strong>" tag, instead of an unofficial "<strong class="important_text">dnb</strong>" tag). <strong>Please note that the "<strong class="important_text_alt">2000s</strong>" tag refers to music produced between 2000 and 2009.</strong></li>
<li>Avoid abbreviations if at all possible. So instead of tagging an album as "<strong class="important_text">alt</strong>", tag it as "<strong class="important_text_alt">alternative</strong>". Make sure that you use correct spelling.</li>
<li>Avoid using multiple synonymous tags. Using both "<strong class="important_text">prog.rock</strong>" and "<strong class="important_text_alt">progressive.rock</strong>" is redundant and annoying&mdash;just use the official "<strong class="important_text_alt">progressive.rock</strong>" tag.</li>
<li>Do not add "useless" tags, such as "<strong class="important_text">seen.live</strong>", "<strong class="important_text">awesome</strong>", "<strong class="important_text">rap</strong>" (is encompassed by "<strong class="important_text_alt">hip.hop</strong>"), etc. If an album is live, you can tag it as "<strong class="important_text_alt">live</strong>".</li>
<li>Only tag information on the album itself&mdash;<strong>not the individual release</strong>. Tags such as "<strong class="important_text">v0</strong>", "<strong class="important_text">eac</strong>", "<strong class="important_text">vinyl</strong>", "<strong class="important_text">from.oink</strong>", etc. are strictly forbidden. Remember that these tags will be used for other versions of the same album.</li>
<li><strong>You should be able to build up a list of tags using only the official tags <?=($OnUpload ? 'to the left of the text box' : 'on <a href="upload.php">the torrent upload page</a>')?>. If you are in any doubt about whether or not a tag is acceptable, do not add it.</strong></li>
</ul>
<?
}
/**
* Displays the site's rules for conversing on its IRC network
*
*/
public static function display_irc_chat_rules() {
?>
<ul>
<li>Staff have the final decision. If a staff member says stop and you continue, expect at least to be banned from the IRC network.</li>
<li>Be respectful to IRC Operators and Administrators. These people are site staff who volunteer their time for little compensation. They are there for the benefit of all and to aid in conflict resolution; do not waste their time.</li>
<li>Do not link shock sites or anything NSFW (not safe for work) without a warning. If in doubt, ask a staff member in <?=(BOT_HELP_CHAN)?> about it.</li>
<li>Excessive swearing will get you kicked; keep swearing to a minimum.</li>
<li>Do not leave Caps Lock enabled all the time. It gets annoying, and you will likely get yourself kicked.</li>
<li>No arguing. You can't win an argument over the Internet, so you are just wasting your time trying.</li>
<li>No prejudice, especially related to race, religion, politics, ethnic background, etc. It is highly suggested to avoid this entirely.</li>
<li>Flooding is irritating and will warrant you a kick. This includes, but is not limited to, automatic "now playing" scripts, pasting large amounts of text, and multiple consecutive lines with no relevance to the conversation at hand.</li>
<li>Impersonation of other members&mdash;particularly staff members&mdash;will not go unpunished. If you are uncertain of a user's identity, check their vhost.</li>
<li>Spamming is strictly forbidden. This includes, but is not limited to, personal sites, online auctions, and torrent uploads.</li>
<li>Obsessive annoyance&mdash;both to other users and staff&mdash;will not be tolerated.</li>
<li>Do not PM, DCC, or Query anyone you don't know or have never talked to without asking first; this applies specifically to staff.</li>
<li>No language other than English is permitted in the official IRC channels. If we cannot understand it, we cannot moderate it.</li>
<li>The offering, selling, trading, and giving away of invites to this or any other site on our IRC network is <strong>strictly forbidden</strong>.</li>
<li><strong>Read the channel topic before asking questions.</strong></li>
</ul>
<?
}
}

View File

@ -136,6 +136,9 @@
case 'Rippy':
$FileName = 'rippy.class';
break;
case 'Rules':
$FileName = 'rules.class';
break;
case 'Sphinxql':
$FileName = 'class_sphinxql';
break;

View File

@ -712,12 +712,13 @@ function compare($X, $Y) {
$Collages = $Cache->get_value('artists_collages_'.$ArtistID);
if (!is_array($Collages)) {
$DB->query("SELECT
c.Name, c.NumTorrents, c.ID
FROM collages AS c
JOIN collages_artists AS ca ON ca.CollageID=c.ID
WHERE ca.ArtistID='$ArtistID'
AND Deleted='0' AND CategoryID = '7'");
$DB->query("
SELECT c.Name, c.NumTorrents, c.ID
FROM collages AS c
JOIN collages_artists AS ca ON ca.CollageID=c.ID
WHERE ca.ArtistID='$ArtistID'
AND Deleted='0'
AND CategoryID = '7'");
$Collages = $DB->to_array();
$Cache->cache_value('artists_collages_'.$ArtistID, $Collages, 3600*6);
}
@ -735,7 +736,7 @@ function compare($X, $Y) {
?>
<table class="collage_table" id="collages">
<tr class="colhead">
<td width="85%"><a href="#">&uarr;</a>&nbsp;This artists is in <?=number_format(count($Collages))?> collage<?=((count($Collages)>1) ? 's' : '')?><?=$SeeAll?></td>
<td width="85%"><a href="#">&uarr;</a>&nbsp;This artists is in <?=number_format(count($Collages))?> collage<?=((count($Collages) > 1) ? 's' : '')?><?=$SeeAll?></td>
<td># artists</td>
</tr>
<? foreach ($Indices as $i) {

View File

@ -26,23 +26,7 @@
<h3 id="irc">IRC Rules - Please read these carefully!</h3>
</div>
<div class="box pad" style="padding: 10px 10px 10px 20px;">
<ul>
<li>Staff have the final decision, if they say stop and you continue, expect at least to be banned from the IRC network.</li>
<li>Be respectful to IRC Operators and Administrators. These people are site staff who volunteer their time for little compensation. They are there for the benefit of all and to aid in conflict resolution; do not waste their time.</li>
<li>Do not link shock sites or anything NSFW (not safe for work) without a warning. If in doubt, ask a staff member in <?=BOT_HELP_CHAN?> about it.</li>
<li>Excessive swearing will get you kicked; keep swearing to a minimum.</li>
<li>Do not leave your Caps Lock on all the time. It gets annoying, and you will likely get yourself kicked.</li>
<li>No arguing. You can't win an argument over the Internet, so you're just wasting your time trying.</li>
<li>No prejudice, especially related to race, religion, politics, ethnic background, etc. It is highly suggested to avoid this entirely.</li>
<li>Flooding is irritating and will warrant you a kick. This includes, but is not limited to, automatic "now playing" scripts, pasting large amounts of text, and multiple consecutive lines with no relevance to the conversation at hand.</li>
<li>Impersonation of other members (particularly staff members) will not go unpunished. If you are uncertain of a user's identity, check their vhost.</li>
<li>Spamming is strictly forbidden. This includes, but is not limited to, personal sites, online auctions, and torrent uploads.</li>
<li>Obsessive annoyance, both to other users and staff, will not be tolerated.</li>
<li>Do not PM, DCC, or Query anyone you don't know or have never talked to without asking; this applies specifically to staff.</li>
<li>No language other than English is permitted in the official IRC channels. If we cannot understand it, we cannot moderate it.</li>
<li>The offering, selling, trading, and giving away of invites to this or any other site on our IRC network is <strong>strictly forbidden</strong>.</li>
<li><strong>Read the topic before asking questions.</strong></li>
</ul>
<? Rules::display_irc_chat_rules() ?>
<form class="confirm_form center" name="chat" method="post" action="chat.php">
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="submit" name="accept" value="I agree to these rules" />

View File

@ -1,16 +1,17 @@
<?
$DB->query("SELECT
ca.ArtistID,
ag.Name,
aw.Image,
um.ID AS UserID,
um.Username
FROM collages_artists AS ca
JOIN artists_group AS ag ON ag.ArtistID=ca.ArtistID
LEFT JOIN wiki_artists AS aw ON aw.RevisionID = ag.RevisionID
LEFT JOIN users_main AS um ON um.ID=ca.UserID
WHERE ca.CollageID='$CollageID'
ORDER BY ca.Sort");
$DB->query("
SELECT
ca.ArtistID,
ag.Name,
aw.Image,
um.ID AS UserID,
um.Username
FROM collages_artists AS ca
JOIN artists_group AS ag ON ag.ArtistID=ca.ArtistID
LEFT JOIN wiki_artists AS aw ON aw.RevisionID = ag.RevisionID
LEFT JOIN users_main AS um ON um.ID=ca.UserID
WHERE ca.CollageID='$CollageID'
ORDER BY ca.Sort");
$Artists = $DB->to_array('ArtistID', MYSQLI_ASSOC);
@ -24,7 +25,7 @@
$NumArtistsByUser = 0;
$Users = array();
foreach($Artists as $Artist) {
foreach ($Artists as $Artist) {
$UserID = $Artist['UserID'];
$Username = $Artist['Username'];
$NumArtists++;
@ -54,11 +55,11 @@
?>
<li class="image_group_<?=$Artist['ArtistID']?>">
<a href="artist.php?id=<?=$Artist['ArtistID']?>">
<? if ($Artist['Image']) { ?>
<img src="<?=ImageTools::process($Artist['Image'], true)?>" alt="<?=$Artist['Name']?>" title="<?=$Artist['Name']?>" width="118" />
<? } else { ?>
<span style="width: 107px; padding: 5px;"><?=$Artist['Name']?></span>
<? } ?>
<? if ($Artist['Image']) { ?>
<img src="<?=ImageTools::process($Artist['Image'], true)?>" alt="<?=$Artist['Name']?>" title="<?=$Artist['Name']?>" width="118" />
<? } else { ?>
<span style="width: 107px; padding: 5px;"><?=$Artist['Name']?></span>
<? } ?>
</a>
</li>
<?

View File

@ -63,7 +63,7 @@ function compare($X, $Y) {
}
$DB->query("UPDATE users_collage_subs SET LastVisit=NOW() WHERE UserID = ".$LoggedUser['ID']." AND CollageID=$CollageID");
if($CollageCategoryID == array_search(ARTIST_COLLAGE, $CollageCats)) {
if ($CollageCategoryID == array_search(ARTIST_COLLAGE, $CollageCats)) {
include(SERVER_ROOT.'/sections/collages/artist_collage.php');
} else {
include(SERVER_ROOT.'/sections/collages/torrent_collage.php');

View File

@ -9,21 +9,22 @@
if ($CategoryID == 0 && $UserID != $LoggedUser['ID'] && !check_perms('site_collages_delete')) {
error(403);
}
if($CategoryID != array_search(ARTIST_COLLAGE, $CollageCats)) {
if ($CategoryID != array_search(ARTIST_COLLAGE, $CollageCats)) {
error(403);
}
$DB->query("SELECT
ca.ArtistID,
ag.Name,
um.ID AS UserID,
um.Username,
ca.Sort
FROM collages_artists AS ca
JOIN artists_group AS ag ON ag.ArtistID=ca.ArtistID
LEFT JOIN users_main AS um ON um.ID=ca.UserID
WHERE ca.CollageID='$CollageID'
ORDER BY ca.Sort");
$DB->query("
SELECT
ca.ArtistID,
ag.Name,
um.ID AS UserID,
um.Username,
ca.Sort
FROM collages_artists AS ca
JOIN artists_group AS ag ON ag.ArtistID=ca.ArtistID
LEFT JOIN users_main AS um ON um.ID=ca.UserID
WHERE ca.CollageID='$CollageID'
ORDER BY ca.Sort");
$Artists = $DB->to_array('ArtistID', MYSQLI_ASSOC);
@ -64,7 +65,7 @@
<thead>
<tr class="colhead">
<th style="width: 7%">Order</th>
<th style="width: 1%"><span><abbr title="Current Rank">#</abbr></span></th>
<th style="width: 1%"><span><abbr title="Current rank">#</abbr></span></th>
<th style="text-align: left;"><span>Artist</span></th>
<th style="width: 7%"><span>User</span></th>
<th style="width: 7%; text-align: right;" class="nobr"><span><abbr title="Modify an individual row.">Tweak</abbr></span></th>

View File

@ -12,7 +12,7 @@
if ($CategoryID == 0 && $UserID != $LoggedUser['ID'] && !check_perms('site_collages_delete')) {
error(403);
}
if($CategoryID != array_search(ARTIST_COLLAGE, $CollageCats)) {
if ($CategoryID != array_search(ARTIST_COLLAGE, $CollageCats)) {
error(403);
}
@ -52,7 +52,11 @@
if (!is_number($Sort)) {
error(404);
}
$DB->query("UPDATE collages_artists SET Sort='$Sort' WHERE CollageID='$CollageID' AND ArtistID='$ArtistID'");
$DB->query("
UPDATE collages_artists
SET Sort='$Sort'
WHERE CollageID='$CollageID'
AND ArtistID='$ArtistID'");
}
$Cache->delete_value('collage_'.$CollageID);

View File

@ -1,16 +1,17 @@
<?
// Build the data for the collage and the torrent list
$DB->query("SELECT
ct.GroupID,
tg.WikiImage,
tg.CategoryID,
um.ID,
um.Username
FROM collages_torrents AS ct
JOIN torrents_group AS tg ON tg.ID=ct.GroupID
LEFT JOIN users_main AS um ON um.ID=ct.UserID
WHERE ct.CollageID='$CollageID'
ORDER BY ct.Sort");
$DB->query("
SELECT
ct.GroupID,
tg.WikiImage,
tg.CategoryID,
um.ID,
um.Username
FROM collages_torrents AS ct
JOIN torrents_group AS tg ON tg.ID=ct.GroupID
LEFT JOIN users_main AS um ON um.ID=ct.UserID
WHERE ct.CollageID='$CollageID'
ORDER BY ct.Sort");
$GroupIDs = $DB->collect('GroupID');
$CollageDataList = $DB->to_array('GroupID', MYSQLI_ASSOC);

View File

@ -223,14 +223,16 @@
<table>
<tr class="colhead">
<td>Staff member</td>
<td>Current count</td> </tr>
<td>Current count</td>
</tr>
<?
foreach ($Staff as $Array) { ?>
<tr>
<td>
<a href="reportsv2.php?view=staff&amp;id=<?=$Array['ResolverID']?>"><?=display_str($Array['Username'])?>'s reports</a>
</td>
<td><?=number_format($Array['Count'])?></td> </tr>
<td><?=number_format($Array['Count'])?></td>
</tr>
<?
} ?>
</table>

View File

@ -89,53 +89,7 @@
<div class="thin">
<h3 id="irc">IRC Rules</h3>
<div class="box pad rule_summary" style="padding: 10px 10px 10px 20px;">
<ul>
<li>
Staff have the final decision, if they say stop and you continue, expect at least to be banned from the IRC server.
</li>
<li>
Be respectful to IRC Operators and Administrators. These people are site staff who volunteer their time for little compensation. They are there for the benefit of all and to aid in conflict resolution, do not waste their time.
</li>
<li>
Do not link shock sites or anything NSFW (not safe for work) without a warning. If in doubt, ask a staff member in #what.cd-help about it.
</li>
<li>
Excessive swearing will get you kicked, keep swearing to a minimum.
</li>
<li>
Do not leave your Caps Lock on all the time. It gets annoying, and you will likely get yourself kicked.
</li>
<li>
No arguing. You can't win an argument over the internet, so you're just wasting your time trying.
</li>
<li>
No prejudice, especially related to race, religion, politics, ethnic background, etc. It is highly suggested to avoid this entirely.
</li>
<li>
Flooding is irritating and will merit you a kick. This includes but is not limited to: automatic now playing scripts, pasting large amounts of text, and multiple consecutive lines with no relevance to the conversation at hand.
</li>
<li>
Impersonation of other members (particularly staff members) will not go unpunished. If you are uncertain of a user's identity, check their vhost.
</li>
<li>
Spamming is strictly forbidden. This includes but is not limited to: personal sites, online auctions, and torrent uploads.
</li>
<li>
Obsessive annoyance both to other users and staff will not be tolerated.
</li>
<li>
Don't PM, DCC, or Query anyone you don't know or have never talked to without asking, this applies specifically to staff.
</li>
<li>
No language other than English is permitted in the official IRC channels. If we can't understand it, we can't moderate it.
</li>
<li>
The offering, selling, trading and giving away of invites to this or any other site on our IRC network is <strong>strictly forbidden</strong>.
</li>
<li>
<strong>Read the topic before asking questions.</strong>
</li>
</ul>
<? Rules::display_irc_chat_rules() ?>
</div>
<? include('jump.php'); ?>
</div>

View File

@ -8,20 +8,7 @@
<h3 id="general">Tagging rules</h3>
</div>
<div class="box pad rule_summary" style="padding: 10px 10px 10px 20px;">
<ul>
<li>Tags should be comma separated, and you should use a period ('.') to separate words inside a tag - eg. '<strong class="important_text_alt">hip.hop</strong>'.
</li><li>
There is a list of official tags on upload.php. Please use these tags instead of 'unofficial' tags (eg. use the official '<strong class="important_text_alt">drum.and.bass</strong>' tag, instead of an unofficial '<strong class="important_text">dnb</strong>' tag.)
</li><li>
Avoid abbreviations if at all possible. So instead of tagging an album as '<strong class="important_text">alt</strong>', tag it as '<strong class="important_text_alt">alternative</strong>'. Make sure that you use correct spelling.
</li><li>
Avoid using multiple synonymous tags. Using both '<strong class="important_text">prog.rock</strong>' and '<strong class="important_text_alt">progressive.rock</strong>' is redundant and annoying - just use the official '<strong class="important_text_alt">progressive.rock</strong>' tag.
</li><li>
Don't use 'useless' tags, such as '<strong class="important_text">seen.live</strong>', '<strong class="important_text">awesome</strong>', '<strong class="important_text">rap</strong>' (is encompassed by '<strong class="important_text_alt">hip.hop</strong>'), etc. If an album is live, you can tag it as '<strong class="important_text_alt">live</strong>'.
</li><li>
Only tag information on the album itself - NOT THE INDIVIDUAL RELEASE. Tags such as '<strong class="important_text">v0</strong>', '<strong class="important_text">eac</strong>', '<strong class="important_text">vinyl</strong>', '<strong class="important_text">from.oink</strong>' etc are strictly forbidden. Remember that these tags will be used for other versions of the same album.
</li>
</ul>
<? Rules::display_site_tag_rules(false) ?>
</div>
<!-- END General Rules -->
<? include('jump.php'); ?>

View File

@ -12,7 +12,7 @@
}
//Delete cached tag used for undos
if(isset($_POST['undo'])) {
if (isset($_POST['undo'])) {
$Cache->delete_value('deleted_tags_'.$GroupID.'_'.$LoggedUser['ID']);
}
@ -23,29 +23,44 @@
if (!empty($TagName)) {
$TagName = Misc::get_alias_tag($TagName);
// Check DB for tag matching name
$DB->query("SELECT t.ID FROM tags AS t WHERE t.Name LIKE '".$TagName."'");
$DB->query("
SELECT t.ID
FROM tags AS t
WHERE t.Name LIKE '$TagName'");
list($TagID) = $DB->next_record();
if (!$TagID) { // Tag doesn't exist yet - create tag
$DB->query("INSERT INTO tags (Name, UserID) VALUES ('".$TagName."', ".$UserID.")");
$DB->query("
INSERT INTO tags (Name, UserID)
VALUES ('$TagName', $UserID)");
$TagID = $DB->inserted_id();
} else {
$DB->query("SELECT TagID FROM torrents_tags_votes WHERE GroupID='$GroupID' AND TagID='$TagID' AND UserID='$UserID'");
$DB->query("
SELECT TagID
FROM torrents_tags_votes
WHERE GroupID='$GroupID'
AND TagID='$TagID'
AND UserID='$UserID'");
if ($DB->record_count() != 0) { // User has already voted on this tag, and is trying hax to make the rating go up
header('Location: '.$_SERVER['HTTP_REFERER']);
die();
}
}
$DB->query("INSERT INTO torrents_tags
(TagID, GroupID, PositiveVotes, UserID) VALUES
('$TagID', '$GroupID', '3', '$UserID')
$DB->query("
INSERT INTO torrents_tags
(TagID, GroupID, PositiveVotes, UserID)
VALUES
('$TagID', '$GroupID', '3', '$UserID')
ON DUPLICATE KEY UPDATE PositiveVotes=PositiveVotes+2");
$DB->query("INSERT INTO torrents_tags_votes (GroupID, TagID, UserID, Way) VALUES ('$GroupID', '$TagID', '$UserID', 'up')");
$DB->query("
INSERT INTO torrents_tags_votes (GroupID, TagID, UserID, Way)
VALUES ('$GroupID', '$TagID', '$UserID', 'up')");
$DB->query("INSERT INTO group_log (GroupID, UserID, Time, Info)
VALUES ('$GroupID',".$LoggedUser['ID'].",'".sqltime()."','".db_string('Tag "'.$TagName.'" added to group')."')");
$DB->query("
INSERT INTO group_log (GroupID, UserID, Time, Info)
VALUES ('$GroupID',".$LoggedUser['ID'].",'".sqltime()."','".db_string('Tag "'.$TagName.'" added to group')."')");
}
}

View File

@ -313,9 +313,9 @@ function compare($X, $Y) {
<div class="box box_tags">
<div class="head">
<strong>Tags</strong>
<?
<?
$DeletedTag = $Cache->get_value('deleted_tags_'.$GroupID.'_'.$LoggedUser['ID']);
if(!empty($DeletedTag)) { ?>
if (!empty($DeletedTag)) { ?>
<form style="display: none;" id="undo_tag_delete_form" name="tags" action="torrents.php" method="post">
<input type="hidden" name="action" value="add_tag" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
@ -325,7 +325,7 @@ function compare($X, $Y) {
</form>
<a class="brackets" href="#" onclick="$('#undo_tag_delete_form').raw().submit(); return false;";>Undo Delete</a>
<? } ?>
<? } ?>
</div>
<?
if (count($Tags) > 0) {

View File

@ -952,7 +952,7 @@
if (!is_array($Paranoia)) {
$Paranoia = array();
}
if(!in_array('notifications', $Paranoia)) {
if (!in_array('notifications', $Paranoia)) {
$SQL.=" AND (Users LIKE '%|".$LoggedUser['ID']."|%' OR Users = '') ";
}

View File

@ -25,4 +25,3 @@
}
$Cache->replace_value('collage_subs_user_'.$LoggedUser['ID'], $UserSubscriptions, 0);
$Cache->delete_value('collage_subs_user_new_'.$LoggedUser['ID']);

View File

@ -346,6 +346,10 @@ ul#userinfo_stats li a {
color: #626262;
}
.blend:hover a {
color: white;
}
.blend a {
color: #575757;
}