Some protection for view.php