Empty commit

This commit is contained in:
Git 2013-01-05 08:00:47 +00:00
parent 4cb14b3a4f
commit 9e74849777
4 changed files with 14 additions and 8 deletions

View File

@ -142,7 +142,7 @@
}
$DB->query("UPDATE users_notify_quoted SET Unread = '0' WHERE UserID = '$LoggedUser[ID]' AND TopicID = '$ThreadID'");
$DB->query("UPDATE users_notify_quoted SET UnRead = '0' WHERE UserID = '$LoggedUser[ID]' AND TopicID = '$ThreadID'");
$QuoteNotificationsCount = $Cache->get_value('forums_quotes_' . $LoggedUser['ID']);
if ($QuoteNotificationsCount > 0) {

View File

@ -4,9 +4,10 @@
$Rankings = Votes::get_ranking($GroupID, $GroupYear);
$LIs = '';
// Display information for the return categories of get_ranking()
$names = array('overall'=>'overall',
'decade'=>'for the '.($GroupYear-($GroupYear%10)).'s',
'year'=>"for $GroupYear");
$GroupDecade = $GroupYear-($GroupYear%10);
$names = array('overall'=>'<a href="top10.php?type=votes">overall</a>',
'decade'=>check_perms('site_advanced_top10') ? 'for the <a href="top10.php?advanced=1&type=votes&year1='.$GroupDecade.'&year2='.($GroupDecade+9).'">'.$GroupDecade.'s</a>' : 'for the '.$GroupDecade.'s',
'year'=>check_perms('site_advanced_top10') ? 'for <a href="top10.php?advanced=1&type=votes&year1='.$GroupYear.'&year2=">'.$GroupYear.'</a>' : "for $GroupYear");
foreach ($names as $key => $text) {
if ($Rank = $Rankings[$key]) {
@ -35,4 +36,4 @@
<?
}
}
?>
?>

View File

@ -238,7 +238,7 @@ function check_paranoia_here($Setting) {
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?>>Ratio: <?=Format::get_ratio_html($Uploaded, $Downloaded)?></li>
<? } ?>
<? if (($Override=check_paranoia_here('requiredratio')) && isset($RequiredRatio)) { ?>
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?> title="<?=Format::get_size((double)$RequiredRatio, 5)?>">Required ratio: <?=number_format((double)$RequiredRatio, 2)?></li>
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?>>Required ratio: <?=number_format((double)$RequiredRatio, 2)?></li>
<? } ?>
<? if ($OwnProfile || ($Override=check_paranoia_here(false)) || check_perms('users_mod')) { ?>
<li <?= $Override===2 ? 'class="paranoia_override"' : ''?>><a href="userhistory.php?action=token_history&amp;userid=<?=$UserID?>">Tokens</a>: <?=number_format($FLTokens)?></li>

View File

@ -8,9 +8,11 @@
$UnreadSQL = "";
}
list($Page, $Limit) = Format::page_limit(TOPICS_PER_PAGE);
if ($_GET['catchup']) {
$DB->query("UPDATE users_notify_quoted SET UnRead = '0' WHERE UserID = '$LoggedUser[ID]'");
}
View::show_header('Quote Notifications');
list($Page, $Limit) = Format::page_limit(TOPICS_PER_PAGE);
if ($LoggedUser['CustomForums']) {
unset($LoggedUser['CustomForums']['']);
@ -34,6 +36,8 @@
$DB->query("SELECT FOUND_ROWS()");
list($NumResults) = $DB->next_record();
//Start printing page
View::show_header('Quote Notifications');
?>
<div class="thin">
@ -50,6 +54,7 @@
<a href="userhistory.php?action=quote_notifications">Show unread quotes</a>&nbsp;&nbsp;&nbsp;
<? } ?>
<a href="userhistory.php?action=subscriptions">Show subscriptions</a>&nbsp;&nbsp;&nbsp;
<a href="userhistory.php?action=quote_notifications&amp;catchup=1">Catch up</a>&nbsp;&nbsp;&nbsp;
<br /> <br />
<?
$Pages = Format::get_pages($Page, $NumResults, TOPICS_PER_PAGE, 9);