well...
to make it simpler, you don't need a daily log. Just a current one.

do a simple writeprofilestring($logfile,$austate,$ip,$mac) into a single file... the user will have that updated everytime they log in and unless you are very short of IP addresses the ip/mac addresses will never change anyway

the WOL script could be modified in the same way, to use
for each $comp in split(readprofilestring($logfile,'5',''),chr(10)) (or something similar, whatever the exact syntax is)
_________________________
How to ask questions the smart way <-----------> Before you ask