In order to make this work with my Red Hat 8 system (and adhere to standard bourne shell) I had to enclose the conditionals in  like:
if [ "$DAY" = "Sun" -a \
"$TIMENOW" -gt "0900" -a \
"$TIMENOW" -lt "1300" ]]
If your system always seems "closed" see if this is your problem. The best way to test this is just to run it on the command line and see if the script gives you errors.
Actually it looks like tiki strips out square brackets when posting so that may be the original problem. I guess when posting code to this wiki use [[ and ]]]