1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

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
This commit is contained in:
James Atkinson
2002-04-30 17:56:50 +00:00
parent 559dff21b7
commit 52c0d86c95
5 changed files with 59 additions and 7 deletions

View File

@@ -840,8 +840,18 @@ else
{
$error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . "<br /><br />";
}
$sql = "UPDATE " . $table_prefix . "config
SET config_value = '" . $admin_name . "'
WHERE config_name = 'newest_username'";
$result = $db->sql_query($sql);
if( !$result )
{
$error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . "<br /><br />";
}
$admin_pass_md5 = ( $confirm && $userdata['user_level'] == ADMIN ) ? $admin_pass1 : md5($admin_pass1);
$sql = "UPDATE " . $table_prefix . "users