echo (time() > $postres['lastdate'] + 300 ? '<img src="/images/off.gif"/>' : '<img src="/images/on.gif"/>');