Empty commit

This commit is contained in:
Git 2013-12-01 08:00:44 +00:00
parent 818a33727c
commit 46d993e46b
10 changed files with 82 additions and 57 deletions

View File

@ -1,5 +1,11 @@
CHANGE LOG CHANGE LOG
2013-12-01 by alderaan
Fix some CSS issues in the forum search category list for Anorex, Layer Cake, Kuro, and Whatnificent
2013-11-30 by alderaan
For staff notes, wrap custom titles in [code] BBcode tags
2013-11-25 by alderaan 2013-11-25 by alderaan
Add a [Check private flag] button for torrents. Uncomment its HTML to use it. Note: Torrent files must be encoded in a certain way in the DB for this to work. Add a [Check private flag] button for torrents. Uncomment its HTML to use it. Note: Torrent files must be encoded in a certain way in the DB for this to work.

View File

@ -370,11 +370,11 @@
$TopicNotes[] = "Ranking changed from \"$OldRanking\" to \"$Ranking\""; $TopicNotes[] = "Ranking changed from \"$OldRanking\" to \"$Ranking\"";
} }
if ($ForumID != $OldForumID) { if ($ForumID != $OldForumID) {
$TopicNotes[] = "Moved from [url=https://" . SSL_SITE_URL . "/forums.php?action=viewforum&forumid=$OldForumID]${OldForumName}[/url] to [url=https://" . SSL_SITE_URL . "/forums.php?action=viewforum&forumid=$ForumID]${ForumName}[/url]"; $TopicNotes[] = "Moved from [url=" . site_url() . "forums.php?action=viewforum&forumid=$OldForumID]{$OldForumName}[/url] to [url=" . site_url() . "forums.php?action=viewforum&forumid=$ForumID]{$ForumName}[/url]";
} }
break; break;
case 'trashing': case 'trashing':
$TopicNotes[] = "Trashed (moved from [url=https://" . SSL_SITE_URL . "/forums.php?action=viewforum&forumid=$OldForumID]${OldForumName}[/url] to [url=https://" . SSL_SITE_URL . "/forums.php?action=viewforum&forumid=$ForumID]${ForumName}[/url])"; $TopicNotes[] = "Trashed (moved from [url=" . site_url() . "forums.php?action=viewforum&forumid=$OldForumID]{$OldForumName}[/url] to [url=" . site_url() . "forums.php?action=viewforum&forumid=$ForumID]{$ForumName}[/url])";
$Notification = "Your thread \"$NewLastTitle\" has been trashed"; $Notification = "Your thread \"$NewLastTitle\" has been trashed";
break; break;
default: default:

View File

