updated the currentlyOnline Function

Currently Online was returning false values. I changed it to use the PHP
time and - 900 (seconds). Also used last visited rather than last
viewed.