mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-26 09:44:26 +02:00
...see if i am able to break the cookie tracking system this time. :D
- made some session code updates - added new acl function (might be helpful later) git-svn-id: file:///svn/phpbb/trunk@5038 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -69,12 +69,6 @@ else
|
||||
$sql_lastread = $lastread_select = '';
|
||||
|
||||
$tracking_topics = (isset($_COOKIE[$config['cookie_name'] . '_track'])) ? unserialize(stripslashes($_COOKIE[$config['cookie_name'] . '_track'])) : array();
|
||||
|
||||
if (!isset($tracking_topics[$forum_id]) && $user->data['user_id'] != ANONYMOUS)
|
||||
{
|
||||
markread('mark', $forum_id);
|
||||
redirect("viewforum.$phpEx$SID&f=$forum_id");
|
||||
}
|
||||
}
|
||||
|
||||
$sql_from = ($sql_lastread) ? '((' . FORUMS_TABLE . ' f LEFT JOIN ' . FORUMS_WATCH_TABLE . ' fw ON (fw.forum_id = f.forum_id AND fw.user_id = ' . $user->data['user_id'] . ")) $sql_lastread)" : '(' . FORUMS_TABLE . ' f LEFT JOIN ' . FORUMS_WATCH_TABLE . ' fw ON (fw.forum_id = f.forum_id AND fw.user_id = ' . $user->data['user_id'] . '))';
|
||||
|
Reference in New Issue
Block a user