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