mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
b8d11cc6b0
commit
2ce7e0cae9
@ -50,7 +50,11 @@
|
||||
$Forum = $DB->to_array('ID',MYSQLI_ASSOC, false);
|
||||
|
||||
if ($Page == 1) {
|
||||
$DB->query("SELECT COUNT(ID) FROM forums_topics WHERE ForumID='$ForumID' AND IsSticky='1'");
|
||||
$DB->query("
|
||||
SELECT COUNT(ID)
|
||||
FROM forums_topics
|
||||
WHERE ForumID='$ForumID'
|
||||
AND IsSticky='1'");
|
||||
list($Stickies) = $DB->next_record();
|
||||
$Cache->cache_value('forums_'.$ForumID, array($Forum,'',0,$Stickies), 0);
|
||||
}
|
||||
@ -123,7 +127,11 @@
|
||||
<?
|
||||
/*
|
||||
if (check_perms('users_mod')) {
|
||||
$DB->query("SELECT ForumID from subscribed_forums WHERE ForumID='$ForumID' AND SubscriberID='$LoggedUser[ID]'");
|
||||
$DB->query("
|
||||
SELECT ForumID
|
||||
FROM subscribed_forums
|
||||
WHERE ForumID='$ForumID'
|
||||
AND SubscriberID='$LoggedUser[ID]'");
|
||||
if ($DB->record_count() == 0) { ?>
|
||||
<a href="forums.php?action=forum_subscribe&perform=add&forumid=<?=$ForumID?>&auth=<?=$LoggedUser['AuthKey']?>" class="brackets">Subscribe to forum</a>
|
||||
<? } else { ?>
|
||||
@ -199,7 +207,7 @@
|
||||
$Row = 'a';
|
||||
foreach ($Forum as $Topic) {
|
||||
list($TopicID, $Title, $AuthorID, $Locked, $Sticky, $PostCount, $LastID, $LastTime, $LastAuthorID) = array_values($Topic);
|
||||
$Row = ($Row == 'a') ? 'b' : 'a';
|
||||
$Row = (($Row == 'a') ? 'b' : 'a');
|
||||
// Build list of page links
|
||||
// Only do this if there is more than one page
|
||||
$PageLinks = array();
|
||||
@ -237,7 +245,7 @@
|
||||
}
|
||||
?>
|
||||
<tr class="row<?=$Row?>">
|
||||
<td class="<?=$Read?>" title="<?=ucwords(str_replace('_',' ',$Read))?>"></td>
|
||||
<td class="<?=$Read?>" title="<?=ucwords(str_replace('_', ' ', $Read))?>"></td>
|
||||
<td>
|
||||
<span style="float: left;" class="last_topic">
|
||||
<?
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -32,7 +32,7 @@
|
||||
} else {
|
||||
// error out on invalid requests (before caching)
|
||||
if (isset($_GET['details'])) {
|
||||
if (in_array($_GET['details'], array('day','week','overall','snatched','data','seeded','month','year'))) {
|
||||
if (in_array($_GET['details'], array('day', 'week', 'overall', 'snatched', 'data', 'seeded', 'month', 'year'))) {
|
||||
$Details = $_GET['details'];
|
||||
} else {
|
||||
error(404);
|
||||
@ -42,11 +42,11 @@
|
||||
}
|
||||
|
||||
// defaults to 10 (duh)
|
||||
$Limit = isset($_GET['limit']) ? intval($_GET['limit']) : 10;
|
||||
$Limit = in_array($Limit, array(10, 100, 250)) ? $Limit : 10;
|
||||
$Limit = (isset($_GET['limit']) ? intval($_GET['limit']) : 10);
|
||||
$Limit = (in_array($Limit, array(10, 100, 250)) ? $Limit : 10);
|
||||
}
|
||||
$Filtered = !empty($Where);
|
||||
View::show_header('Top '.$Limit.' Torrents');
|
||||
View::show_header("Top $Limit Torrents");
|
||||
?>
|
||||
<div class="thin">
|
||||
<div class="header">
|
||||
@ -121,7 +121,7 @@
|
||||
|
||||
$FreeleechToggleQuery .= 'freeleech=' . $FreeleechToggleName;
|
||||
|
||||
$GroupByToggleName = ($_GET['groups'] == "show" ? 'hide' : 'show');
|
||||
$GroupByToggleName = ($_GET['groups'] == 'show' ? 'hide' : 'show');
|
||||
$GroupByToggleQuery = Format::get_url(array('freeleech', 'groups'));
|
||||
|
||||
if (!empty($GroupByToggleQuery))
|
||||
|
Loading…
Reference in New Issue
Block a user