@ -8,11 +8,10 @@
list($Page, $Limit) = Format::page_limit(POSTS_PER_PAGE); list($Page, $Limit) = Format::page_limit(POSTS_PER_PAGE);
if ((isset($_GET['type']) && $_GET['type'] == 'body')) { if (isset($_GET['type']) && $_GET['type'] === 'body') {
$Type = 'body'; $Type = 'body';
} else { } else {
$Type = 'title'; $Type = 'title';
} }
// What are we looking for? Let's make sure it isn't dangerous. // What are we looking for? Let's make sure it isn't dangerous.
@ -24,8 +23,8 @@
$ThreadAfterDate = db_string($_GET['thread_created_after']); $ThreadAfterDate = db_string($_GET['thread_created_after']);
$ThreadBeforeDate = db_string($_GET['thread_created_before']); $ThreadBeforeDate = db_string($_GET['thread_created_before']);
$ThreadAfterDateDisplay = ""; $ThreadAfterDateDisplay = '';
$ThreadBeforeDateDisplay = ""; $ThreadBeforeDateDisplay = '';
if (!empty($ThreadAfterDate) && !is_date($ThreadAfterDate)) { if (!empty($ThreadAfterDate) && !is_date($ThreadAfterDate)) {
error('Incorrect topic after date format'); error('Incorrect topic after date format');
@ -40,8 +39,8 @@
$PostAfterDate = db_string($_GET['post_created_after']); $PostAfterDate = db_string($_GET['post_created_after']);
$PostBeforeDate = db_string($_GET['post_created_before']); $PostBeforeDate = db_string($_GET['post_created_before']);
$PostAfterDateDisplay = ""; $PostAfterDateDisplay = '';
$PostBeforeDateDisplay = ""; $PostBeforeDateDisplay = '';
if (!empty($PostAfterDate) && !is_date($PostAfterDate)) { if (!empty($PostAfterDate) && !is_date($PostAfterDate)) {
error('Incorrect post after date format'); error('Incorrect post after date format');
@ -139,7 +138,8 @@
</td> </td>
</tr> </tr>
<? <?
if (empty($ThreadID)) { ?> if (empty($ThreadID)) {
?>
<tr> <tr>
<td><strong>Search in:</strong></td> <td><strong>Search in:</strong></td>
<td> <td>
@ -161,10 +161,11 @@
<tr> <tr>
<td><strong>Forums:</strong></td> <td><strong>Forums:</strong></td>
<td> <td>
<table class="cat_list layout"> <table id="forum_search_cat_list" class="cat_list layout">
<? // List of forums <?
// List of forums
$Open = false; $Open = false;
$LastCategoryID = -1; $LastCategoryID = -1;
$Columns = 0; $Columns = 0;

View File

@ -126,7 +126,7 @@
$Cache->cache_value("polls_$TopicID", array($Question, $Answers, $Votes, '0000-00-00 00:00:00', '0'), 0); $Cache->cache_value("polls_$TopicID", array($Question, $Answers, $Votes, '0000-00-00 00:00:00', '0'), 0);
if ($ForumID == STAFF_FORUM) { if ($ForumID == STAFF_FORUM) {
send_irc('PRIVMSG '.ADMIN_CHAN.' :!mod Poll created by '.$LoggedUser['Username'].": \"$Question\" https://".SSL_SITE_URL."/forums.php?action=viewthread&threadid=$TopicID"); send_irc('PRIVMSG '.ADMIN_CHAN.' :!mod Poll created by '.$LoggedUser['Username'].": \"$Question\" ".site_url()."forums.php?action=viewthread&threadid=$TopicID");
} }
} }

View File

@ -75,10 +75,10 @@
// Send a PM to the user to notify them of the edit // Send a PM to the user to notify them of the edit
if ($UserID != $AuthorID && $DoPM) { if ($UserID != $AuthorID && $DoPM) {
$PMSubject = 'Your post #'.$PostID.' has been edited'; $PMSubject = "Your post #$PostID has been edited";
$PMurl = 'https://'.SSL_SITE_URL.'/forums.php?action=viewthread&postid='.$PostID.'#post'.$PostID; $PMurl = site_url()."forums.php?action=viewthread&postid=$PostID#post$PostID";
$ProfLink = '[url=https://'.SSL_SITE_URL.'/user.php?id='.$UserID.']'.$LoggedUser['Username'].'[/url]'; $ProfLink = '[url='.site_url()."user.php?id=$UserID]".$LoggedUser['Username'].'[/url]';
$PMBody = 'One of your posts has been edited by '.$ProfLink.': [url]'.$PMurl.'[/url]'; $PMBody = "One of your posts has been edited by $ProfLink: [url]{$PMurl}[/url]";
Misc::send_pm($AuthorID, 0, $PMSubject, $PMBody); Misc::send_pm($AuthorID, 0, $PMSubject, $PMBody);
} }

View File

@ -23,10 +23,13 @@
$UserIDs[] = $UserID; $UserIDs[] = $UserID;
} }
if (!empty($Cond)) { if (!empty($Cond)) {
$Query = "UPDATE users_freeleeches SET Expired=TRUE WHERE ".implode(" OR ", $Cond); $Query = "
UPDATE users_freeleeches
SET Expired = TRUE
WHERE ".implode(" OR ", $Cond);
$DB->query($Query); $DB->query($Query);
foreach ($UserIDs as $UserID) { foreach ($UserIDs as $UserID) {
$Cache->delete_value('users_tokens_'.$UserID); $Cache->delete_value("users_tokens_$UserID");
} }
} }
} else { } else {
@ -35,10 +38,13 @@
if (!is_number($TorrentID) || !is_number($UserID)) { if (!is_number($TorrentID) || !is_number($UserID)) {
error(403); error(403);
} }
$DB->query("UPDATE users_freeleeches SET Expired=TRUE WHERE UserID=$UserID AND TorrentID=$TorrentID"); $DB->query("
$Cache->delete_value('users_tokens_'.$UserID); UPDATE users_freeleeches
SET Expired = TRUE
WHERE UserID = $UserID
AND TorrentID = $TorrentID");
$Cache->delete_value("users_tokens_$UserID");
} }
break; break;
} }
?> ?>

View File

@ -364,7 +364,7 @@
die(); die();
} else { } else {
$UpdateSet[] = "Title = '$Title'"; $UpdateSet[] = "Title = '$Title'";
$EditSummary[] = "title changed to $Title"; $EditSummary[] = "title changed to [code]{$Title}[/code]";
$LightUpdates['Title'] = $_POST['Title']; $LightUpdates['Title'] = $_POST['Title'];
} }
} }

View File

@ -886,3 +886,7 @@ div.sidebar #event_div {
ol { ol {
margin-left: 1em; margin-left: 1em;
} }
#forum_search_cat_list {
border: none;
}

View File

@ -938,3 +938,7 @@ div.sidebar #event_div {
ol { ol {
margin-left: 1em; margin-left: 1em;
} }
#forum_search_cat_list, #forum_search_cat_list tr {
border: none;
}

View File

@ -849,3 +849,7 @@ div.sidebar #event_div {
ol { ol {
margin-left: 1em; margin-left: 1em;
} }
#forum_search_cat_list {
border: none;
}