diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-11-13 21:48:06 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-11-13 21:48:06 +0000 |
commit | f0da525e44fc1b1f805fc0f3e9e395779de9437c (patch) | |
tree | 0961ae107301b85b02b2c590e3793fb49a107b8d /phpBB/index.php | |
parent | bb20ba7235c0103dec929e62b44829572efa6825 (diff) | |
download | forums-f0da525e44fc1b1f805fc0f3e9e395779de9437c.tar forums-f0da525e44fc1b1f805fc0f3e9e395779de9437c.tar.gz forums-f0da525e44fc1b1f805fc0f3e9e395779de9437c.tar.bz2 forums-f0da525e44fc1b1f805fc0f3e9e395779de9437c.tar.xz forums-f0da525e44fc1b1f805fc0f3e9e395779de9437c.zip |
Num posted articles/topics update
git-svn-id: file:///svn/phpbb/trunk@3028 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r-- | phpBB/index.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/index.php b/phpBB/index.php index f3342e78ce..7891071e40 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -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), |