1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-27 21:45:22 +02:00

Num posted articles/topics update

git-svn-id: file:///svn/phpbb/trunk@3028 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2002-11-13 21:48:06 +00:00
parent bb20ba7235
commit f0da525e44

View File

@ -64,6 +64,8 @@ $mark_topics = (isset($_COOKIE[$config['cookie_name'] . '_t'])) ? unserialize(st
$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'];
$total_topics = $config['num_topics'];
$total_users = $config['num_users'];
$newest_user = $config['newest_username'];
$newest_uid = $config['newest_user_id'];
@ -97,6 +99,19 @@ else
$l_total_post_s = $user->lang['Posted_articles_total'];
}
if ($total_topics == 0)
{
$l_total_topic_s = $user->lang['Posted_topics_zero_total'];
}
else if ($total_topics == 1)
{
$l_total_topic_s = $user->lang['Posted_topic_total'];
}
else
{
$l_total_topic_s = $user->lang['Posted_topics_total'];
}
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),