mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
beae0275e2
commit
1c45369828
@ -1,6 +1,6 @@
|
||||
<?
|
||||
class Calendar {
|
||||
public static $Categories = array(1 => "IRC Meeting", "IRC Brainstorm", "Poll Deadline", "Feature Release", "Blog Post", "Announcement", "Featured Album", "Product Release", "Staff Picks", "Forum Brainstorm", "Forum Discussion", "Promotion");
|
||||
public static $Categories = array(1 => "IRC Meeting", "IRC Brainstorm", "Poll Deadline", "Feature Release", "Blog Post", "Announcement", "Featured Album", "Product Release", "Staff Picks", "Forum Brainstorm", "Forum Discussion", "Promotion", "Absence", "Task");
|
||||
public static $Importances = array(1 => "Critical", "Important", "Average", "Meh");
|
||||
public static $Colors = array(
|
||||
"Critical" => "red",
|
||||
@ -97,6 +97,7 @@ public static function create_event($Title, $Body, $Category, $Importance, $Team
|
||||
VALUES
|
||||
('$Title', '$Body', '$Category', '$Importance', '$Team', '$StartDate', '$EndDate', '$UserID')");
|
||||
// G::$DB->set_query_id($QueryID);
|
||||
send_irc("PRIVMSG " . ADMIN_CHAN . " :New calendar event created! Event: $Title; Starts: $StartDate; Ends: $EndDate.");
|
||||
}
|
||||
|
||||
public static function update_event($ID, $Title, $Body, $Category, $Importance, $Team, $StartDate, $EndDate = null) {
|
||||
|
@ -7,7 +7,7 @@ class Rules {
|
||||
*/
|
||||
public static function display_golden_rules() {
|
||||
?>
|
||||
<ul>
|
||||
<ol>
|
||||
<li>All staff decisions must be respected. If you take issue with a decision, you must do so privately with the staff member who issued the decision or with an administrator of the site. Complaining about staff decisions in public or otherwise disrespecting staff members will not be taken lightly.</li>
|
||||
<li>Access to this web site is a privilege, not a right, and it can be taken away from you for any reason.</li>
|
||||
<li>One account per person per lifetime. Anyone creating additional accounts will be banned. Additionally, unless your account is immune to <a href="wiki.php?action=article&id=8">inactivity pruning</a>, accounts are automatically disabled if one page load is not made at least once every four months.</li>
|
||||
@ -24,7 +24,7 @@ public static function display_golden_rules() {
|
||||
<li>Attempting to find or exploit a bug in the site code is the worst possible offense you can commit. We have automatic systems in place for monitoring these activities, and committing them will result in the banning of you, your inviter, and your inviter's entire invite tree.</li>
|
||||
<li>We're a community. Working together is what makes this place what it is. There are well over a thousand new torrents uploaded every day and sadly the staff aren't psychic. If you come across something that violates a rule, report it and help us better organize the site for you.</li>
|
||||
<li>We respect the wishes of other sites here, as we wish for them to do the same. Please refrain from posting links to or full names for sites that do not want to be mentioned.</li>
|
||||
</ul>
|
||||
</ol>
|
||||
<?
|
||||
}
|
||||
|
||||
@ -53,13 +53,93 @@ public static function display_site_tag_rules($OnUpload = false) {
|
||||
<?
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the site's rules for the forum
|
||||
*
|
||||
*/
|
||||
public static function display_forum_rules() {
|
||||
?>
|
||||
<ol>
|
||||
<li>
|
||||
Many forums (Tutorials, The Library, etc.) have their own set of rules. Make sure you read and take note of these rules before you attempt to post in one of these forums.
|
||||
</li>
|
||||
<li>
|
||||
Don't use all capital letters, excessive !!! (exclamation marks) or ??? (question marks). It seems like you're shouting!
|
||||
</li>
|
||||
<li>
|
||||
No lame referral schemes. This includes freeipods.com, freepsps.com, or any other similar scheme in which the poster gets personal gain from users clicking a link.
|
||||
</li>
|
||||
<li>
|
||||
No asking for money for any reason whatsoever. We don't know or care about your friend who lost everything, or dying relative who wants to enjoy their last few moments alive by being given lots of money.
|
||||
</li>
|
||||
<li>
|
||||
Do not inappropriately advertise your uploads. In special cases, it is acceptable to mention new uploads in an approved thread (e.g. <a href="forums.php?action=viewthread&threadid=133982">New Users — We'll Snatch Your First 100% FLAC</a>), but be sure to carefully read the thread's rules before posting. It is also acceptable to discuss releases you have uploaded when conversing about the music itself. Blatant attempts to advertise your uploads outside of the appropriate forums or threads may result in a warning or the loss of forum privileges.
|
||||
</li>
|
||||
<li>
|
||||
No posting music requests in forums. There's a request link at the top of the page; please use that instead.
|
||||
</li>
|
||||
<li>
|
||||
No flaming; be pleasant and polite. Don't use offensive language, and don't be confrontational for the sake of confrontation.
|
||||
</li>
|
||||
<li>
|
||||
Don't point out or attack other members' share ratios. A higher ratio does not make you better than someone else.
|
||||
</li>
|
||||
<li>
|
||||
Try not to ask stupid questions. A stupid question is one that you could have found the answer to yourself with a little research, or one that you're asking in the wrong place. If you do the basic research suggested (i.e., read the rules/wiki) or search the forums and don't find the answer to your question, then go ahead and ask. Staff and First Line Support (FLS) are not here to hand-feed you the answers you could have found on your own with a little bit of effort.
|
||||
</li>
|
||||
<li>
|
||||
Be sure you read all the sticky threads in a forum before you post.
|
||||
</li>
|
||||
<li>
|
||||
Use descriptive and specific subject lines. This helps others decide whether your particular words of wisdom relate to a topic they care about.
|
||||
</li>
|
||||
<li>
|
||||
Try not to post comments that don't add anything to the discussion. When you're just cruising through a thread in a leisurely manner, it's not too annoying to read through a lot of "hear, hear"'s and "I agree"'s. But if you're actually trying to find information, it's a pain in the neck. So save those one-word responses for threads that have degenerated to the point where none but true aficionados are following them any more.
|
||||
<p>
|
||||
Or short: NO spamming
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
Refrain from quoting excessively. When quoting someone, use only the portion of the quote that is absolutely necessary. This includes quoting pictures!
|
||||
</li>
|
||||
<li>
|
||||
No posting of requests for serials or cracks. No links to warez or crack sites in the forums.
|
||||
</li>
|
||||
<li>
|
||||
No political or religious discussions. These types of discussions lead to arguments and flaming users, something that will not be tolerated. The only exception to this rule is The Library forum, which exists solely for the purpose of intellectual discussion and civilized debate.
|
||||
</li>
|
||||
<li>
|
||||
Don't waste other people's bandwidth by posting images of a large file size.
|
||||
</li>
|
||||
<li>
|
||||
Be patient with newcomers. Once you have become an expert, it is easy to forget that you started out as a newbie too.
|
||||
</li>
|
||||
<li>
|
||||
No requesting invites to any sites anywhere on the site or IRC. Invites may be <strong>offered</strong> in the invite forum, and nowhere else.
|
||||
</li>
|
||||
<li>
|
||||
No language other than English is permitted in the forums. If we can't understand it, we can't moderate it.
|
||||
</li>
|
||||
<li>
|
||||
Be cautious when posting mature content on the forums. All mature imagery must abide by <a href="wiki.php?action=article&id=1063">the rules found here</a>. Gratuitously sexual or violent content which falls outside of the allowable categories will result in a warning or worse.
|
||||
</li>
|
||||
<li>
|
||||
Mature content in posts must be properly tagged. The correct format is as follows: <strong>[mature=description] ...content... [/mature]</strong>, where "description" is a mandatory description of the post contents. Misleading or inadequate descriptions will be penalized.
|
||||
</li>
|
||||
<li>
|
||||
Threads created for the exclusive purpose of posting mature imagery will be trashed. Mature content (including graphic album art) should be contextually relevant to the thread and/or forum you're posting in. Mature content is only allowed in: The Lounge, The Lounge +1, The Library, Music, Power Users, Elite, Torrent Masters, VIPs, Comics, Contests & Designs, The Laboratory. If you are in doubt about a post's appropriateness, send a <a href="staffpm.php">Staff PM to the Forum Moderators</a> and wait for a reply before proceeding.
|
||||
</li>
|
||||
</ol>
|
||||
<?
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the site's rules for conversing on its IRC network
|
||||
*
|
||||
*/
|
||||
public static function display_irc_chat_rules() {
|
||||
?>
|
||||
<ul>
|
||||
<ol>
|
||||
<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>
|
||||
@ -75,7 +155,7 @@ public static function display_irc_chat_rules() {
|
||||
<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>
|
||||
</ol>
|
||||
<?
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ public static function quote_notify($Body, $PostID, $Page, $PageID) {
|
||||
(UserID, QuoterID, Page, PageID, PostID, Date)
|
||||
VALUES
|
||||
('$UserID', '$QuoterID', '$Page', '$PageID', '$PostID', '" . sqltime() . "')");
|
||||
G::$Cache->delete_value('notify_quoted_' . $UserID);
|
||||
G::$Cache->delete_value("notify_quoted_$UserID");
|
||||
|
||||
}
|
||||
G::$DB->set_query_id($QueryID);
|
||||
@ -80,14 +80,19 @@ public static function subscribe($TopicID, $UserID = 0) {
|
||||
$UserSubscriptions = self::get_subscriptions();
|
||||
$Key = self::has_subscribed($TopicID);
|
||||
if ($Key !== false) {
|
||||
G::$DB->query('DELETE FROM users_subscriptions WHERE UserID = ' . db_string($UserID) . ' AND TopicID = ' . db_string($TopicID));
|
||||
G::$DB->query('
|
||||
DELETE FROM users_subscriptions
|
||||
WHERE UserID = ' . db_string($UserID) . '
|
||||
AND TopicID = ' . db_string($TopicID));
|
||||
unset($UserSubscriptions[$Key]);
|
||||
} else {
|
||||
G::$DB->query("INSERT IGNORE INTO users_subscriptions (UserID, TopicID) VALUES ($UserID, " . db_string($TopicID) . ")");
|
||||
G::$DB->query("
|
||||
INSERT IGNORE INTO users_subscriptions (UserID, TopicID)
|
||||
VALUES ($UserID, " . db_string($TopicID) . ")");
|
||||
array_push($UserSubscriptions, $TopicID);
|
||||
}
|
||||
G::$Cache->replace_value('subscriptions_user_' . $UserID, $UserSubscriptions, 0);
|
||||
G::$Cache->delete_value('subscriptions_user_new_' . $UserID);
|
||||
G::$Cache->replace_value("subscriptions_user_$UserID", $UserSubscriptions, 0);
|
||||
G::$Cache->delete_value("subscriptions_user_new_$UserID");
|
||||
G::$DB->set_query_id($QueryID);
|
||||
}
|
||||
|
||||
@ -106,14 +111,22 @@ public static function subscribe_comments($Page, $PageID, $UserID = 0) {
|
||||
$UserCommentSubscriptions = self::get_comment_subscriptions();
|
||||
$Key = self::has_subscribed_comments($Page, $PageID);
|
||||
if ($Key !== false) {
|
||||
G::$DB->query("DELETE FROM users_subscriptions_comments WHERE UserID = " . db_string($UserID) . " AND Page = '" . db_string($Page) . "' AND PageID = " . db_string($PageID));
|
||||
G::$DB->query("
|
||||
DELETE FROM users_subscriptions_comments
|
||||
WHERE UserID = " . db_string($UserID) . "
|
||||
AND Page = '" . db_string($Page) . "'
|
||||
AND PageID = " . db_string($PageID));
|
||||
unset($UserCommentSubscriptions[$Key]);
|
||||
} else {
|
||||
G::$DB->query("INSERT IGNORE INTO users_subscriptions_comments (UserID, Page, PageID) VALUES ($UserID, '" . db_string($Page) . "', " . db_string($PageID) . ")");
|
||||
G::$DB->query("
|
||||
INSERT IGNORE INTO users_subscriptions_comments
|
||||
(UserID, Page, PageID)
|
||||
VALUES
|
||||
($UserID, '" . db_string($Page) . "', " . db_string($PageID) . ")");
|
||||
array_push($UserCommentSubscriptions, array($Page, $PageID));
|
||||
}
|
||||
G::$Cache->replace_value('subscriptions_comments_user_' . $UserID, $UserCommentSubscriptions, 0);
|
||||
G::$Cache->delete_value('subscriptions_comments_user_new_' . $UserID);
|
||||
G::$Cache->replace_value("subscriptions_comments_user_$UserID", $UserCommentSubscriptions, 0);
|
||||
G::$Cache->delete_value("subscriptions_comments_user_new_$UserID");
|
||||
G::$DB->set_query_id($QueryID);
|
||||
}
|
||||
|
||||
@ -128,11 +141,14 @@ public static function get_subscriptions($UserID = 0) {
|
||||
$UserID = G::$LoggedUser['ID'];
|
||||
}
|
||||
$QueryID = G::$DB->get_query_id();
|
||||
$UserSubscriptions = G::$Cache->get_value('subscriptions_user_' . $UserID);
|
||||
$UserSubscriptions = G::$Cache->get_value("subscriptions_user_$UserID");
|
||||
if ($UserSubscriptions === false) {
|
||||
G::$DB->query('SELECT TopicID FROM users_subscriptions WHERE UserID = ' . db_string($UserID));
|
||||
G::$DB->query('
|
||||
SELECT TopicID
|
||||
FROM users_subscriptions
|
||||
WHERE UserID = ' . db_string($UserID));
|
||||
$UserSubscriptions = G::$DB->collect(0);
|
||||
G::$Cache->cache_value('subscriptions_user_' . $UserID, $UserSubscriptions, 0);
|
||||
G::$Cache->cache_value("subscriptions_user_$UserID", $UserSubscriptions, 0);
|
||||
}
|
||||
G::$DB->set_query_id($QueryID);
|
||||
return $UserSubscriptions;
|
||||
@ -148,11 +164,14 @@ public static function get_comment_subscriptions($UserID = 0) {
|
||||
$UserID = G::$LoggedUser['ID'];
|
||||
}
|
||||
$QueryID = G::$DB->get_query_id();
|
||||
$UserCommentSubscriptions = G::$Cache->get_value('subscriptions_comments_user_' . $UserID);
|
||||
$UserCommentSubscriptions = G::$Cache->get_value("subscriptions_comments_user_$UserID");
|
||||
if ($UserCommentSubscriptions === false) {
|
||||
G::$DB->query('SELECT Page, PageID FROM users_subscriptions_comments WHERE UserID = ' . db_string($UserID));
|
||||
G::$DB->query('
|
||||
SELECT Page, PageID
|
||||
FROM users_subscriptions_comments
|
||||
WHERE UserID = ' . db_string($UserID));
|
||||
$UserCommentSubscriptions = G::$DB->to_array(false, MYSQLI_NUM);
|
||||
G::$Cache->cache_value('subscriptions_comments_user_' . $UserID, $UserCommentSubscriptions, 0);
|
||||
G::$Cache->cache_value("subscriptions_comments_user_$UserID", $UserCommentSubscriptions, 0);
|
||||
}
|
||||
G::$DB->set_query_id($QueryID);
|
||||
return $UserCommentSubscriptions;
|
||||
@ -168,7 +187,8 @@ public static function has_new_subscriptions() {
|
||||
$NewSubscriptions = G::$Cache->get_value('subscriptions_user_new_' . G::$LoggedUser['ID']);
|
||||
if ($NewSubscriptions === false) {
|
||||
// forum subscriptions
|
||||
G::$DB->query("SELECT COUNT(1)
|
||||
G::$DB->query("
|
||||
SELECT COUNT(1)
|
||||
FROM users_subscriptions AS s
|
||||
LEFT JOIN forums_last_read_topics AS l ON l.UserID = s.UserID AND l.TopicID = s.TopicID
|
||||
JOIN forums_topics AS t ON t.ID = s.TopicID
|
||||
@ -179,7 +199,8 @@ public static function has_new_subscriptions() {
|
||||
list($NewForumSubscriptions) = G::$DB->next_record();
|
||||
|
||||
// comment subscriptions
|
||||
G::$DB->query("SELECT COUNT(1)
|
||||
G::$DB->query("
|
||||
SELECT COUNT(1)
|
||||
FROM users_subscriptions_comments AS s
|
||||
LEFT JOIN users_comments_last_read AS lr ON lr.UserID = s.UserID AND lr.Page = s.Page AND lr.PageID = s.PageID
|
||||
LEFT JOIN comments AS c ON c.ID = (SELECT MAX(ID) FROM comments WHERE Page = s.Page AND PageID = s.PageID)
|
||||
@ -252,13 +273,20 @@ public static function has_subscribed_comments($Page, $PageID) {
|
||||
public static function flush_subscriptions($Page, $PageID) {
|
||||
$QueryID = G::$DB->get_query_id();
|
||||
if ($Page == 'forums') {
|
||||
G::$DB->query("SELECT UserID FROM users_subscriptions WHERE TopicID = '$PageID'");
|
||||
G::$DB->query("
|
||||
SELECT UserID
|
||||
FROM users_subscriptions
|
||||
WHERE TopicID = '$PageID'");
|
||||
} else {
|
||||
G::$DB->query("SELECT UserID FROM users_subscriptions_comments WHERE Page = '$Page' AND PageID = '$PageID'");
|
||||
G::$DB->query("
|
||||
SELECT UserID
|
||||
FROM users_subscriptions_comments
|
||||
WHERE Page = '$Page'
|
||||
AND PageID = '$PageID'");
|
||||
}
|
||||
$Subscribers = G::$DB->collect('UserID');
|
||||
foreach ($Subscribers as $Subscriber) {
|
||||
G::$Cache->delete_value('subscriptions_user_new_'.$Subscriber);
|
||||
G::$Cache->delete_value("subscriptions_user_new_$Subscriber");
|
||||
}
|
||||
G::$DB->set_query_id($QueryID);
|
||||
}
|
||||
@ -275,9 +303,15 @@ public static function move_subscriptions($Page, $OldPageID, $NewPageID) {
|
||||
$QueryID = G::$DB->get_query_id();
|
||||
if ($Page == 'forums') {
|
||||
if ($NewPageID !== null) {
|
||||
G::$DB->query("UPDATE IGNORE users_subscriptions SET TopicID = '$NewPageID' WHERE TopicID = '$OldPageID'");
|
||||
G::$DB->query("
|
||||
UPDATE IGNORE users_subscriptions
|
||||
SET TopicID = '$NewPageID'
|
||||
WHERE TopicID = '$OldPageID'");
|
||||
// explanation see below
|
||||
G::$DB->query("UPDATE IGNORE forums_last_read_topics SET TopicID = $NewPageID WHERE TopicID = $OldPageID");
|
||||
G::$DB->query("
|
||||
UPDATE IGNORE forums_last_read_topics
|
||||
SET TopicID = $NewPageID
|
||||
WHERE TopicID = $OldPageID");
|
||||
G::$DB->query("
|
||||
SELECT UserID, MIN(PostID)
|
||||
FROM forums_last_read_topics
|
||||
@ -286,17 +320,33 @@ public static function move_subscriptions($Page, $OldPageID, $NewPageID) {
|
||||
HAVING COUNT(1) = 2");
|
||||
$Results = G::$DB->to_array(false, MYSQLI_NUM);
|
||||
foreach ($Results as $Result) {
|
||||
G::$DB->query("UPDATE forums_last_read_topics SET PostID = $Result[1] WHERE TopicID = $NewPageID AND UserID = $Result[0]");
|
||||
G::$DB->query("
|
||||
UPDATE forums_last_read_topics
|
||||
SET PostID = $Result[1]
|
||||
WHERE TopicID = $NewPageID
|
||||
AND UserID = $Result[0]");
|
||||
}
|
||||
}
|
||||
G::$DB->query("DELETE FROM users_subscriptions WHERE TopicID = '$OldPageID'");
|
||||
G::$DB->query("DELETE FROM forums_last_read_topics WHERE TopicID = $OldPageID");
|
||||
G::$DB->query("
|
||||
DELETE FROM users_subscriptions
|
||||
WHERE TopicID = '$OldPageID'");
|
||||
G::$DB->query("
|
||||
DELETE FROM forums_last_read_topics
|
||||
WHERE TopicID = $OldPageID");
|
||||
} else {
|
||||
if ($NewPageID !== null) {
|
||||
G::$DB->query("UPDATE IGNORE users_subscriptions_comments SET PageID = '$NewPageID' WHERE Page = '$Page' AND PageID = '$OldPageID'");
|
||||
G::$DB->query("
|
||||
UPDATE IGNORE users_subscriptions_comments
|
||||
SET PageID = '$NewPageID'
|
||||
WHERE Page = '$Page'
|
||||
AND PageID = '$OldPageID'");
|
||||
// last read handling
|
||||
// 1) update all rows that have no key collisions (i.e. users that haven't previously read both pages or if there are only comments on one page)
|
||||
G::$DB->query("UPDATE IGNORE users_comments_last_read SET PageID = '$NewPageID' WHERE Page = '$Page' AND PageID = $OldPageID");
|
||||
G::$DB->query("
|
||||
UPDATE IGNORE users_comments_last_read
|
||||
SET PageID = '$NewPageID'
|
||||
WHERE Page = '$Page'
|
||||
AND PageID = $OldPageID");
|
||||
// 2) get all last read records with key collisions (i.e. there are records for one user for both PageIDs)
|
||||
G::$DB->query("
|
||||
SELECT UserID, MIN(PostID)
|
||||
@ -308,11 +358,22 @@ public static function move_subscriptions($Page, $OldPageID, $NewPageID) {
|
||||
$Results = G::$DB->to_array(false, MYSQLI_NUM);
|
||||
// 3) update rows for those people found in 2) to the earlier post
|
||||
foreach ($Results as $Result) {
|
||||
G::$DB->query("UPDATE users_comments_last_read SET PostID = $Result[1] WHERE Page = '$Page' AND PageID = $NewPageID AND UserID = $Result[0]");
|
||||
G::$DB->query("
|
||||
UPDATE users_comments_last_read
|
||||
SET PostID = $Result[1]
|
||||
WHERE Page = '$Page'
|
||||
AND PageID = $NewPageID
|
||||
AND UserID = $Result[0]");
|
||||
}
|
||||
}
|
||||
G::$DB->query("DELETE FROM users_subscriptions_comments WHERE Page = '$Page' AND PageID = '$OldPageID'");
|
||||
G::$DB->query("DELETE FROM users_comments_last_read WHERE Page = '$Page' AND PageID = '$OldPageID'");
|
||||
G::$DB->query("
|
||||
DELETE FROM users_subscriptions_comments
|
||||
WHERE Page = '$Page'
|
||||
AND PageID = '$OldPageID'");
|
||||
G::$DB->query("
|
||||
DELETE FROM users_comments_last_read
|
||||
WHERE Page = '$Page'
|
||||
AND PageID = '$OldPageID'");
|
||||
}
|
||||
G::$DB->set_query_id($QueryID);
|
||||
}
|
||||
@ -324,10 +385,14 @@ public static function move_subscriptions($Page, $OldPageID, $NewPageID) {
|
||||
*/
|
||||
public static function flush_quote_notifications($Page, $PageID) {
|
||||
$QueryID = G::$DB->get_query_id();
|
||||
G::$DB->query("SELECT UserID FROM users_notify_quoted WHERE Page = '$Page' AND PageID = $PageID");
|
||||
G::$DB->query("
|
||||
SELECT UserID
|
||||
FROM users_notify_quoted
|
||||
WHERE Page = '$Page'
|
||||
AND PageID = $PageID");
|
||||
$Subscribers = G::$DB->collect('UserID');
|
||||
foreach ($Subscribers as $Subscriber) {
|
||||
G::$Cache->delete_value('notify_quoted_'.$Subscriber);
|
||||
G::$Cache->delete_value("notify_quoted_$Subscriber");
|
||||
}
|
||||
G::$DB->set_query_id($QueryID);
|
||||
}
|
||||
|
@ -66,10 +66,10 @@
|
||||
WHERE ConvID = '$ConvID'
|
||||
AND UserID = '$UserID'");
|
||||
// Clear the caches of the inbox and sentbox
|
||||
$Cache->decrement('inbox_new_'.$UserID);
|
||||
$Cache->decrement("inbox_new_$UserID");
|
||||
}
|
||||
|
||||
View::show_header('View conversation '.$Subject, 'comments,inbox,bbcode,jquery.validate,form_validate');
|
||||
View::show_header("View conversation $Subject", 'comments,inbox,bbcode,jquery.validate,form_validate');
|
||||
|
||||
// Get messages
|
||||
$DB->query("
|
||||
@ -79,7 +79,7 @@
|
||||
ORDER BY ID");
|
||||
?>
|
||||
<div class="thin">
|
||||
<h2><?=$Subject.($ForwardedID > 0 ? ' (Forwarded to '.$ForwardedName.')' : '')?></h2>
|
||||
<h2><?=$Subject.($ForwardedID > 0 ? " (Forwarded to $ForwardedName)" : '')?></h2>
|
||||
<div class="linkbox">
|
||||
<a href="<?=Inbox::get_inbox_link(); ?>" class="brackets">Back to inbox</a>
|
||||
</div>
|
||||
@ -117,7 +117,7 @@
|
||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||
<input type="hidden" name="toid" value="<?=implode(',', $ReceiverIDs)?>" />
|
||||
<input type="hidden" name="convid" value="<?=$ConvID?>" />
|
||||
<textarea id="quickpost" class="required" name="body" cols="90" rows="10" onkeyup="resize('quickpost')"></textarea> <br />
|
||||
<textarea id="quickpost" class="required" name="body" cols="90" rows="10" onkeyup="resize('quickpost');"></textarea> <br />
|
||||
<div id="preview" class="box vertical_space body hidden"></div>
|
||||
<div id="buttons" class="center">
|
||||
<input type="button" value="Preview" onclick="Quick_Preview();" />
|
||||
|
@ -601,7 +601,7 @@
|
||||
<?
|
||||
$TagList = array();
|
||||
foreach ($Request['Tags'] as $TagID => $TagName) {
|
||||
$TagList[] = '<a href="?tags=$TagName' . ($BookmarkView ? '&type=requests' : '') . '">' . display_str($TagName) . '</a>';
|
||||
$TagList[] = '<a href="?tags='.$TagName.($BookmarkView ? '&type=requests' : '').'">'.display_str($TagName).'</a>';
|
||||
}
|
||||
$TagList = implode(', ', $TagList);
|
||||
?>
|
||||
|
@ -10,77 +10,7 @@
|
||||
<br />
|
||||
<h3 id="forums">Forum Rules</h3>
|
||||
<div class="box pad rule_summary" style="padding: 10px 10px 10px 20px;">
|
||||
<ul>
|
||||
<li>
|
||||
Many forums (Tutorials, The Library, etc.) have their own set of rules. Make sure you read and take note of these rules before you attempt to post in one of these forums.
|
||||
</li>
|
||||
<li>
|
||||
Don't use all capital letters, excessive !!! (exclamation marks) or ??? (question marks). It seems like you're shouting!
|
||||
</li>
|
||||
<li>
|
||||
No lame referral schemes. This includes freeipods.com, freepsps.com, or any other similar scheme in which the poster gets personal gain from users clicking a link.
|
||||
</li>
|
||||
<li>
|
||||
No asking for money for any reason whatsoever. We don't know or care about your friend who lost everything, or dying relative who wants to enjoy their last few moments alive by being given lots of money.
|
||||
</li>
|
||||
<li>
|
||||
Do not inappropriately advertise your uploads. In special cases, it is acceptable to mention new uploads in an approved thread (e.g. <a href="forums.php?action=viewthread&threadid=133982">New Users — We'll Snatch Your First 100% FLAC</a>), but be sure to carefully read the thread's rules before posting. It is also acceptable to discuss releases you have uploaded when conversing about the music itself. Blatant attempts to advertise your uploads outside of the appropriate forums or threads may result in a warning or the loss of forum privileges.
|
||||
</li>
|
||||
<li>
|
||||
No posting music requests in forums. There's a request link at the top of the page; please use that instead.
|
||||
</li>
|
||||
<li>
|
||||
No flaming; be pleasant and polite. Don't use offensive language, and don't be confrontational for the sake of confrontation.
|
||||
</li>
|
||||
<li>
|
||||
Don't point out or attack other members' share ratios. A higher ratio does not make you better than someone else.
|
||||
</li>
|
||||
<li>
|
||||
Try not to ask stupid questions. A stupid question is one that you could have found the answer to yourself with a little research, or one that you're asking in the wrong place. If you do the basic research suggested (i.e., read the rules/wiki) or search the forums and don't find the answer to your question, then go ahead and ask. Staff and First Line Support (FLS) are not here to hand-feed you the answers you could have found on your own with a little bit of effort.
|
||||
</li>
|
||||
<li>
|
||||
Be sure you read all the sticky threads in a forum before you post.
|
||||
</li>
|
||||
<li>
|
||||
Use descriptive and specific subject lines. This helps others decide whether your particular words of wisdom relate to a topic they care about.
|
||||
</li>
|
||||
<li>
|
||||
Try not to post comments that don't add anything to the discussion. When you're just cruising through a thread in a leisurely manner, it's not too annoying to read through a lot of "hear, hear"'s and "I agree"'s. But if you're actually trying to find information, it's a pain in the neck. So save those one-word responses for threads that have degenerated to the point where none but true aficionados are following them any more.
|
||||
<p>
|
||||
Or short: NO spamming
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
Refrain from quoting excessively. When quoting someone, use only the portion of the quote that is absolutely necessary. This includes quoting pictures!
|
||||
</li>
|
||||
<li>
|
||||
No posting of requests for serials or cracks. No links to warez or crack sites in the forums.
|
||||
</li>
|
||||
<li>
|
||||
No political or religious discussions. These types of discussions lead to arguments and flaming users, something that will not be tolerated. The only exception to this rule is The Library forum, which exists solely for the purpose of intellectual discussion and civilized debate.
|
||||
</li>
|
||||
<li>
|
||||
Don't waste other people's bandwidth by posting images of a large file size.
|
||||
</li>
|
||||
<li>
|
||||
Be patient with newcomers. Once you have become an expert, it is easy to forget that you started out as a newbie too.
|
||||
</li>
|
||||
<li>
|
||||
No requesting invites to any sites anywhere on the site or IRC. Invites may be <strong>offered</strong> in the invite forum, and nowhere else.
|
||||
</li>
|
||||
<li>
|
||||
No language other than English is permitted in the forums. If we can't understand it, we can't moderate it.
|
||||
</li>
|
||||
<li>
|
||||
Be cautious when posting mature content on the forums. All mature imagery must abide by <a href="wiki.php?action=article&id=1063">the rules found here</a>. Gratuitously sexual or violent content which falls outside of the allowable categories will result in a warning or worse.
|
||||
</li>
|
||||
<li>
|
||||
Mature content in posts must be properly tagged. The correct format is as follows: <strong>[mature=description] ...content... [/mature]</strong>, where "description" is a mandatory description of the post contents. Misleading or inadequate descriptions will be penalized.
|
||||
</li>
|
||||
<li>
|
||||
Threads created for the exclusive purpose of posting mature imagery will be trashed. Mature content (including graphic album art) should be contextually relevant to the thread and/or forum you're posting in. Mature content is only allowed in: The Lounge, The Lounge +1, The Library, Music, Power Users, Elite, Torrent Masters, VIPs, Comics, Contests & Designs, The Laboratory. If you are in doubt about a post's appropriateness, send a <a href="staffpm.php">Staff PM to the Forum Moderators</a> and wait for a reply before proceeding.
|
||||
</li>
|
||||
</ul>
|
||||
<? Rules::display_forum_rules() ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Forum Rules -->
|
||||
|
@ -185,6 +185,7 @@
|
||||
</ul>
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
<? include('jump.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,16 +1,4 @@
|
||||
$(document).ready(function() {
|
||||
$('.tooltip_interactive').tooltipster({
|
||||
interactive: true,
|
||||
interactiveTolerance: 500,
|
||||
delay: 100,
|
||||
maxWidth : 400
|
||||
});
|
||||
|
||||
$('.tooltip').tooltipster({
|
||||
delay: 100,
|
||||
maxWidth : 400
|
||||
});
|
||||
|
||||
var month = $("#month").val();
|
||||
var year = $("#year").val();
|
||||
$(".event_day, .day-number").click(function(e) {
|
||||
|
Loading…
Reference in New Issue
Block a user