Empty commit

This commit is contained in:
Git 2013-12-28 08:01:02 +00:00
parent efe5f9d750
commit 44f05430fc
4 changed files with 22 additions and 14 deletions

View File

@ -1,5 +1,14 @@
CHANGE LOG
2013-12-28 by alderaan
Require the Text class in sections/feeds/index.php to fix broken RSS feeds.
2013-12-28 by alderaan
Append "(this session)" to the "Up" column on torrent group peer lists
2013-12-28 by alderaan
Fix display of bidirectional text (mixed LTR/RTL) for torrent group/artist names in the heading on torrent group pages.
2013-12-25 by Ajax
Custom date input for manual additions to the changelog

View File

@ -10,9 +10,9 @@
|| empty($_GET['passkey'])
|| empty($_GET['user'])
|| !is_number($_GET['user'])
|| strlen($_GET['authkey']) != 32
|| strlen($_GET['passkey']) != 32
|| strlen($_GET['auth']) != 32
|| strlen($_GET['authkey']) !== 32
|| strlen($_GET['passkey']) !== 32
|| strlen($_GET['auth']) !== 32
) {
$Feed->open_feed();
$Feed->channel('Blocked', 'RSS feed.');
@ -22,9 +22,9 @@
$User = (int)$_GET['user'];
if (!$Enabled = $Cache->get_value('enabled_'.$User)) {
if (!$Enabled = $Cache->get_value("enabled_$User")) {
require(SERVER_ROOT.'/classes/mysql.class.php');
$DB=NEW DB_MYSQL; //Load the database wrapper
$DB = NEW DB_MYSQL; //Load the database wrapper
$DB->query("
SELECT Enabled
FROM users_main
@ -33,22 +33,21 @@
$Cache->cache_value("enabled_$User", $Enabled, 0);
}
if (md5($User.RSS_HASH.$_GET['passkey']) != $_GET['auth'] || $Enabled != 1) {
if (md5($User.RSS_HASH.$_GET['passkey']) !== $_GET['auth'] || $Enabled != 1) {
$Feed->open_feed();
$Feed->channel('Blocked', 'RSS feed.');
$Feed->close_feed();
die();
}
require(SERVER_ROOT.'/classes/text.class.php');
$Feed->open_feed();
switch ($_GET['feed']) {
case 'feed_news':
$Feed->channel('News', 'RSS feed for site news.');
if (!$News = $Cache->get_value('news')) {
require(SERVER_ROOT.'/classes/mysql.class.php'); //Require the database wrapper
$DB=NEW DB_MYSQL; //Load the database wrapper
$DB = NEW DB_MYSQL; //Load the database wrapper
$DB->query("
SELECT
ID,
@ -63,7 +62,7 @@
}
$Count = 0;
foreach ($News as $NewsItem) {
list($NewsID,$Title,$Body,$NewsTime) = $NewsItem;
list($NewsID, $Title, $Body, $NewsTime) = $NewsItem;
if (strtotime($NewsTime) >= time()) {
continue;
}
@ -96,7 +95,7 @@
foreach ($Blog as $BlogItem) {
list($BlogID, $Author, $Title, $Body, $BlogTime, $ThreadID) = $BlogItem;
if ($ThreadID) {
echo $Feed->item($Title, Text::strip_bbcode($Body), 'forums.php?action=viewthread&threadid='.$ThreadID, SITE_NAME.' Staff', '', '', $BlogTime);
echo $Feed->item($Title, Text::strip_bbcode($Body), "forums.php?action=viewthread&threadid=$ThreadID", SITE_NAME.' Staff', '', '', $BlogTime);
} else {
echo $Feed->item($Title, Text::strip_bbcode($Body), "blog.php#blog$BlogID", SITE_NAME.' Staff', '', '', $BlogTime);
}

View File

@ -25,7 +25,7 @@ function compare($X, $Y) {
$GroupTime, $GroupVanityHouse, $TorrentTags, $TorrentTagIDs, $TorrentTagUserIDs,
$TagPositiveVotes, $TagNegativeVotes, $GroupFlags) = array_values($TorrentDetails);
$DisplayName = $GroupName;
$DisplayName = "<span dir=\"ltr\">$GroupName</span>";
$AltName = $GroupName; // Goes in the alt text of the image
$Title = $GroupName; // goes in <title>
$WikiBody = Text::full_format($WikiBody);
@ -33,7 +33,7 @@ function compare($X, $Y) {
$Artists = Artists::get_artist($GroupID);
if ($Artists) {
$DisplayName = '<span dir="ltr">'.Artists::display_artists($Artists, true) . "$DisplayName</span>";
$DisplayName = Artists::display_artists($Artists, true) . "$DisplayName";
$AltName = display_str(Artists::display_artists($Artists, false)) . $AltName;
$Title = $AltName;
}

View File

@ -44,7 +44,7 @@
<td>User</td>
<td>Active</td>
<td>Connectable</td>
<td class="number_column">Up</td>
<td class="number_column">Up (this session)</td>
<td class="number_column">%</td>
<td>Client</td>
</tr>