this is allready done
scripts looks for stats writen in files
so :
when site is online -> stats are writen
when site is offline -> stats are not writen (file stays like it is. so if there was something in that file it stays so)
and if u hit !passed script reads all files and checks for stats
in one word
if site offline --> stats are the same as the last time site was online