debugged notification of availability of devices
This commit is contained in:
@ -153,11 +153,14 @@ function apiServer($read)
|
||||
apiDashboard($spawn, $argList[0]);
|
||||
}else
|
||||
{
|
||||
logger(DEBUG, $command . _(" so default action"), __FILE__ . ":" . __LINE__);
|
||||
logger(DEBUG, $command . _(" does not exists ... so default action"), __FILE__ . ":" . __LINE__);
|
||||
if (file_exists("php://temp/". $command))
|
||||
{
|
||||
logger(DEBUG, $command . _(" is a file"), __FILE__ . ":" . __LINE__);
|
||||
htmlSend($spawn, file_get_contents("php://temp/". $command), 'Content-Type: image/png');
|
||||
}else
|
||||
{
|
||||
htmlSend($spawn, "command does not exists");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user