Empty commit

This commit is contained in:
Git 2013-01-13 08:00:32 +00:00
parent 6d60a39a89
commit c9a38cf2c3
3 changed files with 10 additions and 10 deletions

View File

@ -90,7 +90,7 @@
[<a href="forums.php?action=new&amp;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">

View File

@ -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);
}
}

View File

@ -2,7 +2,7 @@
/*
User topic subscription page
*/
define('FORUM_AUTO_SUBSCRIPTION_DATE', '2013-01-12');
if(!empty($LoggedUser['DisableForums'])) {
error(403);
}