mirror of https://github.com/nostar/urfd.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
428 B
19 lines
428 B
<?php
|
|
|
|
$ReflectorStatus = (file_exists($Service['PIDFile'])) ? 'up' : 'down';
|
|
|
|
$payload = array(
|
|
'lastupdate' => gmdate('U', time()),
|
|
'lasturfdupdate' => gmdate('U', filemtime($Service['XMLFile'])),
|
|
'reflectorstatus' => $ReflectorStatus,
|
|
'reflectoruptimeseconds' => $Reflector->GetServiceUptime()
|
|
);
|
|
|
|
|
|
// json encode payload array
|
|
$records = json_encode($payload);
|
|
|
|
echo $records;
|
|
|
|
?>
|