<?
use Bitrix\Main\Localization\Loc;
global $USER;
$userprev = $USER->GetID();
if ($userprev != "1"){
}
else
{
AddEventHandler('main', 'OnBuildGlobalMenu', 'OnBuildGlobalMenuHandlerMax');
function OnBuildGlobalMenuHandlerMax(&$arGlobalMenu, &$arModuleMenu){...