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
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
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\"";
}
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;
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";
break;
default:

View File

@ -8,11 +8,10 @@
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';
} else {
$Type = 'title';
}
// What are we looking for? Let's make sure it isn't dangerous.
@ -24,8 +23,8 @@
$ThreadAfterDate = db_string($_GET['thread_created_after']);
$ThreadBeforeDate = db_string($_GET['thread_created_before']);
$ThreadAfterDateDisplay = "";
$ThreadBeforeDateDisplay = "";
$ThreadAfterDateDisplay = '';
$ThreadBeforeDateDisplay = '';
if (!empty($ThreadAfterDate) && !is_date($ThreadAfterDate)) {
error('Incorrect topic after date format');
@ -40,8 +39,8 @@
$PostAfterDate = db_string($_GET['post_created_after']);
$PostBeforeDate = db_string($_GET['post_created_before']);
$PostAfterDateDisplay = "";
$PostBeforeDateDisplay = "";
$PostAfterDateDisplay = '';
$PostBeforeDateDisplay = '';
if (!empty($PostAfterDate) && !is_date($PostAfterDate)) {
error('Incorrect post after date format');
@ -139,7 +138,8 @@
</td>
</tr>
<?
if (empty($ThreadID)) { ?>
if (empty($ThreadID)) {
?>
<tr>
<td><strong>Search in:</strong></td>
<td>
@ -161,10 +161,11 @@
<tr>
<td><strong>Forums:</strong></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;
$LastCategoryID = -1;
$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);
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
if ($UserID != $AuthorID && $DoPM) {
$PMSubject = 'Your post #'.$PostID.' has been edited';
$PMurl = 'https://'.SSL_SITE_URL.'/forums.php?action=viewthread&postid='.$PostID.'#post'.$PostID;
$ProfLink = '[url=https://'.SSL_SITE_URL.'/user.php?id='.$UserID.']'.$LoggedUser['Username'].'[/url]';
$PMBody = 'One of your posts has been edited by '.$ProfLink.': [url]'.$PMurl.'[/url]';
$PMSubject = "Your post #$PostID has been edited";
$PMurl = site_url()."forums.php?action=viewthread&postid=$PostID#post$PostID";
$ProfLink = '[url='.site_url()."user.php?id=$UserID]".$LoggedUser['Username'].'[/url]';
$PMBody = "One of your posts has been edited by $ProfLink: [url]{$PMurl}[/url]";
Misc::send_pm($AuthorID, 0, $PMSubject, $PMBody);
}

View File

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

View File

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

View File

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

View File

@ -938,3 +938,7 @@ div.sidebar #event_div {
ol {
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 {
margin-left: 1em;
}
#forum_search_cat_list {
border: none;
}