I hear so many having problems sticking to their programs, when they are either sick.
Through the years I've had many of both. In fact the first year I fell and bruised a kidney and it took two months bed rest to recover. But, I kept on top of my calories and what I was eating, and I still lost 10 lbs. Being bedridden the whole time!
Find ways to occupy your self that do not involve food.
I love to read light magazine's, like Country Woman, Weight Watchers, Diabetic Cooking, Healthy Exchanges Newsletters, etc. If you feel up to it, studying is also good during this time, so study up your Watchtower, or for book study. (however, sometimes I am too sick to retain or comprehend anything I read, so that is when I stick to the lighter stuff)
I also like to get out all my Healthy Exchanges Newsletters and Books and menu plan. I keep a database on yahoo of menu plans, and add to it when I can. So this is a good time to make use of that!
Sudoku puzzles or other types of easy puzzles.
Drink lots and lots of water!
Watch your favorite DVD's but be careful of ones that may trigger binging.
If you can exercise, exercise. If you can not exercise, do not focus on what you can NOT do. Keep your focus on what you can do. And the main thing you CAN do is, control what and how much you are eating. If you simply make sure you are eating with in your food plan and get back to exercise once you are well again, you will not gain any weight while sick, nor get out of habits, and will likely lose weight!