1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Initial Lastread support. Mind the schema and config changes\!

git-svn-id: file:///svn/phpbb/trunk@3102 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt
2002-11-27 13:24:46 +00:00
parent 16e8fb800f
commit 831c9b5a61
11 changed files with 295 additions and 38 deletions

View File

@@ -495,6 +495,10 @@ if (isset($post))
$db->sql_query($sql);
}
// Mark this topic as read and posted to.
$mark_mode = ($mode == 'reply' || $mode == 'newtopic') ? 'post' : 'topic';
markread($mark_mode, $forum_id, $topic_id, $post_id);
$db->sql_transaction('commit');
$template->assign_vars(array(
@@ -503,7 +507,7 @@ if (isset($post))
$message = (!empty($enable_moderate)) ? 'POST_STORED_MOD' : 'POST_STORED';
trigger_error($user->lang[$message]);
}
} // Store message, sync counters
// Houston, we have an error ...
$post_text = &stripslashes($message);
@@ -514,7 +518,7 @@ if (isset($post))
$template->assign_vars(array(
'ERROR_MESSAGE' => $err_msg)
);
}
} // isset($post)
// PROCESS SUBMIT
// --------------
@@ -885,4 +889,4 @@ function topic_review($topic_id, $is_inline_review = false)
}
}
?>
?>