• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/database.php
  • Класс: CAllDatabase
  • Вызов: CAllDatabase::showConnectionError
static function showConnectionError()
{
	$response = new MainHttpResponse();
	$response->setStatus('500 Internal Server Error');
	$response->writeHeaders();

	if(file_exists($_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/php_interface/dbconn_error.php"))
	{
		include($_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/php_interface/dbconn_error.php");
	}
	else
	{
		echo "Error connecting to database. Please try again later.";
	}
}