adding command test in apiserver\nsome debugging\nfree sms now running fine
This commit is contained in:
@ -143,6 +143,10 @@ function apiServer($read)
|
||||
logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__);
|
||||
htmlSend($spawn, deleteDevice($argList));
|
||||
break;
|
||||
case "test":
|
||||
logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__);
|
||||
htmlSend($spawn, test($argList));
|
||||
break;
|
||||
default:
|
||||
if (is_numeric(array_key_first($argList)))
|
||||
{
|
||||
|
@ -559,4 +559,13 @@ function apiDisplayByType($argList)
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
function test()
|
||||
{
|
||||
global $hooks;
|
||||
logger(DEBUG, _("Testing doors") , __FILE__ . ":" . __LINE__);
|
||||
echo "testing doors";
|
||||
return $hooks["alerte_intrusion"]->testPortes();
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user