adding command test in apiserver\nsome debugging\nfree sms now running fine
This commit is contained in:
1 parent
97f8050d29
commit
555abb7c88
14 files changed
+182
-66
No files matched your search
@@ -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