feature: Added the option to select alert rules from a collection

This commit is contained in:
laf
2016-10-26 06:54:48 +00:00
parent 1504c04fee
commit 8a142aa53f
10 changed files with 255 additions and 7 deletions

View File

@ -1364,3 +1364,9 @@ function file_download($filename, $content)
header('Pragma: public');
echo $content;
}
function get_rules_from_json()
{
global $config;
return json_decode(file_get_contents($config['install_dir'] . '/misc/alert_rules.json'), true);
}