mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 12:11:36 +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'];
|
||||
$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
|
||||
|
@ -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]) {
|
||||
|
@ -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')");
|
||||
|
||||
|
||||
|
||||
|
@ -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');
|
||||
|
@ -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&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>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -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'] . '&postid=' . $Result['PostID'] . '#post' . $Result['PostID'];
|
||||
$JumpLink = 'collages.php?action=comments&collageid=' . $Result['PageID'] . '&postid=' . $Result['PostID'] . '#post' . $Result['PostID'];
|
||||
break;
|
||||
case 'requests':
|
||||
if (!isset($Requests[$Result['PageID']])) {
|
||||
|
Loading…
Reference in New Issue
Block a user