aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2002-11-27 13:24:46 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2002-11-27 13:24:46 +0000
commit831c9b5a611e2591e3b79170b4e487241e2d9595 (patch)
tree6b8478fa295f93add8428c3e2ab93d3037e62a39 /phpBB/index.php
parent16e8fb800fb3b72d1c87fca829faab1cbb668f25 (diff)
downloadforums-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.php9
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
+?>