mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-4658-cross-site-seguridad-base64' into 'develop'
Changed the mode of obtain the title See merge request artica/pandorafms!2743
This commit is contained in:
commit
1cef8aa62f
@ -798,11 +798,7 @@ function mainAgentsModules()
|
|||||||
echo "<td style='text-align: center;'>";
|
echo "<td style='text-align: center;'>";
|
||||||
$win_handle = dechex(crc32($module_id.$module['name']));
|
$win_handle = dechex(crc32($module_id.$module['name']));
|
||||||
$graph_type = return_graphtype(modules_get_agentmodule_type($module_id));
|
$graph_type = return_graphtype(modules_get_agentmodule_type($module_id));
|
||||||
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module_id.'&'.'label='.rawurlencode(
|
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module_id.'&'.'refresh='.SECONDS_10MINUTES."', 'day_".$win_handle."')";
|
||||||
urlencode(
|
|
||||||
base64_encode($module['name'])
|
|
||||||
)
|
|
||||||
).'&'.'refresh='.SECONDS_10MINUTES."', 'day_".$win_handle."')";
|
|
||||||
|
|
||||||
echo '<a href="javascript:'.$link.'">';
|
echo '<a href="javascript:'.$link.'">';
|
||||||
switch ($status) {
|
switch ($status) {
|
||||||
|
@ -1141,11 +1141,7 @@ if (check_login()) {
|
|||||||
$draw_events = 0;
|
$draw_events = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = "winopeng_var('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&id='.$module['id_agente_modulo'].'&label='.rawurlencode(
|
$link = "winopeng_var('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&id='.$module['id_agente_modulo'].'&refresh='.SECONDS_10MINUTES.'&'."draw_events=$draw_events', 'day_".$win_handle."', 1000, 700)";
|
||||||
urlencode(
|
|
||||||
base64_encode($module['nombre'])
|
|
||||||
)
|
|
||||||
).'&refresh='.SECONDS_10MINUTES.'&'."draw_events=$draw_events', 'day_".$win_handle."', 1000, 700)";
|
|
||||||
if (!is_snapshot_data($module['datos'])) {
|
if (!is_snapshot_data($module['datos'])) {
|
||||||
$data[8] .= '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => '0', 'alt' => '']).'</a> ';
|
$data[8] .= '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => '0', 'alt' => '']).'</a> ';
|
||||||
}
|
}
|
||||||
|
@ -652,7 +652,6 @@ class Tree
|
|||||||
'type' => $graphType,
|
'type' => $graphType,
|
||||||
'period' => SECONDS_1DAY,
|
'period' => SECONDS_1DAY,
|
||||||
'id' => $module['id'],
|
'id' => $module['id'],
|
||||||
'label' => base64_encode($module['name']),
|
|
||||||
'refresh' => SECONDS_10MINUTES,
|
'refresh' => SECONDS_10MINUTES,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -4116,7 +4116,6 @@ function events_page_details($event, $server='')
|
|||||||
'type' => $graph_type,
|
'type' => $graph_type,
|
||||||
'period' => SECONDS_1DAY,
|
'period' => SECONDS_1DAY,
|
||||||
'id' => $module['id_agente_modulo'],
|
'id' => $module['id_agente_modulo'],
|
||||||
'label' => base64_encode($module['nombre']),
|
|
||||||
'refresh' => SECONDS_10MINUTES,
|
'refresh' => SECONDS_10MINUTES,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -49,11 +49,10 @@ if (file_exists('../../include/languages/'.$user_language.'.mo')) {
|
|||||||
|
|
||||||
echo '<link rel="stylesheet" href="../../include/styles/pandora.css" type="text/css"/>';
|
echo '<link rel="stylesheet" href="../../include/styles/pandora.css" type="text/css"/>';
|
||||||
|
|
||||||
$label = get_parameter('label');
|
|
||||||
$label = base64_decode($label);
|
|
||||||
$id = get_parameter('id');
|
$id = get_parameter('id');
|
||||||
$id_agent = db_get_value('id_agente', 'tagente_modulo', 'id_agente_modulo', $id);
|
$id_agent = db_get_value('id_agente', 'tagente_modulo', 'id_agente_modulo', $id);
|
||||||
$alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
$alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
||||||
|
$label = db_get_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id);
|
||||||
// $agent = agents_get_agent_with_ip ("192.168.50.31");
|
// $agent = agents_get_agent_with_ip ("192.168.50.31");
|
||||||
// $label = rawurldecode(urldecode(base64_decode(get_parameter('label', ''))));
|
// $label = rawurldecode(urldecode(base64_decode(get_parameter('label', ''))));
|
||||||
?>
|
?>
|
||||||
@ -117,8 +116,6 @@ $alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
|||||||
|
|
||||||
$period = get_parameter('period');
|
$period = get_parameter('period');
|
||||||
$id = get_parameter('id', 0);
|
$id = get_parameter('id', 0);
|
||||||
$label = get_parameter('label', '');
|
|
||||||
$label_graph = base64_decode(get_parameter('label', ''));
|
|
||||||
$start_date = get_parameter('start_date', date('Y/m/d'));
|
$start_date = get_parameter('start_date', date('Y/m/d'));
|
||||||
$start_time = get_parameter('start_time', date('H:i:s'));
|
$start_time = get_parameter('start_time', date('H:i:s'));
|
||||||
$draw_events = get_parameter('draw_events', 0);
|
$draw_events = get_parameter('draw_events', 0);
|
||||||
@ -190,7 +187,7 @@ $alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
|||||||
'agent_module_id' => $id,
|
'agent_module_id' => $id,
|
||||||
'period' => $period,
|
'period' => $period,
|
||||||
'show_events' => $draw_events,
|
'show_events' => $draw_events,
|
||||||
'title' => $label_graph,
|
'title' => $label,
|
||||||
'unit_name' => $unit,
|
'unit_name' => $unit,
|
||||||
'show_alerts' => $draw_alerts,
|
'show_alerts' => $draw_alerts,
|
||||||
'date' => $date,
|
'date' => $date,
|
||||||
|
@ -1502,7 +1502,6 @@ if (!empty($result)) {
|
|||||||
'type' => $graph_type,
|
'type' => $graph_type,
|
||||||
'period' => SECONDS_1DAY,
|
'period' => SECONDS_1DAY,
|
||||||
'id' => $row['id_agente_modulo'],
|
'id' => $row['id_agente_modulo'],
|
||||||
'label' => base64_encode($row['module_name']),
|
|
||||||
'refresh' => SECONDS_10MINUTES,
|
'refresh' => SECONDS_10MINUTES,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -152,11 +152,7 @@ if (!$modules || !$searchModules) {
|
|||||||
$url = 'include/procesos.php?agente='.$module['id_agente_modulo'];
|
$url = 'include/procesos.php?agente='.$module['id_agente_modulo'];
|
||||||
$win_handle = dechex(crc32($module['id_agente_modulo'].$module['module_name']));
|
$win_handle = dechex(crc32($module['id_agente_modulo'].$module['module_name']));
|
||||||
|
|
||||||
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module['id_agente_modulo'].'&'.'label='.rawurlencode(
|
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module['id_agente_modulo'].'&'.'refresh='.SECONDS_10MINUTES."', "."'day_".$win_handle."')";
|
||||||
urlencode(
|
|
||||||
base64_encode($module['module_name'])
|
|
||||||
)
|
|
||||||
).'&'.'refresh='.SECONDS_10MINUTES."', "."'day_".$win_handle."')";
|
|
||||||
|
|
||||||
$graphCell = '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => 0, 'alt' => '']).'</a>';
|
$graphCell = '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => 0, 'alt' => '']).'</a>';
|
||||||
$graphCell .= ' '."<a href='index.php?".'sec=estado&'.'sec2=operation/agentes/ver_agente&'.'id_agente='.$module['id_agente'].'&'.'tab=data_view&'.'period='.SECONDS_1DAY.'&'.'id='.$module['id_agente_modulo']."'>".html_print_image(
|
$graphCell .= ' '."<a href='index.php?".'sec=estado&'.'sec2=operation/agentes/ver_agente&'.'id_agente='.$module['id_agente'].'&'.'tab=data_view&'.'period='.SECONDS_1DAY.'&'.'id='.$module['id_agente_modulo']."'>".html_print_image(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user