Sample instructions are in the comments area on the wxstatus.php page itself ############################################################################
#
# Add your custom checks below using the commented examples
#
# the do_check function has four arguments:
# do_check($text,$target,$maxtime,$checktype);
#
# where:
# $text is the text to display on the page.. always a good idea to run it
# through langtransstr($text) for multilanguage support
# $target is the item to be checked .. type of item is determined by $checktype
#
# $target = relative file location/name if $checktype = 'file'
# $target = unix timestamp (like from time() ) if $checktyp = 'application'
#
# $maxtime is number of SECONDS expected between updates .. always allow a cushion
# (extra time) to allow for delays in updates via FTP
#
# $checktype defaults to 'file' type, use 'application' for timestamp checking from
# applications.
#
#
############################################################################
/*
// example check for 'file' update time
$tDir = './';
if(file_exists($tDir.'somefile.ext')) {
do_check(langtransstr("Some File"),$tDir.'somefile.ext',10*60+15,'file');
}
// example check for 'application' update time (this WXSIM check is already in wxstatus.php)
if(isset($SITE['WXSIM']) and file_exists('plaintext.txt')) {
$doPrint = false;
include_once($SITE['WXSIMscript']);
print "<!-- wdate='$wdate' -->\n";
$lastWXSIM = strtotime($wdate);
// note: '6*60*60 + 2*60' is 6:02:00 hms
do_check(langtransstr("WXSIM forecast"),$lastWXSIM,6*60*60 + 2*60,'application');
}
*/
############################################################################
# start of custom checks (put your custom checks below)
# end of custom checks
############################################################################