aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2002-04-30 17:56:50 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2002-04-30 17:56:50 +0000
commit52c0d86c95aaacd3e57866a5d57fce82b599236f (patch)
tree605ba287aaf5451ad9fdc5ab4c60cff277efbfff /phpBB/index.php
parent559dff21b7eb18188c4022efa2e0bb5ddc7de784 (diff)
downloadforums-52c0d86c95aaacd3e57866a5d57fce82b599236f.tar
forums-52c0d86c95aaacd3e57866a5d57fce82b599236f.tar.gz
forums-52c0d86c95aaacd3e57866a5d57fce82b599236f.tar.bz2
forums-52c0d86c95aaacd3e57866a5d57fce82b599236f.tar.xz
forums-52c0d86c95aaacd3e57866a5d57fce82b599236f.zip
Changed code so it stores total users in config table to remove a slightly costly query
git-svn-id: file:///svn/phpbb/trunk@2549 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index e5278bb1e3..e3c57ee5e5 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -75,10 +75,13 @@ $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f'
// removing them
//
$total_posts = get_db_stat('postcount');
-$total_users = get_db_stat('usercount');
-$newest_userdata = get_db_stat('newestuser');
-$newest_user = $newest_userdata['username'];
-$newest_uid = $newest_userdata['user_id'];
+//$total_users = get_db_stat('usercount');
+//$newest_userdata = get_db_stat('newestuser');
+//$newest_user = $newest_userdata['username'];
+//$newest_uid = $newest_userdata['user_id'];
+$total_users = $board_config['num_users'];
+$newest_user = $board_config['newest_username'];
+$newest_uid = $board_config['newest_user_id'];
if( $total_posts == 0 )
{