function CheckOnAllowedComponents($str) { if (($r = CFileMan::__CheckOnAllowedComponents($str)) !== true) { $GLOBALS['APPLICATION']->ThrowException(GetMessage("FILEMAN_UNALLOWED_COMPONENTS", array("#BAD_COMPONENT#" => $r)), "UNALLOWED_COMPONENTS"); return false; } return true; }