<?php if (!cmsUser::isLogged()) || (!$user->isInGroups($groups_ids_array[5,6,7,9])) { cmsUser::href_to_home(); } ?>
if ($core->uri && НЕ frontpage && НЕ auth)
<?php if (!cmsUser::isLogged()) || (!$user->isInGroups($groups_ids_array[5,6,7,9])) { cmsUser::href_to_home(); } ?>