mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove canopsis exception
This commit is contained in:
@@ -43,13 +43,8 @@ $status = 'error';
|
|||||||
if (file_exists($config['install_dir']."/includes/alerts/transport.".$transport.".php")) {
|
if (file_exists($config['install_dir']."/includes/alerts/transport.".$transport.".php")) {
|
||||||
$opts = $config['alert']['transports'][$transport];
|
$opts = $config['alert']['transports'][$transport];
|
||||||
if ($opts) {
|
if ($opts) {
|
||||||
if ($transport == "canopsis") {
|
eval('$tmp = function($obj,$opts) { global $config; '.file_get_contents($config['install_dir'].'/includes/alerts/transport.'.$transport.'.php').' return false; };');
|
||||||
$tmp = eval ('global $config; '.file_get_contents($config['install_dir'].'/includes/alerts/transport.'.$transport.'.php').' return false;');
|
$tmp = $tmp($obj,$opts);
|
||||||
}
|
|
||||||
else {
|
|
||||||
eval('$tmp = function($obj,$opts) { global $config; '.file_get_contents($config['install_dir'].'/includes/alerts/transport.'.$transport.'.php').' return false; };');
|
|
||||||
$tmp = $tmp($obj,$opts);
|
|
||||||
}
|
|
||||||
if ($tmp) {
|
if ($tmp) {
|
||||||
$status = 'ok';
|
$status = 'ok';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user