mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
Empty commit
This commit is contained in:
parent
efe5f9d750
commit
44f05430fc
@ -1,5 +1,14 @@
|
|||||||
CHANGE LOG
|
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
|
2013-12-25 by Ajax
|
||||||
Custom date input for manual additions to the changelog
|
Custom date input for manual additions to the changelog
|
||||||
|
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
|| empty($_GET['passkey'])
|
|| empty($_GET['passkey'])
|
||||||
|| empty($_GET['user'])
|
|| empty($_GET['user'])
|
||||||
|| !is_number($_GET['user'])
|
|| !is_number($_GET['user'])
|
||||||
|| strlen($_GET['authkey']) != 32
|
|| strlen($_GET['authkey']) !== 32
|
||||||
|| strlen($_GET['passkey']) != 32
|
|| strlen($_GET['passkey']) !== 32
|
||||||
|| strlen($_GET['auth']) != 32
|
|| strlen($_GET['auth']) !== 32
|
||||||
) {
|
) {
|
||||||
$Feed->open_feed();
|
$Feed->open_feed();
|
||||||
$Feed->channel('Blocked', 'RSS feed.');
|
$Feed->channel('Blocked', 'RSS feed.');
|
||||||
@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
$User = (int)$_GET['user'];
|
$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');
|
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("
|
$DB->query("
|
||||||
SELECT Enabled
|
SELECT Enabled
|
||||||
FROM users_main
|
FROM users_main
|
||||||
@ -33,22 +33,21 @@
|
|||||||
$Cache->cache_value("enabled_$User", $Enabled, 0);
|
$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->open_feed();
|
||||||
$Feed->channel('Blocked', 'RSS feed.');
|
$Feed->channel('Blocked', 'RSS feed.');
|
||||||
|
|
||||||
|
|
||||||
$Feed->close_feed();
|
$Feed->close_feed();
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require(SERVER_ROOT.'/classes/text.class.php');
|
||||||
$Feed->open_feed();
|
$Feed->open_feed();
|
||||||
switch ($_GET['feed']) {
|
switch ($_GET['feed']) {
|
||||||
case 'feed_news':
|
case 'feed_news':
|
||||||
$Feed->channel('News', 'RSS feed for site news.');
|
$Feed->channel('News', 'RSS feed for site news.');
|
||||||
if (!$News = $Cache->get_value('news')) {
|
if (!$News = $Cache->get_value('news')) {
|
||||||
require(SERVER_ROOT.'/classes/mysql.class.php'); //Require the database wrapper
|
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("
|
$DB->query("
|
||||||
SELECT
|
SELECT
|
||||||
ID,
|
ID,
|
||||||
@ -63,7 +62,7 @@
|
|||||||
}
|
}
|
||||||
$Count = 0;
|
$Count = 0;
|
||||||
foreach ($News as $NewsItem) {
|
foreach ($News as $NewsItem) {
|
||||||
list($NewsID,$Title,$Body,$NewsTime) = $NewsItem;
|
list($NewsID, $Title, $Body, $NewsTime) = $NewsItem;
|
||||||
if (strtotime($NewsTime) >= time()) {
|
if (strtotime($NewsTime) >= time()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -96,7 +95,7 @@
|
|||||||
foreach ($Blog as $BlogItem) {
|
foreach ($Blog as $BlogItem) {
|
||||||
list($BlogID, $Author, $Title, $Body, $BlogTime, $ThreadID) = $BlogItem;
|
list($BlogID, $Author, $Title, $Body, $BlogTime, $ThreadID) = $BlogItem;
|
||||||
if ($ThreadID) {
|
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 {
|
} else {
|
||||||
echo $Feed->item($Title, Text::strip_bbcode($Body), "blog.php#blog$BlogID", SITE_NAME.' Staff', '', '', $BlogTime);
|
echo $Feed->item($Title, Text::strip_bbcode($Body), "blog.php#blog$BlogID", SITE_NAME.' Staff', '', '', $BlogTime);
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ function compare($X, $Y) {
|
|||||||
$GroupTime, $GroupVanityHouse, $TorrentTags, $TorrentTagIDs, $TorrentTagUserIDs,
|
$GroupTime, $GroupVanityHouse, $TorrentTags, $TorrentTagIDs, $TorrentTagUserIDs,
|
||||||
$TagPositiveVotes, $TagNegativeVotes, $GroupFlags) = array_values($TorrentDetails);
|
$TagPositiveVotes, $TagNegativeVotes, $GroupFlags) = array_values($TorrentDetails);
|
||||||
|
|
||||||
$DisplayName = $GroupName;
|
$DisplayName = "<span dir=\"ltr\">$GroupName</span>";
|
||||||
$AltName = $GroupName; // Goes in the alt text of the image
|
$AltName = $GroupName; // Goes in the alt text of the image
|
||||||
$Title = $GroupName; // goes in <title>
|
$Title = $GroupName; // goes in <title>
|
||||||
$WikiBody = Text::full_format($WikiBody);
|
$WikiBody = Text::full_format($WikiBody);
|
||||||
@ -33,7 +33,7 @@ function compare($X, $Y) {
|
|||||||
$Artists = Artists::get_artist($GroupID);
|
$Artists = Artists::get_artist($GroupID);
|
||||||
|
|
||||||
if ($Artists) {
|
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;
|
$AltName = display_str(Artists::display_artists($Artists, false)) . $AltName;
|
||||||
$Title = $AltName;
|
$Title = $AltName;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<td>User</td>
|
<td>User</td>
|
||||||
<td>Active</td>
|
<td>Active</td>
|
||||||
<td>Connectable</td>
|
<td>Connectable</td>
|
||||||
<td class="number_column">Up</td>
|
<td class="number_column">Up (this session)</td>
|
||||||
<td class="number_column">%</td>
|
<td class="number_column">%</td>
|
||||||
<td>Client</td>
|
<td>Client</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user