global $USER; if (!$USER->IsAdmin()) { CHTTP::SetStatus("404 Not Found"); @define("ERROR_404","Y"); $rsSites = CSite::GetByID(SITE_ID); $arSite = $rsSites->Fetch(); include($arSite['DOC_ROOT']."/404.php"); return; }