vc php8
This commit is contained in:
parent
3b6f5bd02f
commit
c3639a22fb
|
@ -206,6 +206,8 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
|
|||
$select[0]['autorefresh_white_list']
|
||||
);
|
||||
|
||||
$header_autorefresh = '';
|
||||
$header_autorefresh_counter = '';
|
||||
if ($config['legacy_vc']
|
||||
|| ($_GET['sec2'] !== 'operation/visual_console/render_view')
|
||||
|| (($_GET['sec2'] !== 'operation/visual_console/render_view')
|
||||
|
@ -900,6 +902,7 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
|
|||
if ($_GET['refr']
|
||||
|| (isset($do_refresh) === true && $do_refresh === true)
|
||||
) {
|
||||
$autorefresh_draw = false;
|
||||
if ($_GET['sec2'] == 'operation/events/events') {
|
||||
$autorefresh_draw = true;
|
||||
}
|
||||
|
|
|
@ -1374,7 +1374,7 @@ function agents_get_group_agents(
|
|||
$key = $row['id_agente'];
|
||||
}
|
||||
|
||||
if ($row['id_server'] !== '') {
|
||||
if (($row['id_server'] ?? '') !== '') {
|
||||
if (is_metaconsole()) {
|
||||
$server_name = db_get_row_filter(
|
||||
'tmetaconsole_setup',
|
||||
|
|
|
@ -243,10 +243,10 @@ class Item extends CachedModel
|
|||
}
|
||||
|
||||
$decodedData['agentDisabled'] = static::parseBool(
|
||||
$data['agentDisabled']
|
||||
($data['agentDisabled'] ?? false)
|
||||
);
|
||||
$decodedData['moduleDisabled'] = static::parseBool(
|
||||
$data['moduleDisabled']
|
||||
($data['moduleDisabled'] ?? false)
|
||||
);
|
||||
|
||||
return $decodedData;
|
||||
|
@ -1097,8 +1097,8 @@ class Item extends CachedModel
|
|||
$baseUrl = \ui_get_full_url('index.php');
|
||||
$mobileUrl = \ui_get_full_url('mobile/index.php');
|
||||
|
||||
if ((bool) $data['agentDisabled'] === true
|
||||
|| (bool) $data['moduleDisabled'] === true
|
||||
if ((bool) ($data['agentDisabled'] ?? null) === true
|
||||
|| (bool) ($data['moduleDisabled'] ?? null) === true
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ require_once 'include/functions_visual_map.php';
|
|||
$hash = (string) get_parameter('hash');
|
||||
$visualConsoleId = (int) get_parameter('id_layout');
|
||||
$config['id_user'] = (string) get_parameter('id_user');
|
||||
$refr = (int) get_parameter('refr', $config['refr']);
|
||||
$refr = (int) get_parameter('refr', ($config['refr'] ?? null));
|
||||
|
||||
if (!isset($config['pure'])) {
|
||||
$config['pure'] = 0;
|
||||
|
@ -180,7 +180,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
|
|||
<script type="text/javascript">
|
||||
var container = document.getElementById("visual-console-container");
|
||||
var props = <?php echo (string) $visualConsole; ?>;
|
||||
var items = <?php echo '['.implode($visualConsoleItems, ',').']'; ?>;
|
||||
var items = <?php echo '['.implode(',', $visualConsoleItems).']'; ?>;
|
||||
var baseUrl = "<?php echo ui_get_full_url('/', false, false, false); ?>";
|
||||
|
||||
var controls = document.getElementById('vc-controls');
|
||||
|
|
Loading…
Reference in New Issue