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
6d60a39a89
commit
c9a38cf2c3
@ -90,7 +90,7 @@
|
||||
[<a href="forums.php?action=new&forumid=<?=$ForumID?>">New Thread</a>]
|
||||
<? } ?>
|
||||
[<a href="#" onclick="$('#searchforum').toggle(); this.innerHTML = (this.innerHTML == 'Search this Forum'?'Hide Search':'Search this Forum'); return false;">Search this Forum</a>]
|
||||
<?if(check_perms("users_mod")) { ?>
|
||||
<?if(check_perms("site_moderate_forums")) { ?>
|
||||
[<a href="forums.php?action=forum_subscribe&do=<?=$ForumSubscribeAction?>&forumid=<?=$ForumID?>"><?=$ForumSubscribeActionText?></a>]
|
||||
<? } ?>
|
||||
<div id="searchforum" class="hidden center">
|
||||
|
@ -88,15 +88,15 @@
|
||||
}
|
||||
|
||||
//auto subscribe
|
||||
|
||||
$DB->query("SELECT UserID FROM subscribed_forums WHERE ForumID = '$ForumID' AND UserID <> '$LoggedUser[ID]'");
|
||||
while(list($SubscriberID) = $DB->next_record()) {
|
||||
if($DB->record_count() > 0) {
|
||||
$Users = $DB->to_array(false, MYSQLI_BOTH, false);
|
||||
foreach ($Users as $User) {
|
||||
$SubscriberID = $User['UserID'];
|
||||
$DB->query("INSERT INTO users_subscriptions VALUES ($SubscriberID, $TopicID)");
|
||||
// $DB->query("INSERT INTO forums_last_read_topics
|
||||
// (UserID, TopicID, PostID) VALUES
|
||||
// ('$SubscriberID', '".$TopicID ."', '".db_string($PostID)."')
|
||||
// ON DUPLICATE KEY UPDATE PostID='$LastPost'");
|
||||
$Cache->delete_value('subscriptions_user_'.$SubscriberID);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*
|
||||
User topic subscription page
|
||||
*/
|
||||
|
||||
define('FORUM_AUTO_SUBSCRIPTION_DATE', '2013-01-12');
|
||||
if(!empty($LoggedUser['DisableForums'])) {
|
||||
error(403);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user