mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
371dc874c0
commit
ec31570e2b
@ -226,7 +226,7 @@ public function load_news() {
|
|||||||
$MyNews = G::$LoggedUser['LastReadNews'];
|
$MyNews = G::$LoggedUser['LastReadNews'];
|
||||||
$CurrentNews = G::$Cache->get_value('news_latest_id');
|
$CurrentNews = G::$Cache->get_value('news_latest_id');
|
||||||
$Title = G::$Cache->get_value('news_latest_title');
|
$Title = G::$Cache->get_value('news_latest_title');
|
||||||
if ($CurrentNews === false) {
|
if ($CurrentNews === false || $Title === false) {
|
||||||
$QueryID = G::$DB->get_query_id();
|
$QueryID = G::$DB->get_query_id();
|
||||||
G::$DB->query('
|
G::$DB->query('
|
||||||
SELECT ID, Title
|
SELECT ID, Title
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
$News = $DB->to_array(false, MYSQLI_NUM, false);
|
$News = $DB->to_array(false, MYSQLI_NUM, false);
|
||||||
$Cache->cache_value('news', $News, 3600 * 24 * 30);
|
$Cache->cache_value('news', $News, 3600 * 24 * 30);
|
||||||
$Cache->cache_value('news_latest_id', $News[0][0], 0);
|
$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]) {
|
if ($LoggedUser['LastReadNews'] != $News[0][0]) {
|
||||||
|
@ -135,7 +135,11 @@
|
|||||||
(UserID, IP, StartTime)
|
(UserID, IP, StartTime)
|
||||||
VALUES
|
VALUES
|
||||||
('$UserID', '".db_string($_SERVER['REMOTE_ADDR'])."', '".sqltime()."')");
|
('$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')");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -154,6 +154,7 @@
|
|||||||
$LatestNews = $Cache->get_value('news_latest_id');
|
$LatestNews = $Cache->get_value('news_latest_id');
|
||||||
if ($LatestNews !== false && $LatestNews == $_GET['id']) {
|
if ($LatestNews !== false && $LatestNews == $_GET['id']) {
|
||||||
$Cache->delete_value('news_latest_id');
|
$Cache->delete_value('news_latest_id');
|
||||||
|
$Cache->delete_value('news_latest_title');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
header('Location: index.php');
|
header('Location: index.php');
|
||||||
|
@ -193,7 +193,7 @@ function compare($X, $Y) {
|
|||||||
<li>
|
<li>
|
||||||
<?=$Summary?>
|
<?=$Summary?>
|
||||||
<?=(check_perms('users_mod') ? ' added by ' . Users::format_username($AddedBy, false, false, false, false, false) : '')?>
|
<?=(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&auth=<?=$LoggedUser['AuthKey']?>&id=<?=$ImageID?>&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&auth=<?=$LoggedUser['AuthKey']?>&id=<?=$ImageID?>&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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -150,7 +150,7 @@
|
|||||||
break;
|
break;
|
||||||
case 'collages':
|
case 'collages':
|
||||||
$Links = 'Collage: <a href="collages.php?id=' . $Result['PageID'] . '">' . display_str($Result['Name']) . '</a>';
|
$Links = 'Collage: <a href="collages.php?id=' . $Result['PageID'] . '">' . display_str($Result['Name']) . '</a>';
|
||||||
$JumpLink = 'collages.php?id=' . $Result['PageID'] . '&postid=' . $Result['PostID'] . '#post' . $Result['PostID'];
|
$JumpLink = 'collages.php?action=comments&collageid=' . $Result['PageID'] . '&postid=' . $Result['PostID'] . '#post' . $Result['PostID'];
|
||||||
break;
|
break;
|
||||||
case 'requests':
|
case 'requests':
|
||||||
if (!isset($Requests[$Result['PageID']])) {
|
if (!isset($Requests[$Result['PageID']])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user