Returned lost posts.php fixes

Posts.php now safe for users not logged in