• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/site_checker.php
  • Класс: CSiteCheckerTest
  • Вызов: CSiteCheckerTest::check_mysql_mode
function check_mysql_mode()
{
	global $DB;

	$strError = '';
	$f = $DB->Query('SHOW VARIABLES LIKE 'innodb_strict_mode'')->Fetch();
	if (strtoupper($f['Value']) != 'OFF')
		$strError = GetMessage('SC_DB_ERR_INNODB_STRICT', ['#VALUE#' => $f['Value']])."
"; $f = $DB->Query('SHOW VARIABLES LIKE 'sql_mode'')->Fetch(); if ($f['Value'] <> '') $strError .= GetMessage('SC_DB_ERR_MODE').' '.$f['Value']; return $strError ? $this->Result(false, $strError) : true; }