status.php 144 Bytes
Newer Older
dmorley's avatar
dmorley committed
1 2 3
<?php
$dur = (time() - filemtime("last.data"));
echo $dur;
dmorley's avatar
dmorley committed
4
if ($dur > 4500) {
dmorley's avatar
dmorley committed
5
  http_response_code(500);
dmorley's avatar
dmorley committed
6 7
}
else {
dmorley's avatar
dmorley committed
8
  http_response_code(200);
dmorley's avatar
dmorley committed
9
}