B64 included in user options
This commit is contained in:
parent
1534fd9c40
commit
ae3d54cedf
|
@ -13766,17 +13766,23 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4)
|
|||
return;
|
||||
}
|
||||
|
||||
$user_defined = false;
|
||||
if (is_array($other['data']) === true) {
|
||||
$user_defined = true;
|
||||
// Parameters received by user call.
|
||||
$graph_seconds = (!empty($other) && isset($other['data'][0])) ? $other['data'][0] : SECONDS_1HOUR;
|
||||
// 1 hour by default.
|
||||
|
||||
// Base64.
|
||||
$graph_threshold = (!empty($other) && isset($other['data'][1]) && $other['data'][1]) ? $other['data'][1] : 0;
|
||||
|
||||
// 1 hour by default.
|
||||
$graph_threshold = (!empty($other) && isset($other['data'][2]) && $other['data'][2]) ? $other['data'][2] : 0;
|
||||
|
||||
// Graph height when send email by alert
|
||||
$height = (!empty($other) && isset($other['data'][2]) && $other['data'][2]) ? $other['data'][2] : 225;
|
||||
$height = (!empty($other) && isset($other['data'][3]) && $other['data'][3]) ? $other['data'][3] : 225;
|
||||
|
||||
// Graph width (optional).
|
||||
$width = (!empty($other) && isset($other['data'][3]) && $other['data'][3]) ? $other['data'][3] : '';
|
||||
$width = (!empty($other) && isset($other['data'][4]) && $other['data'][4]) ? $other['data'][4] : '';
|
||||
} else {
|
||||
// Fixed parameters for _modulegraph_nh_.
|
||||
$graph_seconds = $other['data'];
|
||||
|
|
Loading…
Reference in New Issue