diff options
| author | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-11-27 13:24:46 +0000 |
|---|---|---|
| committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-11-27 13:24:46 +0000 |
| commit | 831c9b5a611e2591e3b79170b4e487241e2d9595 (patch) | |
| tree | 6b8478fa295f93add8428c3e2ab93d3037e62a39 /phpBB/index.php | |
| parent | 16e8fb800fb3b72d1c87fca829faab1cbb668f25 (diff) | |
| download | forums-831c9b5a611e2591e3b79170b4e487241e2d9595.tar forums-831c9b5a611e2591e3b79170b4e487241e2d9595.tar.gz forums-831c9b5a611e2591e3b79170b4e487241e2d9595.tar.bz2 forums-831c9b5a611e2591e3b79170b4e487241e2d9595.tar.xz forums-831c9b5a611e2591e3b79170b4e487241e2d9595.zip | |
Initial Lastread support. Mind the schema and config changes\!
git-svn-id: file:///svn/phpbb/trunk@3102 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
| -rw-r--r-- | phpBB/index.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/phpBB/index.php b/phpBB/index.php index ea10654dc4..c524618764 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -47,7 +47,7 @@ if ($mark_read == 'forums') { if ($userdata['user_id']) { - setcookie($config['cookie_name'] . '_f_all', time(), 0, $config['cookie_path'], $config['cookie_domain'], $config['cookie_secure']); + markread('markall'); } $template->assign_vars(array( @@ -57,11 +57,6 @@ if ($mark_read == 'forums') $message = $user->lang['Forums_marked_read'] . '<br /><br />' . sprintf($user->lang['Click_return_index'], '<a href="' . "index.$phpEx$SID" . '">', '</a> '); message_die(MESSAGE, $message); } -// End handle marking posts - -// Topic/forum marked read info -$mark_topics = (isset($_COOKIE[$config['cookie_name'] . '_t'])) ? unserialize(stripslashes($_COOKIE[$config['cookie_name'] . '_t'])) : array(); -$mark_forums = (isset($_COOKIE[$config['cookie_name'] . '_f'])) ? unserialize(stripslashes($_COOKIE[$config['cookie_name'] . '_f'])) : array(); // Set some stats, get posts count from forums data if we... hum... retrieve all forums data $total_posts = $config['num_posts']; @@ -142,4 +137,4 @@ $template->set_filenames(array( include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -?>
\ No newline at end of file +?> |
