webui fixes

This commit is contained in:
SJ
2013-08-11 09:22:03 +02:00
parent 90a69f9287
commit b68602b5f0
5 changed files with 31 additions and 0 deletions

View File

@ -215,6 +215,21 @@ class ModelHealthHealth extends Model {
}
public function purge_stat() {
$data = array('', '');
if(file_exists(PURGE_BEACON)) {
$st = stat(PURGE_BEACON);
$t1 = date(DATE_TEMPLATE . " H:i", $st['mtime']);
$t2 = date(DATE_TEMPLATE . " H:i", $st['mtime']+86400);
$data = array($t1, $t2);
}
return $data;
}
}