summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit <git@what.cd>2013-12-28 08:01:02 +0000
committerGit <git@what.cd>2013-12-28 08:01:02 +0000
commit44f05430fce417d93f1039ca272e38e91f9bcbc8 (patch)
tree54faae713c4497e2b8032abf0c18a207317721ad
parentefe5f9d750b6236e21636f4727ad0a5b67edff39 (diff)
downloadGazelle-44f05430fce417d93f1039ca272e38e91f9bcbc8.zip
Gazelle-44f05430fce417d93f1039ca272e38e91f9bcbc8.tar.gz
Gazelle-44f05430fce417d93f1039ca272e38e91f9bcbc8.tar.bz2
Empty commit
-rw-r--r--docs/CHANGES.txt9
-rw-r--r--sections/feeds/index.php21
-rw-r--r--sections/torrents/details.php4
-rw-r--r--sections/torrents/peerlist.php2
4 files changed, 22 insertions, 14 deletions
diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt
index 3b1813b..e9b2461 100644
--- a/docs/CHANGES.txt
+++ b/docs/CHANGES.txt
@@ -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
diff --git a/sections/feeds/index.php b/sections/feeds/index.php
index 2d772da..81a6db5 100644
--- a/sections/feeds/index.php
+++ b/sections/feeds/index.php
@@ -10,9 +10,9 @@ if (
|| 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 @@ if (
$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 @@ if (!$Enabled = $Cache->get_value('enabled_'.$User)) {
$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 @@ switch ($_GET['feed']) {
}
$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 @@ switch ($_GET['feed']) {
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&amp;threadid='.$ThreadID, SITE_NAME.' Staff', '', '', $BlogTime);
+ echo $Feed->item($Title, Text::strip_bbcode($Body), "forums.php?action=viewthread&amp;threadid=$ThreadID", SITE_NAME.' Staff', '', '', $BlogTime);
} else {
echo $Feed->item($Title, Text::strip_bbcode($Body), "blog.php#blog$BlogID", SITE_NAME.' Staff', '', '', $BlogTime);
}
diff --git a/sections/torrents/details.php b/sections/torrents/details.php
index 238de1e..264054d 100644
--- a/sections/torrents/details.php
+++ b/sections/torrents/details.php
@@ -25,7 +25,7 @@ list($WikiBody, $WikiImage, $GroupID, $GroupName, $GroupYear,
$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 @@ $WikiBody = Text::full_format($WikiBody);
$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;
}
diff --git a/sections/torrents/peerlist.php b/sections/torrents/peerlist.php
index 2988ec7..7082cfa 100644
--- a/sections/torrents/peerlist.php
+++ b/sections/torrents/peerlist.php
@@ -44,7 +44,7 @@ $DB->set_query_id($Result);
<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>