[ParseError] 
syntax error, unexpected 'if' (T_IF) (0)
/home/d/dobromedru/dobromed2019/public_html/local/templates/main_2019/header.php:2
#0: require
	/home/d/dobromedru/dobromed2019/public_html/bitrix/modules/main/include/prolog.php:11
#1: require_once(string)
	/home/d/dobromedru/dobromed2019/public_html/bitrix/header.php:1
#2: require(string)
	/home/d/dobromedru/dobromed2019/public_html/events/index.php:2
#3: include_once(string)
	/home/d/dobromedru/dobromed2019/public_html/bitrix/modules/main/include/urlrewrite.php:159
#4: include_once(string)
	/home/d/dobromedru/dobromed2019/public_html/404.php:2