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:
@@ -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
|
||||
|
Reference in New Issue
Block a user