some adjustments
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user