<?php if (filter_has_var(INPUT_GET, 'success')) echo '<div class="msg">Код успешно активирован!</div>';
header('Location: /file.php?success');