Empty commit

This commit is contained in:
Git 2013-10-16 08:01:00 +00:00
parent 371dc874c0
commit ec31570e2b
6 changed files with 11 additions and 5 deletions

View File

@ -226,7 +226,7 @@ public function load_news() {
$MyNews = G::$LoggedUser['LastReadNews'];
$CurrentNews = G::$Cache->get_value('news_latest_id');
$Title = G::$Cache->get_value('news_latest_title');
if ($CurrentNews === false) {
if ($CurrentNews === false || $Title === false) {
$QueryID = G::$DB->get_query_id();
G::$DB->query('
SELECT ID, Title

View File

@ -16,6 +16,7 @@
$News = $DB->to_array(false, MYSQLI_NUM, false);
$Cache->cache_value('news', $News, 3600 * 24 * 30);
$Cache->cache_value('news_latest_id', $News[0][0], 0);
$Cache->cache_value('news_latest_title', $News[0][1], 0);
}
if ($LoggedUser['LastReadNews'] != $News[0][0]) {

View File

@ -11,7 +11,7 @@
include(SERVER_ROOT.'/classes/validate.class.php');
$Val=NEW VALIDATE;
$Val = NEW VALIDATE;
if (!empty($_REQUEST['confirm'])) {
// Confirm registration
@ -135,7 +135,11 @@
(UserID, IP, StartTime)
VALUES
('$UserID', '".db_string($_SERVER['REMOTE_ADDR'])."', '".sqltime()."')");
$DB->query("INSERT INTO users_notifications_settings (UserID) VALUES ('$UserID')");
$DB->query("
INSERT INTO users_notifications_settings
(UserID)
VALUES
('$UserID')");

View File

@ -154,6 +154,7 @@
$LatestNews = $Cache->get_value('news_latest_id');
if ($LatestNews !== false && $LatestNews == $_GET['id']) {
$Cache->delete_value('news_latest_id');
$Cache->delete_value('news_latest_title');
}
}
header('Location: index.php');

View File

@ -193,7 +193,7 @@ function compare($X, $Y) {
<li>
<?=$Summary?>
<?=(check_perms('users_mod') ? ' added by ' . Users::format_username($AddedBy, false, false, false, false, false) : '')?>
<span class="remove remove_cover_art"><a href="#" onclick="ajax.get('torrents.php?action=remove_cover_art&amp;auth=<?=$LoggedUser['AuthKey']?>&amp;id=<?=$ImageID?>&amp;groupid=<?=$GroupID?>'); this.parentNode.parentNode.parentNode.style.display = 'none'; this.parentNode.parentNode.parentNode.previousElementSibling.style.display = 'none';" class="brackets tooltip" title="Remove image">X</a></span>
<span class="remove remove_cover_art"><a href="#" onclick="if (confirm('Do not delete valid alternative cover art. Are you sure you want to delete this cover art?') == true) { ajax.get('torrents.php?action=remove_cover_art&amp;auth=<?=$LoggedUser['AuthKey']?>&amp;id=<?=$ImageID?>&amp;groupid=<?=$GroupID?>'); this.parentNode.parentNode.parentNode.style.display = 'none'; this.parentNode.parentNode.parentNode.previousElementSibling.style.display = 'none'; } else { return false; }" class="brackets tooltip" title="Remove image">X</a></span>
</li>
</ul>
</div>

View File

@ -150,7 +150,7 @@
break;
case 'collages':
$Links = 'Collage: <a href="collages.php?id=' . $Result['PageID'] . '">' . display_str($Result['Name']) . '</a>';
$JumpLink = 'collages.php?id=' . $Result['PageID'] . '&amp;postid=' . $Result['PostID'] . '#post' . $Result['PostID'];
$JumpLink = 'collages.php?action=comments&collageid=' . $Result['PageID'] . '&amp;postid=' . $Result['PostID'] . '#post' . $Result['PostID'];
break;
case 'requests':
if (!isset($Requests[$Result['PageID']])) {