Commit 69118a50 authored by S.Holzhauer's avatar S.Holzhauer

echo to access log specific onserver

parent ab69eef9
......@@ -14,10 +14,13 @@ if ($argc == 2) {
else {
$ID = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : null;
}
date_default_timezone_set("Europe/Amsterdam");
$time = date("H:i:sa");
$date = date("Y-m-d");
echo "$date $time, Called with ID=$ID\n";
//if the ID is from a camera:
if ($ID != NULL && $ID != "IRPS001"){
//get the elderid connected to the camera.
......@@ -148,5 +151,5 @@ else if ($ID == NULL){
//print to error log.
error_log("No ID was given.");
}
echo "Ready.\n";
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment