1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

Added a count of total number of topics to the get_db_stats function

git-svn-id: file:///svn/phpbb/trunk@485 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson
2001-06-13 08:32:32 +00:00
parent d707a5f099
commit b4d3854cd2
3 changed files with 8 additions and 2 deletions

View File

@@ -45,6 +45,10 @@ function get_db_stat($mode)
ORDER BY user_id DESC
LIMIT 1";
break;
case 'topiccount':
$sql = "SELECT SUM(forum_topics) AS total
FROM ".FORUMS_TABLE;
break;
}
@@ -427,7 +431,7 @@ function validate_username($username)
// a UNION clause which would be very nice here :(
// So we have to use two queries
case 'mysql':
$sql_users = "SELECT group_name AS username
$sql_users = "SELECT group_name AS username
FROM " . GROUPS_TABLE . "
WHERE LOWER(group_name) = '" . strtolower($username) . "'";
$sql_disallow = "SELECT disallow_username