1
0

some adjustments

This commit is contained in:
2022-08-27 00:02:24 +02:00
parent df94a6becf
commit f42df97c5c
10 changed files with 122 additions and 67 deletions

View File

@ -570,9 +570,20 @@ function apiDisplayByType($argList)
function test()
{
global $hooks;
$portes = array();
$msg = "";
logger(DEBUG, _("Testing doors") , __FILE__ . ":" . __LINE__);
echo "testing doors";
return $hooks["alerte_intrusion"]->testPortes();
$portes = $hooks["alerte_intrusion"]->testPortes();
if (!empty($portes))
{
foreach($portes as $value)
{
$msg .= $value . _(" is open") . EOL;
}
}
return nl2br($msg);
}
?>