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="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>] [<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>] [<a href="forums.php?action=forum_subscribe&do=<?=$ForumSubscribeAction?>&forumid=<?=$ForumID?>"><?=$ForumSubscribeActionText?></a>]
<? } ?> <? } ?>
<div id="searchforum" class="hidden center"> <div id="searchforum" class="hidden center">

View File

@ -88,15 +88,15 @@
} }
//auto subscribe //auto subscribe
$DB->query("SELECT UserID FROM subscribed_forums WHERE ForumID = '$ForumID' AND UserID <> '$LoggedUser[ID]'"); $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) {
$DB->query("INSERT INTO users_subscriptions VALUES ($SubscriberID, $TopicID)"); $Users = $DB->to_array(false, MYSQLI_BOTH, false);
// $DB->query("INSERT INTO forums_last_read_topics foreach ($Users as $User) {
// (UserID, TopicID, PostID) VALUES $SubscriberID = $User['UserID'];
// ('$SubscriberID', '".$TopicID ."', '".db_string($PostID)."') $DB->query("INSERT INTO users_subscriptions VALUES ($SubscriberID, $TopicID)");
// ON DUPLICATE KEY UPDATE PostID='$LastPost'"); $Cache->delete_value('subscriptions_user_'.$SubscriberID);
$Cache->delete_value('subscriptions_user_'.$SubscriberID);
}
} }

View File

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