grep "^\$DB.*;" /home/bitrix/ext_www/site.ru/bitrix/php_interface/dbconn.php | sed 's/;//g'
$DBType = "mysql"
$DBHost = "localhost"
$DBLogin = "site"
$DBPassword = 'pYa%W&cwsA]kK[QH'
$DBName = "dbcentre"
$DBDebug = false
$DBDebugToFile = false
eval `sed -rn 's/^\$(DB.+);$/\1/p' /home/bitrix/ext_www/site.ru/bitrix/php_interface/dbconn.php`